ultracart_api 4.1.201 → 4.1.203
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/README.md +19 -2
- data/docs/OauthApi.md +1 -1
- data/docs/SfvbApi.md +378 -1
- data/docs/SfvbEvent.md +2 -2
- data/docs/SfvbItemMultimedia.md +9 -1
- data/docs/SfvbItemMultimediaDescriptionRequest.md +26 -0
- data/docs/SfvbSecretHandle.md +32 -0
- data/docs/SfvbSecretKind.md +30 -0
- data/docs/SfvbSecretKindsResponse.md +20 -0
- data/docs/SfvbSecretRequest.md +54 -0
- data/docs/SfvbSecretRequestCreate.md +30 -0
- data/docs/SfvbSecretRequestsResponse.md +18 -0
- data/docs/SfvbSecretSink.md +24 -0
- data/lib/ultracart_api/api/oauth_api.rb +2 -2
- data/lib/ultracart_api/api/sfvb_api.rb +460 -2
- data/lib/ultracart_api/models/sfvb_event.rb +2 -2
- data/lib/ultracart_api/models/sfvb_item_multimedia.rb +54 -2
- data/lib/ultracart_api/models/sfvb_item_multimedia_description_request.rb +260 -0
- data/lib/ultracart_api/models/sfvb_secret_handle.rb +324 -0
- data/lib/ultracart_api/models/sfvb_secret_kind.rb +280 -0
- data/lib/ultracart_api/models/sfvb_secret_kinds_response.rb +234 -0
- data/lib/ultracart_api/models/sfvb_secret_request.rb +440 -0
- data/lib/ultracart_api/models/sfvb_secret_request_create.rb +284 -0
- data/lib/ultracart_api/models/sfvb_secret_requests_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_secret_sink.rb +250 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +8 -0
- metadata +18 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretHandle
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **expires_at** | **String** | When it stops being usable, ISO 8601 UTC. | [optional] |
|
|
8
|
+
| **fingerprint** | **String** | The last few characters of the value, as a mask shows them, so the person can tell values apart. Empty until entered. | [optional] |
|
|
9
|
+
| **handle** | **String** | The handle. Safe to log and keep in plans. It works only for the sign-in that requested it. | [optional] |
|
|
10
|
+
| **key** | **String** | The bulk key it is for, or empty. | [optional] |
|
|
11
|
+
| **sink** | **String** | The secret field it can be written to. | [optional] |
|
|
12
|
+
| **status** | **String** | pending (no value yet), ready, in_use (a write holds it), consumed, revoked or expired. | [optional] |
|
|
13
|
+
| **target_id** | **String** | The object it can be written to, or empty when the request named none. | [optional] |
|
|
14
|
+
| **uses_left** | **Integer** | Writes left. Empty once the handle is gone. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbSecretHandle.new(
|
|
22
|
+
expires_at: null,
|
|
23
|
+
fingerprint: null,
|
|
24
|
+
handle: null,
|
|
25
|
+
key: null,
|
|
26
|
+
sink: null,
|
|
27
|
+
status: null,
|
|
28
|
+
target_id: null,
|
|
29
|
+
uses_left: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretKind
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **description** | **String** | Where the value comes from. | [optional] |
|
|
8
|
+
| **format_hint** | **String** | What the value looks like. The request page checks it as it is typed, and the server again. | [optional] |
|
|
9
|
+
| **id** | **String** | The kind id. | [optional] |
|
|
10
|
+
| **label** | **String** | What the person is told they are entering. | [optional] |
|
|
11
|
+
| **mask_suffix** | **Integer** | How many trailing characters a mask shows at most. | [optional] |
|
|
12
|
+
| **max_length** | **Integer** | Longest value accepted. | [optional] |
|
|
13
|
+
| **min_length** | **Integer** | Shortest value accepted, after surrounding whitespace is removed. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'ultracart_api'
|
|
19
|
+
|
|
20
|
+
instance = UltracartClient::SfvbSecretKind.new(
|
|
21
|
+
description: null,
|
|
22
|
+
format_hint: null,
|
|
23
|
+
id: null,
|
|
24
|
+
label: null,
|
|
25
|
+
mask_suffix: null,
|
|
26
|
+
max_length: null,
|
|
27
|
+
min_length: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretKindsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kinds** | [**Array<SfvbSecretKind>**](SfvbSecretKind.md) | Every kind of secret this server collects. | [optional] |
|
|
8
|
+
| **sinks** | [**Array<SfvbSecretSink>**](SfvbSecretSink.md) | Every secret field a handle can be written to. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbSecretKindsResponse.new(
|
|
16
|
+
kinds: null,
|
|
17
|
+
sinks: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created_at** | **String** | When the request was made, ISO 8601 UTC. | [optional] |
|
|
8
|
+
| **delegated** | **Boolean** | True when the requester handed it to a colleague to fill in. | [optional] |
|
|
9
|
+
| **description** | **String** | The sentence the person reads. Written by the server, not the agent. | [optional] |
|
|
10
|
+
| **expires_at** | **String** | When a pending request lapses, ISO 8601 UTC. | [optional] |
|
|
11
|
+
| **expires_in_seconds** | **Integer** | Seconds until expires_at. Zero once passed. | [optional] |
|
|
12
|
+
| **fulfilled_at** | **String** | When the values were entered, ISO 8601 UTC. | [optional] |
|
|
13
|
+
| **handle_count** | **Integer** | How many handles the request made. | [optional] |
|
|
14
|
+
| **handles** | [**Array<SfvbSecretHandle>**](SfvbSecretHandle.md) | Every handle with its status. Left out of the list endpoint; read one request for them. | [optional] |
|
|
15
|
+
| **interval_seconds** | **Integer** | Poll no more often than this. | [optional] |
|
|
16
|
+
| **keys** | **Array<String>** | The bulk keys, or empty. | [optional] |
|
|
17
|
+
| **label** | **String** | The label the agent sent, as stored and shown. | [optional] |
|
|
18
|
+
| **reason** | **String** | The reason the agent sent, as stored and shown. | [optional] |
|
|
19
|
+
| **request_id** | **String** | The request id. | [optional] |
|
|
20
|
+
| **request_url** | **String** | The page where the person enters the values. Show it to them. Never open or fill it in yourself. | [optional] |
|
|
21
|
+
| **requires_totp** | **Boolean** | True when the person must enter a code from their authenticator app. | [optional] |
|
|
22
|
+
| **sinks** | **Array<String>** | The secret fields being collected. | [optional] |
|
|
23
|
+
| **status** | **String** | pending, fulfilled, cancelled or expired. | [optional] |
|
|
24
|
+
| **target_id** | **String** | The object the values are for, or empty for a bulk request or an open one. | [optional] |
|
|
25
|
+
| **user_code** | **String** | Short matching code. Print it next to request_url so the person can check the page shows the same code. | [optional] |
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
require 'ultracart_api'
|
|
31
|
+
|
|
32
|
+
instance = UltracartClient::SfvbSecretRequest.new(
|
|
33
|
+
created_at: null,
|
|
34
|
+
delegated: null,
|
|
35
|
+
description: null,
|
|
36
|
+
expires_at: null,
|
|
37
|
+
expires_in_seconds: null,
|
|
38
|
+
fulfilled_at: null,
|
|
39
|
+
handle_count: null,
|
|
40
|
+
handles: null,
|
|
41
|
+
interval_seconds: null,
|
|
42
|
+
keys: null,
|
|
43
|
+
label: null,
|
|
44
|
+
reason: null,
|
|
45
|
+
request_id: null,
|
|
46
|
+
request_url: null,
|
|
47
|
+
requires_totp: null,
|
|
48
|
+
sinks: null,
|
|
49
|
+
status: null,
|
|
50
|
+
target_id: null,
|
|
51
|
+
user_code: null
|
|
52
|
+
)
|
|
53
|
+
```
|
|
54
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretRequestCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **keys** | **Array<String>** | Bulk. One handle per key and sink, and each key is that handle's target, such as one sending domain per key. At most 500 handles in all. | [optional] |
|
|
8
|
+
| **label** | **String** | A short name the person sees, marked as unverified. At most 120 characters. | [optional] |
|
|
9
|
+
| **reason** | **String** | Why the agent needs it. Shown to the person, marked as unverified. At most 500 characters. | [optional] |
|
|
10
|
+
| **sinks** | **Array<String>** | The secret fields to collect, by sink id. GET secrets/kinds lists them. All must take the same kind of target. | [optional] |
|
|
11
|
+
| **target_id** | **String** | The object the values are for, such as a Twilio account uuid. Required for sinks that need an authenticator code, unless keys names the targets. Leave it out when keys is sent. | [optional] |
|
|
12
|
+
| **ttl_seconds** | **Integer** | How long each handle stays usable once the values are entered. 60 to 86400, default 3600. | [optional] |
|
|
13
|
+
| **uses** | **Integer** | How many writes each handle may make. 1 to 100, default 1. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'ultracart_api'
|
|
19
|
+
|
|
20
|
+
instance = UltracartClient::SfvbSecretRequestCreate.new(
|
|
21
|
+
keys: null,
|
|
22
|
+
label: null,
|
|
23
|
+
reason: null,
|
|
24
|
+
sinks: null,
|
|
25
|
+
target_id: null,
|
|
26
|
+
ttl_seconds: null,
|
|
27
|
+
uses: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretRequestsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **requests** | [**Array<SfvbSecretRequest>**](SfvbSecretRequest.md) | This sign-in's secret requests from the last 24 hours, newest first, at most 50, without their handles. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::SfvbSecretRequestsResponse.new(
|
|
15
|
+
requests: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbSecretSink
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The sink id. | [optional] |
|
|
8
|
+
| **kind** | **String** | The kind of value it holds. | [optional] |
|
|
9
|
+
| **requires_totp** | **Boolean** | True when the person must enter a code from their authenticator app, and the request must name its target. | [optional] |
|
|
10
|
+
| **target_type** | **String** | What a request names as its target_id or keys. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbSecretSink.new(
|
|
18
|
+
id: null,
|
|
19
|
+
kind: null,
|
|
20
|
+
requires_totp: null,
|
|
21
|
+
target_type: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -259,7 +259,7 @@ module UltracartClient
|
|
|
259
259
|
# Revoke this OAuth application.
|
|
260
260
|
# Revokes the OAuth application associated with the specified client_id and token.
|
|
261
261
|
# @param client_id [String] The OAuth application client_id.
|
|
262
|
-
# @param token [String] The OAuth access token that is to be revoked
|
|
262
|
+
# @param token [String] The OAuth access token or refresh token that is to be revoked.
|
|
263
263
|
# @param [Hash] opts the optional parameters
|
|
264
264
|
# @return [OauthRevokeSuccessResponse]
|
|
265
265
|
def oauth_revoke(client_id, token, opts = {})
|
|
@@ -270,7 +270,7 @@ module UltracartClient
|
|
|
270
270
|
# Revoke this OAuth application.
|
|
271
271
|
# Revokes the OAuth application associated with the specified client_id and token.
|
|
272
272
|
# @param client_id [String] The OAuth application client_id.
|
|
273
|
-
# @param token [String] The OAuth access token that is to be revoked
|
|
273
|
+
# @param token [String] The OAuth access token or refresh token that is to be revoked.
|
|
274
274
|
# @param [Hash] opts the optional parameters
|
|
275
275
|
# @return [Array<(OauthRevokeSuccessResponse, Integer, Hash)>] OauthRevokeSuccessResponse data, response status code and response headers
|
|
276
276
|
def oauth_revoke_with_http_info(client_id, token, opts = {})
|