late-sdk 0.0.672 → 0.0.673
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 +2 -1
- data/docs/ApiKey.md +3 -1
- data/docs/ConnectedAppsApi.md +2 -2
- data/docs/CreateApiKeyRequest.md +3 -1
- data/docs/InlineObject2.md +5 -11
- data/docs/InlineObject3.md +28 -0
- data/docs/{InlineObject2Details.md → InlineObject3Details.md} +2 -2
- data/docs/InvitesApi.md +1 -1
- data/docs/WebhooksApi.md +3 -3
- data/lib/zernio-sdk/api/connected_apps_api.rb +4 -4
- data/lib/zernio-sdk/api/invites_api.rb +2 -2
- data/lib/zernio-sdk/api/webhooks_api.rb +6 -6
- data/lib/zernio-sdk/models/api_key.rb +16 -4
- data/lib/zernio-sdk/models/create_api_key_request.rb +16 -4
- data/lib/zernio-sdk/models/inline_object2.rb +18 -80
- data/lib/zernio-sdk/models/inline_object3.rb +274 -0
- data/lib/zernio-sdk/models/{inline_object2_details.rb → inline_object3_details.rb} +3 -3
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +2 -1
- data/openapi.yaml +639 -27
- data/spec/api/connected_apps_api_spec.rb +2 -2
- data/spec/api/invites_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +3 -3
- data/spec/models/api_key_spec.rb +10 -0
- data/spec/models/create_api_key_request_spec.rb +10 -0
- data/spec/models/inline_object2_spec.rb +4 -22
- data/spec/models/{inline_object2_details_spec.rb → inline_object3_details_spec.rb} +6 -6
- data/spec/models/inline_object3_spec.rb +74 -0
- data/zernio-sdk-0.0.673.gem +0 -0
- metadata +10 -6
- data/zernio-sdk-0.0.672.gem +0 -0
|
@@ -34,7 +34,7 @@ describe 'ConnectedAppsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_connected_apps
|
|
36
36
|
# List connected apps
|
|
37
|
-
# Returns the OAuth clients (AI assistants and MCP connectors) the authenticated user has authorized and that still hold a live token. Requires a session or a full-
|
|
37
|
+
# Returns the OAuth clients (AI assistants and MCP connectors) the authenticated user has authorized and that still hold a live token. Requires a session or a full-access API key. A profile-scoped API key, a restricted (zrk_) API key, or an OAuth access token is rejected with 403: an app must not be able to enumerate its sibling authorizations, and connected-app management is admin-plane.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [ListConnectedApps200Response]
|
|
40
40
|
describe 'list_connected_apps test' do
|
|
@@ -45,7 +45,7 @@ describe 'ConnectedAppsApi' do
|
|
|
45
45
|
|
|
46
46
|
# unit tests for revoke_connected_app
|
|
47
47
|
# Revoke connected app
|
|
48
|
-
# Ends an app's access: invalidates the client's pending authorization codes and revokes every live token it holds for the authenticated user. Takes effect on the app's next request. Idempotent while the authorization is still on record: revoking an app that was already revoked returns 200 with `revokedTokens: 0`.
|
|
48
|
+
# Ends an app's access: invalidates the client's pending authorization codes and revokes every live token it holds for the authenticated user. Takes effect on the app's next request. Idempotent while the authorization is still on record: revoking an app that was already revoked returns 200 with `revokedTokens: 0`. Requires a session or a full-access API key. A profile-scoped API key, a restricted (zrk_) API key, or an OAuth access token is rejected with 403.
|
|
49
49
|
# @param client_id OAuth client id, as returned by GET /v1/me/connected-apps.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
51
|
# @return [RevokeConnectedApp200Response]
|
|
@@ -34,7 +34,7 @@ describe 'InvitesApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for create_invite_token
|
|
36
36
|
# Create invite token
|
|
37
|
-
# Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use.
|
|
37
|
+
# Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use. Returns 403 when a requested profile is not found or not owned, or when called with a restricted (zrk_) API key: invite management is admin-plane.
|
|
38
38
|
# @param create_invite_token_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [CreateInviteToken201Response]
|
|
@@ -34,7 +34,7 @@ describe 'WebhooksApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for create_webhook_settings
|
|
36
36
|
# Create webhook
|
|
37
|
-
# Create a new webhook configuration. Maximum 50 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
|
|
37
|
+
# Create a new webhook configuration. Maximum 50 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures. A restricted (zrk_) API key can only subscribe to events whose resource group the key holds; an event outside the key's groups is rejected with 403. Note that the KEY cannot access private messages; the ACCOUNT's pre-existing webhook subscriptions are a separate grant surface.
|
|
38
38
|
# @param create_webhook_settings_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [UpdateWebhookSettings200Response]
|
|
@@ -58,7 +58,7 @@ describe 'WebhooksApi' do
|
|
|
58
58
|
|
|
59
59
|
# unit tests for get_webhook_logs
|
|
60
60
|
# List webhook delivery logs
|
|
61
|
-
# Retrieve recorded webhook delivery attempts for the authenticated user, most recent first. Logs are retained for 30 days. Supports filtering by status, event type, webhook ID, and event ID, plus offset-based pagination.
|
|
61
|
+
# Retrieve recorded webhook delivery attempts for the authenticated user, most recent first. Logs are retained for 30 days. Supports filtering by status, event type, webhook ID, and event ID, plus offset-based pagination. For a restricted (zrk_) API key, rows for events outside the key's resource groups are omitted (`pagination.total` may over-count), and an `event` filter naming such an event is rejected with 403.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
63
|
# @option opts [Integer] :limit Maximum number of logs to return
|
|
64
64
|
# @option opts [Integer] :skip Number of logs to skip (offset-based pagination)
|
|
@@ -98,7 +98,7 @@ describe 'WebhooksApi' do
|
|
|
98
98
|
|
|
99
99
|
# unit tests for update_webhook_settings
|
|
100
100
|
# Update webhook
|
|
101
|
-
# Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated. When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
|
|
101
|
+
# Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated. When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures. A restricted (zrk_) API key can only set `events` to events whose resource group the key holds; an event outside the key's groups is rejected with 403.
|
|
102
102
|
# @param update_webhook_settings_request
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [UpdateWebhookSettings200Response]
|
data/spec/models/api_key_spec.rb
CHANGED
|
@@ -89,4 +89,14 @@ describe Zernio::ApiKey do
|
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
+
describe 'test attribute "disabled_resource_groups"' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
95
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["publishing", "engagement", "messages", "contacts", "analytics", "ads", "telephony", "accounts", "billing", "webhooks"])
|
|
96
|
+
# validator.allowable_values.each do |value|
|
|
97
|
+
# expect { instance.disabled_resource_groups = value }.not_to raise_error
|
|
98
|
+
# end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
92
102
|
end
|
|
@@ -65,4 +65,14 @@ describe Zernio::CreateApiKeyRequest do
|
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
+
describe 'test attribute "disabled_resource_groups"' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["publishing", "engagement", "messages", "contacts", "analytics", "ads", "telephony", "accounts", "billing", "webhooks"])
|
|
72
|
+
# validator.allowable_values.each do |value|
|
|
73
|
+
# expect { instance.disabled_resource_groups = value }.not_to raise_error
|
|
74
|
+
# end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
68
78
|
end
|
|
@@ -36,39 +36,21 @@ describe Zernio::InlineObject2 do
|
|
|
36
36
|
describe 'test attribute "code"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["insufficient_permissions", "unclassified_resource"])
|
|
40
40
|
# validator.allowable_values.each do |value|
|
|
41
41
|
# expect { instance.code = value }.not_to raise_error
|
|
42
42
|
# end
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
describe 'test attribute "
|
|
46
|
+
describe 'test attribute "required_group"' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["publishing", "engagement", "messages", "contacts", "analytics", "ads", "telephony", "accounts", "billing", "webhooks"])
|
|
50
50
|
# validator.allowable_values.each do |value|
|
|
51
|
-
# expect { instance.
|
|
51
|
+
# expect { instance.required_group = value }.not_to raise_error
|
|
52
52
|
# end
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
describe 'test attribute "documentation_url"' do
|
|
57
|
-
it 'should work' do
|
|
58
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
describe 'test attribute "dashboard_url"' do
|
|
63
|
-
it 'should work' do
|
|
64
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
describe 'test attribute "details"' do
|
|
69
|
-
it 'should work' do
|
|
70
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
|
|
74
56
|
end
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for Zernio::
|
|
17
|
+
# Unit tests for Zernio::InlineObject3Details
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe Zernio::
|
|
21
|
-
#let(:instance) { Zernio::
|
|
20
|
+
describe Zernio::InlineObject3Details do
|
|
21
|
+
#let(:instance) { Zernio::InlineObject3Details.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of InlineObject3Details' do
|
|
24
|
+
it 'should create an instance of InlineObject3Details' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(Zernio::
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::InlineObject3Details)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::InlineObject3
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::InlineObject3 do
|
|
21
|
+
#let(:instance) { Zernio::InlineObject3.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InlineObject3' do
|
|
24
|
+
it 'should create an instance of InlineObject3' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::InlineObject3)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "error"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "code"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PAYMENT_REQUIRED"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.code = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "reason"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["free_tier_exceeded", "twitter_passthrough", "enterprise_required"])
|
|
50
|
+
# validator.allowable_values.each do |value|
|
|
51
|
+
# expect { instance.reason = value }.not_to raise_error
|
|
52
|
+
# end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
describe 'test attribute "documentation_url"' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
describe 'test attribute "dashboard_url"' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'test attribute "details"' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.673
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -843,7 +843,8 @@ files:
|
|
|
843
843
|
- docs/InlineObject.md
|
|
844
844
|
- docs/InlineObject1.md
|
|
845
845
|
- docs/InlineObject2.md
|
|
846
|
-
- docs/
|
|
846
|
+
- docs/InlineObject3.md
|
|
847
|
+
- docs/InlineObject3Details.md
|
|
847
848
|
- docs/InstagramAccountInsightsResponse.md
|
|
848
849
|
- docs/InstagramAccountInsightsResponseDateRange.md
|
|
849
850
|
- docs/InstagramAccountInsightsResponseMetricsValue.md
|
|
@@ -2522,7 +2523,8 @@ files:
|
|
|
2522
2523
|
- lib/zernio-sdk/models/inline_object.rb
|
|
2523
2524
|
- lib/zernio-sdk/models/inline_object1.rb
|
|
2524
2525
|
- lib/zernio-sdk/models/inline_object2.rb
|
|
2525
|
-
- lib/zernio-sdk/models/
|
|
2526
|
+
- lib/zernio-sdk/models/inline_object3.rb
|
|
2527
|
+
- lib/zernio-sdk/models/inline_object3_details.rb
|
|
2526
2528
|
- lib/zernio-sdk/models/instagram_account_insights_response.rb
|
|
2527
2529
|
- lib/zernio-sdk/models/instagram_account_insights_response_date_range.rb
|
|
2528
2530
|
- lib/zernio-sdk/models/instagram_account_insights_response_metrics_value.rb
|
|
@@ -4158,8 +4160,9 @@ files:
|
|
|
4158
4160
|
- spec/models/initiate_whats_app_call200_response_spec.rb
|
|
4159
4161
|
- spec/models/initiate_whats_app_call_request_spec.rb
|
|
4160
4162
|
- spec/models/inline_object1_spec.rb
|
|
4161
|
-
- spec/models/inline_object2_details_spec.rb
|
|
4162
4163
|
- spec/models/inline_object2_spec.rb
|
|
4164
|
+
- spec/models/inline_object3_details_spec.rb
|
|
4165
|
+
- spec/models/inline_object3_spec.rb
|
|
4163
4166
|
- spec/models/inline_object_spec.rb
|
|
4164
4167
|
- spec/models/instagram_account_insights_response_date_range_spec.rb
|
|
4165
4168
|
- spec/models/instagram_account_insights_response_metrics_value_breakdowns_inner_spec.rb
|
|
@@ -4982,7 +4985,7 @@ files:
|
|
|
4982
4985
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4983
4986
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4984
4987
|
- spec/spec_helper.rb
|
|
4985
|
-
- zernio-sdk-0.0.
|
|
4988
|
+
- zernio-sdk-0.0.673.gem
|
|
4986
4989
|
- zernio-sdk.gemspec
|
|
4987
4990
|
homepage: https://openapi-generator.tech
|
|
4988
4991
|
licenses:
|
|
@@ -5240,6 +5243,7 @@ test_files:
|
|
|
5240
5243
|
- spec/models/delete_sms_sender_id200_response_spec.rb
|
|
5241
5244
|
- spec/models/list_account_groups200_response_spec.rb
|
|
5242
5245
|
- spec/models/validate_subreddit200_response_one_of1_spec.rb
|
|
5246
|
+
- spec/models/inline_object3_details_spec.rb
|
|
5243
5247
|
- spec/models/search_tweets200_response_meta_spec.rb
|
|
5244
5248
|
- spec/models/validate_media200_response_platform_limits_value_spec.rb
|
|
5245
5249
|
- spec/models/accounts_list_response_spec.rb
|
|
@@ -6204,6 +6208,7 @@ test_files:
|
|
|
6204
6208
|
- spec/models/create_phone_number_port_in201_response_orders_inner_spec.rb
|
|
6205
6209
|
- spec/models/configure_tik_tok_ads_brand_identity200_response_spec.rb
|
|
6206
6210
|
- spec/models/get_conversion_metrics200_response_spec.rb
|
|
6211
|
+
- spec/models/inline_object3_spec.rb
|
|
6207
6212
|
- spec/models/webhook_payload_conversation_started_spec.rb
|
|
6208
6213
|
- spec/models/list_sequences200_response_spec.rb
|
|
6209
6214
|
- spec/models/get_whats_app_template200_response_spec.rb
|
|
@@ -6603,7 +6608,6 @@ test_files:
|
|
|
6603
6608
|
- spec/models/select_facebook_page200_response_spec.rb
|
|
6604
6609
|
- spec/models/list_sms_registrations200_response_spec.rb
|
|
6605
6610
|
- spec/models/send_private_reply_to_comment_request_quick_replies_inner_spec.rb
|
|
6606
|
-
- spec/models/inline_object2_details_spec.rb
|
|
6607
6611
|
- spec/models/send_inbox_message_request_template_elements_inner_spec.rb
|
|
6608
6612
|
- spec/models/create_ad_insights_report_request_filtering_inner_spec.rb
|
|
6609
6613
|
- spec/models/webhook_payload_ad_status_changed_ad_object_spec.rb
|
data/zernio-sdk-0.0.672.gem
DELETED
|
Binary file
|