svix 1.64.1 → 1.65.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/Gemfile.lock +1 -1
- data/lib/svix/api/ingest_endpoint.rb +18 -18
- data/lib/svix/api/message_poller.rb +1 -3
- data/lib/svix/models/aggregate_event_types_out.rb +1 -0
- data/lib/svix/models/api_token_censored_out.rb +1 -0
- data/lib/svix/models/api_token_expire_in.rb +1 -0
- data/lib/svix/models/api_token_out.rb +1 -0
- data/lib/svix/models/app_portal_access_in.rb +8 -0
- data/lib/svix/models/app_usage_stats_in.rb +3 -0
- data/lib/svix/models/app_usage_stats_out.rb +4 -0
- data/lib/svix/models/application_in.rb +1 -0
- data/lib/svix/models/application_out.rb +2 -0
- data/lib/svix/models/application_patch.rb +1 -0
- data/lib/svix/models/application_token_expire_in.rb +1 -0
- data/lib/svix/models/background_task_finished_event2.rb +1 -0
- data/lib/svix/models/background_task_out.rb +1 -0
- data/lib/svix/models/connector_out.rb +2 -0
- data/lib/svix/models/cron_config.rb +3 -0
- data/lib/svix/models/endpoint_created_event_data.rb +4 -0
- data/lib/svix/models/endpoint_deleted_event_data.rb +4 -0
- data/lib/svix/models/endpoint_disabled_event_data.rb +4 -0
- data/lib/svix/models/endpoint_enabled_event_data.rb +4 -0
- data/lib/svix/models/endpoint_in.rb +6 -0
- data/lib/svix/models/endpoint_message_out.rb +4 -0
- data/lib/svix/models/endpoint_out.rb +4 -0
- data/lib/svix/models/endpoint_patch.rb +5 -0
- data/lib/svix/models/endpoint_secret_out.rb +4 -0
- data/lib/svix/models/endpoint_secret_rotate_in.rb +4 -0
- data/lib/svix/models/endpoint_update.rb +2 -0
- data/lib/svix/models/endpoint_updated_event_data.rb +4 -0
- data/lib/svix/models/event_example_in.rb +4 -0
- data/lib/svix/models/event_type_from_open_api.rb +2 -0
- data/lib/svix/models/event_type_import_open_api_in.rb +4 -0
- data/lib/svix/models/event_type_in.rb +3 -0
- data/lib/svix/models/event_type_out.rb +3 -0
- data/lib/svix/models/event_type_patch.rb +1 -0
- data/lib/svix/models/event_type_update.rb +2 -0
- data/lib/svix/models/expunge_all_contents_out.rb +1 -0
- data/lib/svix/models/ingest_endpoint_in.rb +5 -0
- data/lib/svix/models/ingest_endpoint_out.rb +3 -0
- data/lib/svix/models/ingest_endpoint_secret_in.rb +4 -0
- data/lib/svix/models/ingest_endpoint_secret_out.rb +4 -0
- data/lib/svix/models/ingest_endpoint_update.rb +1 -0
- data/lib/svix/models/ingest_source_consumer_portal_access_in.rb +4 -0
- data/lib/svix/models/ingest_source_in.rb +1 -0
- data/lib/svix/models/ingest_source_out.rb +2 -0
- data/lib/svix/models/integration_in.rb +1 -0
- data/lib/svix/models/integration_out.rb +2 -0
- data/lib/svix/models/integration_update.rb +1 -0
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +5 -0
- data/lib/svix/models/message_attempt_failed_data.rb +1 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +5 -0
- data/lib/svix/models/message_attempt_out.rb +4 -0
- data/lib/svix/models/message_attempt_recovered_event_data.rb +5 -0
- data/lib/svix/models/message_endpoint_out.rb +4 -0
- data/lib/svix/models/message_in.rb +13 -0
- data/lib/svix/models/message_out.rb +4 -0
- data/lib/svix/models/operational_webhook_endpoint_in.rb +5 -0
- data/lib/svix/models/operational_webhook_endpoint_out.rb +3 -0
- data/lib/svix/models/operational_webhook_endpoint_secret_in.rb +4 -0
- data/lib/svix/models/operational_webhook_endpoint_secret_out.rb +4 -0
- data/lib/svix/models/operational_webhook_endpoint_update.rb +1 -0
- data/lib/svix/models/polling_endpoint_message_out.rb +4 -0
- data/lib/svix/models/recover_out.rb +1 -0
- data/lib/svix/models/replay_out.rb +1 -0
- data/lib/svix/svix.rb +4 -0
- data/lib/svix/version.rb +1 -1
- metadata +2 -15
- data/lib/svix/api/events_public.rb +0 -41
- data/lib/svix/models/template_out.rb +0 -96
- data/templates/api_extra/application_create.rb +0 -16
- data/templates/api_extra/authentication_expire_all.rb +0 -11
- data/templates/api_extra/message.rb +0 -26
- data/templates/api_resource.rb.jinja +0 -78
- data/templates/component_type.rb.jinja +0 -9
- data/templates/summary.rb.jinja +0 -39
- data/templates/types/integer_enum.rb.jinja +0 -37
- data/templates/types/macros.rb.jinja +0 -43
- data/templates/types/string_enum.rb.jinja +0 -37
- data/templates/types/struct.rb.jinja +0 -58
- data/templates/types/struct_enum.rb.jinja +0 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6255d797d9fbb4cf43d08bb4fd1186204c68aad0faf85e6510747c65c1410bb9
|
4
|
+
data.tar.gz: 8b5c4e66576f3d93a9509103155f53111a5ab04a1d232ad9fad92ad9de6f668d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 672c5925b296f1e07d1124ec6d9a3f46f6efa3d2205ecf2fb10ab1418223ffe0c78d64b0920225b60be5a103152e4694f6ac3ff07c87ce66ed606e36d885549e
|
7
|
+
data.tar.gz: 2ebb54d3dd23ee11dd8f329cede36352820b22c85db0a57f9d8f18ec236bdcff67bdb4c5e8db511d75c620fb700ef6ba3f3b2b8b7606b3235b5940967c228fb9
|
data/Gemfile.lock
CHANGED
@@ -9,11 +9,11 @@ module Svix
|
|
9
9
|
@client = client
|
10
10
|
end
|
11
11
|
|
12
|
-
def list(options = {})
|
12
|
+
def list(source_id, options = {})
|
13
13
|
options = options.transform_keys(&:to_s)
|
14
14
|
res = @client.execute_request(
|
15
15
|
"GET",
|
16
|
-
"/ingest/api/v1/source
|
16
|
+
"/ingest/api/v1/source/#{source_id}/endpoint",
|
17
17
|
query_params: {
|
18
18
|
"limit" => options["limit"],
|
19
19
|
"iterator" => options["iterator"],
|
@@ -23,11 +23,11 @@ module Svix
|
|
23
23
|
ListResponseIngestEndpointOut.deserialize(res)
|
24
24
|
end
|
25
25
|
|
26
|
-
def create(ingest_endpoint_in, options = {})
|
26
|
+
def create(source_id, ingest_endpoint_in, options = {})
|
27
27
|
options = options.transform_keys(&:to_s)
|
28
28
|
res = @client.execute_request(
|
29
29
|
"POST",
|
30
|
-
"/ingest/api/v1/source
|
30
|
+
"/ingest/api/v1/source/#{source_id}/endpoint",
|
31
31
|
headers: {
|
32
32
|
"idempotency-key" => options["idempotency-key"]
|
33
33
|
},
|
@@ -36,59 +36,59 @@ module Svix
|
|
36
36
|
IngestEndpointOut.deserialize(res)
|
37
37
|
end
|
38
38
|
|
39
|
-
def get(endpoint_id)
|
39
|
+
def get(source_id, endpoint_id)
|
40
40
|
res = @client.execute_request(
|
41
41
|
"GET",
|
42
|
-
"/ingest/api/v1/source
|
42
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}"
|
43
43
|
)
|
44
44
|
IngestEndpointOut.deserialize(res)
|
45
45
|
end
|
46
46
|
|
47
|
-
def update(endpoint_id, ingest_endpoint_update)
|
47
|
+
def update(source_id, endpoint_id, ingest_endpoint_update)
|
48
48
|
res = @client.execute_request(
|
49
49
|
"PUT",
|
50
|
-
"/ingest/api/v1/source
|
50
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}",
|
51
51
|
body: ingest_endpoint_update
|
52
52
|
)
|
53
53
|
IngestEndpointOut.deserialize(res)
|
54
54
|
end
|
55
55
|
|
56
|
-
def delete(endpoint_id)
|
56
|
+
def delete(source_id, endpoint_id)
|
57
57
|
@client.execute_request(
|
58
58
|
"DELETE",
|
59
|
-
"/ingest/api/v1/source
|
59
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}"
|
60
60
|
)
|
61
61
|
end
|
62
62
|
|
63
|
-
def get_headers(endpoint_id)
|
63
|
+
def get_headers(source_id, endpoint_id)
|
64
64
|
res = @client.execute_request(
|
65
65
|
"GET",
|
66
|
-
"/ingest/api/v1/source
|
66
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}/headers"
|
67
67
|
)
|
68
68
|
IngestEndpointHeadersOut.deserialize(res)
|
69
69
|
end
|
70
70
|
|
71
|
-
def update_headers(endpoint_id, ingest_endpoint_headers_in)
|
71
|
+
def update_headers(source_id, endpoint_id, ingest_endpoint_headers_in)
|
72
72
|
@client.execute_request(
|
73
73
|
"PUT",
|
74
|
-
"/ingest/api/v1/source
|
74
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}/headers",
|
75
75
|
body: ingest_endpoint_headers_in
|
76
76
|
)
|
77
77
|
end
|
78
78
|
|
79
|
-
def get_secret(endpoint_id)
|
79
|
+
def get_secret(source_id, endpoint_id)
|
80
80
|
res = @client.execute_request(
|
81
81
|
"GET",
|
82
|
-
"/ingest/api/v1/source
|
82
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}/secret"
|
83
83
|
)
|
84
84
|
IngestEndpointSecretOut.deserialize(res)
|
85
85
|
end
|
86
86
|
|
87
|
-
def rotate_secret(endpoint_id, ingest_endpoint_secret_in, options = {})
|
87
|
+
def rotate_secret(source_id, endpoint_id, ingest_endpoint_secret_in, options = {})
|
88
88
|
options = options.transform_keys(&:to_s)
|
89
89
|
@client.execute_request(
|
90
90
|
"POST",
|
91
|
-
"/ingest/api/v1/source
|
91
|
+
"/ingest/api/v1/source/#{source_id}/endpoint/#{endpoint_id}/secret/rotate",
|
92
92
|
headers: {
|
93
93
|
"idempotency-key" => options["idempotency-key"]
|
94
94
|
},
|
@@ -32,9 +32,7 @@ module Svix
|
|
32
32
|
"/api/v1/app/#{app_id}/poller/#{sink_id}/consumer/#{consumer_id}",
|
33
33
|
query_params: {
|
34
34
|
"limit" => options["limit"],
|
35
|
-
"iterator" => options["iterator"]
|
36
|
-
"event_type" => options["event_type"],
|
37
|
-
"channel" => options["channel"]
|
35
|
+
"iterator" => options["iterator"]
|
38
36
|
}
|
39
37
|
)
|
40
38
|
PollingEndpointOut.deserialize(res)
|
@@ -4,9 +4,17 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class AppPortalAccessIn
|
7
|
+
# Optionally creates a new application while generating the access link.
|
8
|
+
#
|
9
|
+
# If the application id or uid that is used in the path already exists, this argument is ignored.
|
7
10
|
attr_accessor :application
|
11
|
+
# How long the token will be valid for, in seconds.
|
12
|
+
#
|
13
|
+
# Valid values are between 1 hour and 7 days. The default is 7 days.
|
8
14
|
attr_accessor :expiry
|
15
|
+
# The set of feature flags the created token will have access to.
|
9
16
|
attr_accessor :feature_flags
|
17
|
+
# Whether the app portal should be in read-only mode.
|
10
18
|
attr_accessor :read_only
|
11
19
|
|
12
20
|
ALL_FIELD ||= ["application", "expiry", "feature_flags", "read_only"].freeze
|
@@ -4,6 +4,9 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class AppUsageStatsIn
|
7
|
+
# Specific app IDs or UIDs to aggregate stats for.
|
8
|
+
#
|
9
|
+
# Note that if none of the given IDs or UIDs are resolved, a 422 response will be given.
|
7
10
|
attr_accessor :app_ids
|
8
11
|
attr_accessor :since
|
9
12
|
attr_accessor :until
|
@@ -4,9 +4,13 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class AppUsageStatsOut
|
7
|
+
# The QueueBackgroundTask's ID.
|
7
8
|
attr_accessor :id
|
8
9
|
attr_accessor :status
|
9
10
|
attr_accessor :task
|
11
|
+
# Any app IDs or UIDs received in the request that weren't found.
|
12
|
+
#
|
13
|
+
# Stats will be produced for all the others.
|
10
14
|
attr_accessor :unresolved_app_ids
|
11
15
|
|
12
16
|
ALL_FIELD ||= ["id", "status", "task", "unresolved_app_ids"].freeze
|
@@ -5,10 +5,12 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
class ApplicationOut
|
7
7
|
attr_accessor :created_at
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :id
|
9
10
|
attr_accessor :metadata
|
10
11
|
attr_accessor :name
|
11
12
|
attr_accessor :rate_limit
|
13
|
+
# The Application's UID.
|
12
14
|
attr_accessor :uid
|
13
15
|
attr_accessor :updated_at
|
14
16
|
|
@@ -8,12 +8,14 @@ module Svix
|
|
8
8
|
attr_accessor :description
|
9
9
|
attr_accessor :feature_flag
|
10
10
|
attr_accessor :filter_types
|
11
|
+
# The Connector's ID.
|
11
12
|
attr_accessor :id
|
12
13
|
attr_accessor :instructions
|
13
14
|
attr_accessor :instructions_link
|
14
15
|
attr_accessor :kind
|
15
16
|
attr_accessor :logo
|
16
17
|
attr_accessor :name
|
18
|
+
# The Environment's ID.
|
17
19
|
attr_accessor :org_id
|
18
20
|
attr_accessor :transformation
|
19
21
|
attr_accessor :updated_at
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# Sent when an endpoint is created, updated, or deleted
|
7
7
|
class EndpointCreatedEventData
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :app_id
|
10
|
+
# The Application's UID.
|
9
11
|
attr_accessor :app_uid
|
12
|
+
# The Endpoint's ID.
|
10
13
|
attr_accessor :endpoint_id
|
14
|
+
# The Endpoint's UID.
|
11
15
|
attr_accessor :endpoint_uid
|
12
16
|
|
13
17
|
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "endpoint_uid"].freeze
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# Sent when an endpoint is created, updated, or deleted
|
7
7
|
class EndpointDeletedEventData
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :app_id
|
10
|
+
# The Application's UID.
|
9
11
|
attr_accessor :app_uid
|
12
|
+
# The Endpoint's ID.
|
10
13
|
attr_accessor :endpoint_id
|
14
|
+
# The Endpoint's UID.
|
11
15
|
attr_accessor :endpoint_uid
|
12
16
|
|
13
17
|
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "endpoint_uid"].freeze
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# Sent when an endpoint has been automatically disabled after continuous failures, or manually via an API call.
|
7
7
|
class EndpointDisabledEventData
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :app_id
|
10
|
+
# The Application's UID.
|
9
11
|
attr_accessor :app_uid
|
12
|
+
# The Endpoint's ID.
|
10
13
|
attr_accessor :endpoint_id
|
14
|
+
# The Endpoint's UID.
|
11
15
|
attr_accessor :endpoint_uid
|
12
16
|
attr_accessor :fail_since
|
13
17
|
attr_accessor :trigger
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# Sent when an endpoint has been enabled.
|
7
7
|
class EndpointEnabledEventData
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :app_id
|
10
|
+
# The Application's UID.
|
9
11
|
attr_accessor :app_uid
|
12
|
+
# The Endpoint's ID.
|
10
13
|
attr_accessor :endpoint_id
|
14
|
+
# The Endpoint's UID.
|
11
15
|
attr_accessor :endpoint_uid
|
12
16
|
|
13
17
|
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "endpoint_uid"].freeze
|
@@ -4,6 +4,7 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EndpointIn
|
7
|
+
# List of message channels this endpoint listens to (omit for all).
|
7
8
|
attr_accessor :channels
|
8
9
|
attr_accessor :description
|
9
10
|
attr_accessor :disabled
|
@@ -11,7 +12,12 @@ module Svix
|
|
11
12
|
attr_accessor :headers
|
12
13
|
attr_accessor :metadata
|
13
14
|
attr_accessor :rate_limit
|
15
|
+
# The endpoint's verification secret.
|
16
|
+
#
|
17
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
18
|
+
# It is recommended to not set this and let the server generate the secret.
|
14
19
|
attr_accessor :secret
|
20
|
+
# Optional unique identifier for the endpoint.
|
15
21
|
attr_accessor :uid
|
16
22
|
attr_accessor :url
|
17
23
|
attr_accessor :version
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# A model containing information on a given message plus additional fields on the last attempt for that message.
|
7
7
|
class EndpointMessageOut
|
8
|
+
# List of free-form identifiers that endpoints can filter by
|
8
9
|
attr_accessor :channels
|
10
|
+
# Optional unique identifier for the message
|
9
11
|
attr_accessor :event_id
|
12
|
+
# The event type's name
|
10
13
|
attr_accessor :event_type
|
14
|
+
# The Message's ID.
|
11
15
|
attr_accessor :id
|
12
16
|
attr_accessor :next_attempt
|
13
17
|
attr_accessor :payload
|
@@ -4,14 +4,18 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EndpointOut
|
7
|
+
# List of message channels this endpoint listens to (omit for all).
|
7
8
|
attr_accessor :channels
|
8
9
|
attr_accessor :created_at
|
10
|
+
# An example endpoint name.
|
9
11
|
attr_accessor :description
|
10
12
|
attr_accessor :disabled
|
11
13
|
attr_accessor :filter_types
|
14
|
+
# The Endpoint's ID.
|
12
15
|
attr_accessor :id
|
13
16
|
attr_accessor :metadata
|
14
17
|
attr_accessor :rate_limit
|
18
|
+
# Optional unique identifier for the endpoint.
|
15
19
|
attr_accessor :uid
|
16
20
|
attr_accessor :updated_at
|
17
21
|
attr_accessor :url
|
@@ -10,7 +10,12 @@ module Svix
|
|
10
10
|
attr_accessor :filter_types
|
11
11
|
attr_accessor :metadata
|
12
12
|
attr_accessor :rate_limit
|
13
|
+
# The endpoint's verification secret.
|
14
|
+
#
|
15
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
16
|
+
# It is recommended to not set this and let the server generate the secret.
|
13
17
|
attr_accessor :secret
|
18
|
+
# The Endpoint's UID.
|
14
19
|
attr_accessor :uid
|
15
20
|
attr_accessor :url
|
16
21
|
attr_accessor :version
|
@@ -4,6 +4,10 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EndpointSecretOut
|
7
|
+
# The endpoint's verification secret.
|
8
|
+
#
|
9
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
10
|
+
# It is recommended to not set this and let the server generate the secret.
|
7
11
|
attr_accessor :key
|
8
12
|
|
9
13
|
ALL_FIELD ||= ["key"].freeze
|
@@ -4,6 +4,10 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EndpointSecretRotateIn
|
7
|
+
# The endpoint's verification secret.
|
8
|
+
#
|
9
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
10
|
+
# It is recommended to not set this and let the server generate the secret.
|
7
11
|
attr_accessor :key
|
8
12
|
|
9
13
|
ALL_FIELD ||= ["key"].freeze
|
@@ -4,12 +4,14 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EndpointUpdate
|
7
|
+
# List of message channels this endpoint listens to (omit for all).
|
7
8
|
attr_accessor :channels
|
8
9
|
attr_accessor :description
|
9
10
|
attr_accessor :disabled
|
10
11
|
attr_accessor :filter_types
|
11
12
|
attr_accessor :metadata
|
12
13
|
attr_accessor :rate_limit
|
14
|
+
# Optional unique identifier for the endpoint.
|
13
15
|
attr_accessor :uid
|
14
16
|
attr_accessor :url
|
15
17
|
attr_accessor :version
|
@@ -5,9 +5,13 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
# Sent when an endpoint is created, updated, or deleted
|
7
7
|
class EndpointUpdatedEventData
|
8
|
+
# The Application's ID.
|
8
9
|
attr_accessor :app_id
|
10
|
+
# The Application's UID.
|
9
11
|
attr_accessor :app_uid
|
12
|
+
# The Endpoint's ID.
|
10
13
|
attr_accessor :endpoint_id
|
14
|
+
# The Endpoint's UID.
|
11
15
|
attr_accessor :endpoint_uid
|
12
16
|
|
13
17
|
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "endpoint_uid"].freeze
|
@@ -4,7 +4,11 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class EventExampleIn
|
7
|
+
# The event type's name
|
7
8
|
attr_accessor :event_type
|
9
|
+
# If the event type schema contains an array of examples, chooses which one to send.
|
10
|
+
#
|
11
|
+
# Defaults to the first example. Ignored if the schema doesn't contain an array of examples.
|
8
12
|
attr_accessor :example_index
|
9
13
|
|
10
14
|
ALL_FIELD ||= ["event_type", "example_index"].freeze
|
@@ -7,9 +7,13 @@ module Svix
|
|
7
7
|
#
|
8
8
|
# The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw` (a `string`) which will be parsed as YAML or JSON by the server. Sending neither or both is invalid, resulting in a `400` **Bad Request**.
|
9
9
|
class EventTypeImportOpenApiIn
|
10
|
+
# If `true`, return the event types that would be modified without actually modifying them.
|
10
11
|
attr_accessor :dry_run
|
12
|
+
# If `true`, all existing event types that are not in the spec will be archived.
|
11
13
|
attr_accessor :replace_all
|
14
|
+
# A pre-parsed JSON spec.
|
12
15
|
attr_accessor :spec
|
16
|
+
# A string, parsed by the server as YAML or JSON.
|
13
17
|
attr_accessor :spec_raw
|
14
18
|
|
15
19
|
ALL_FIELD ||= ["dry_run", "replace_all", "spec", "spec_raw"].freeze
|
@@ -8,8 +8,11 @@ module Svix
|
|
8
8
|
attr_accessor :deprecated
|
9
9
|
attr_accessor :description
|
10
10
|
attr_accessor :feature_flag
|
11
|
+
# The event type group's name
|
11
12
|
attr_accessor :group_name
|
13
|
+
# The event type's name
|
12
14
|
attr_accessor :name
|
15
|
+
# The schema for the event type for a specific version as a JSON schema.
|
13
16
|
attr_accessor :schemas
|
14
17
|
|
15
18
|
ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "group_name", "name", "schemas"].freeze
|
@@ -9,8 +9,11 @@ module Svix
|
|
9
9
|
attr_accessor :deprecated
|
10
10
|
attr_accessor :description
|
11
11
|
attr_accessor :feature_flag
|
12
|
+
# The event type group's name
|
12
13
|
attr_accessor :group_name
|
14
|
+
# The event type's name
|
13
15
|
attr_accessor :name
|
16
|
+
# The schema for the event type for a specific version as a JSON schema.
|
14
17
|
attr_accessor :schemas
|
15
18
|
attr_accessor :updated_at
|
16
19
|
|
@@ -8,7 +8,9 @@ module Svix
|
|
8
8
|
attr_accessor :deprecated
|
9
9
|
attr_accessor :description
|
10
10
|
attr_accessor :feature_flag
|
11
|
+
# The event type group's name
|
11
12
|
attr_accessor :group_name
|
13
|
+
# The schema for the event type for a specific version as a JSON schema.
|
12
14
|
attr_accessor :schemas
|
13
15
|
|
14
16
|
ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "group_name", "schemas"].freeze
|
@@ -8,7 +8,12 @@ module Svix
|
|
8
8
|
attr_accessor :disabled
|
9
9
|
attr_accessor :metadata
|
10
10
|
attr_accessor :rate_limit
|
11
|
+
# The endpoint's verification secret.
|
12
|
+
#
|
13
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
14
|
+
# It is recommended to not set this and let the server generate the secret.
|
11
15
|
attr_accessor :secret
|
16
|
+
# Optional unique identifier for the endpoint.
|
12
17
|
attr_accessor :uid
|
13
18
|
attr_accessor :url
|
14
19
|
|
@@ -5,11 +5,14 @@ require "json"
|
|
5
5
|
module Svix
|
6
6
|
class IngestEndpointOut
|
7
7
|
attr_accessor :created_at
|
8
|
+
# An example endpoint name.
|
8
9
|
attr_accessor :description
|
9
10
|
attr_accessor :disabled
|
11
|
+
# The Endpoint's ID.
|
10
12
|
attr_accessor :id
|
11
13
|
attr_accessor :metadata
|
12
14
|
attr_accessor :rate_limit
|
15
|
+
# Optional unique identifier for the endpoint.
|
13
16
|
attr_accessor :uid
|
14
17
|
attr_accessor :updated_at
|
15
18
|
attr_accessor :url
|
@@ -4,6 +4,10 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class IngestEndpointSecretIn
|
7
|
+
# The endpoint's verification secret.
|
8
|
+
#
|
9
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
10
|
+
# It is recommended to not set this and let the server generate the secret.
|
7
11
|
attr_accessor :key
|
8
12
|
|
9
13
|
ALL_FIELD ||= ["key"].freeze
|
@@ -4,6 +4,10 @@ require "json"
|
|
4
4
|
|
5
5
|
module Svix
|
6
6
|
class IngestEndpointSecretOut
|
7
|
+
# The endpoint's verification secret.
|
8
|
+
#
|
9
|
+
# Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
|
10
|
+
# It is recommended to not set this and let the server generate the secret.
|
7
11
|
attr_accessor :key
|
8
12
|
|
9
13
|
ALL_FIELD ||= ["key"].freeze
|