zernio-sdk 0.0.801 → 0.0.802
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/AccountWithFollowerStats.md +1 -1
- data/docs/SocialAccount.md +1 -1
- data/lib/zernio-sdk/models/account_with_follower_stats.rb +1 -1
- data/lib/zernio-sdk/models/create_post403_response.rb +2 -2
- data/lib/zernio-sdk/models/social_account.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +9 -3
- data/spec/models/create_post403_response_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f936e21dd5c6a77014212469f67c007e1e0ddd9491d81ff03a23cccd38909e7a
|
|
4
|
+
data.tar.gz: 05c24d73a74d224f023bba45481edcdd8aa2fb9994c21383f3ef4eca125a946e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32ff531364e519dac0cca0c29b43f855d2a2428be868bfb6104474a2336d8be2f4ba7e7c5f8dbb8f5c99b8c4880d95c349e67ab841117ce7bc71b0e088a542da
|
|
7
|
+
data.tar.gz: d166c39907c55d2b3cc6d2865285eb4517f7c57ad053e1c4738b8252384649b4a76013791a07f5656ac1081dc44a27452daba215dee461df85dd98c25081c4e6
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| **followers_count** | **Float** | Follower count (only included if user has analytics add-on) | [optional] |
|
|
17
17
|
| **followers_last_updated** | **Time** | Last time follower count was updated (only included if user has analytics add-on) | [optional] |
|
|
18
18
|
| **parent_account_id** | **String** | Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts. | [optional] |
|
|
19
|
-
| **enabled** | **Boolean** | Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first).
|
|
19
|
+
| **enabled** | **Boolean** | Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Such accounts are hidden from this list, cannot be posted to (`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts. | [optional] |
|
|
20
20
|
| **metadata** | **Object** | Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName. | [optional] |
|
|
21
21
|
| **current_followers** | **Float** | Current follower count | [optional] |
|
|
22
22
|
| **last_updated** | **Time** | | [optional] |
|
data/docs/SocialAccount.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| **followers_count** | **Float** | Follower count (only included if user has analytics add-on) | [optional] |
|
|
17
17
|
| **followers_last_updated** | **Time** | Last time follower count was updated (only included if user has analytics add-on) | [optional] |
|
|
18
18
|
| **parent_account_id** | **String** | Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts. | [optional] |
|
|
19
|
-
| **enabled** | **Boolean** | Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first).
|
|
19
|
+
| **enabled** | **Boolean** | Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Such accounts are hidden from this list, cannot be posted to (`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts. | [optional] |
|
|
20
20
|
| **metadata** | **Object** | Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName. | [optional] |
|
|
21
21
|
|
|
22
22
|
## Example
|
|
@@ -45,7 +45,7 @@ module Zernio
|
|
|
45
45
|
# Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts.
|
|
46
46
|
attr_accessor :parent_account_id
|
|
47
47
|
|
|
48
|
-
# Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first).
|
|
48
|
+
# Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Such accounts are hidden from this list, cannot be posted to (`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts.
|
|
49
49
|
attr_accessor :enabled
|
|
50
50
|
|
|
51
51
|
# Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
|
|
@@ -111,7 +111,7 @@ module Zernio
|
|
|
111
111
|
# @return true if the model is valid
|
|
112
112
|
def valid?
|
|
113
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
|
-
code_validator = EnumAttributeValidator.new('String', ["ACCOUNT_DISCONNECTED", "PROFILE_OVER_LIMIT"])
|
|
114
|
+
code_validator = EnumAttributeValidator.new('String', ["ACCOUNT_DISCONNECTED", "ACCOUNT_NOT_ENABLED_FOR_POSTING", "PROFILE_OVER_LIMIT"])
|
|
115
115
|
return false unless code_validator.valid?(@code)
|
|
116
116
|
true
|
|
117
117
|
end
|
|
@@ -119,7 +119,7 @@ module Zernio
|
|
|
119
119
|
# Custom attribute writer method checking allowed values (enum).
|
|
120
120
|
# @param [Object] code Object to be assigned
|
|
121
121
|
def code=(code)
|
|
122
|
-
validator = EnumAttributeValidator.new('String', ["ACCOUNT_DISCONNECTED", "PROFILE_OVER_LIMIT"])
|
|
122
|
+
validator = EnumAttributeValidator.new('String', ["ACCOUNT_DISCONNECTED", "ACCOUNT_NOT_ENABLED_FOR_POSTING", "PROFILE_OVER_LIMIT"])
|
|
123
123
|
unless validator.valid?(code)
|
|
124
124
|
fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
|
|
125
125
|
end
|
|
@@ -45,7 +45,7 @@ module Zernio
|
|
|
45
45
|
# Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts.
|
|
46
46
|
attr_accessor :parent_account_id
|
|
47
47
|
|
|
48
|
-
# Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first).
|
|
48
|
+
# Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Such accounts are hidden from this list, cannot be posted to (`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts.
|
|
49
49
|
attr_accessor :enabled
|
|
50
50
|
|
|
51
51
|
# Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -6771,7 +6771,8 @@ components:
|
|
|
6771
6771
|
description: |
|
|
6772
6772
|
Whether the user explicitly activated this account. false means the account was
|
|
6773
6773
|
created as a side effect (e.g., posting account auto-created when user connected
|
|
6774
|
-
ads first).
|
|
6774
|
+
ads first). Such accounts are hidden from this list, cannot be posted to
|
|
6775
|
+
(`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts.
|
|
6775
6776
|
metadata:
|
|
6776
6777
|
type: object
|
|
6777
6778
|
description: |
|
|
@@ -14867,6 +14868,7 @@ paths:
|
|
|
14867
14868
|
description: |
|
|
14868
14869
|
Forbidden. Distinguish by the `code` field:
|
|
14869
14870
|
- `ACCOUNT_DISCONNECTED` — a target account exists but its platform connection is no longer active (token expired or revoked, or the account was disconnected). Reconnect the account, then refresh account IDs from `GET /v1/accounts` (accounts report their connection state via `isActive`). The disconnect itself is also emitted as the `account.disconnected` webhook event.
|
|
14871
|
+
- `ACCOUNT_NOT_ENABLED_FOR_POSTING` — a target account was connected for ads only (`enabled: false`) and cannot be posted to. Connect it as a posting account (it then counts as a connected account), then refresh account IDs from `GET /v1/accounts`.
|
|
14870
14872
|
- `PROFILE_OVER_LIMIT` — a target account belongs to a profile beyond the plan's profile limit.
|
|
14871
14873
|
- No `code` — a target `accountId` does not belong to the authenticated user (or is outside the API key's profile scope).
|
|
14872
14874
|
content:
|
|
@@ -14875,7 +14877,7 @@ paths:
|
|
|
14875
14877
|
type: object
|
|
14876
14878
|
properties:
|
|
14877
14879
|
error: { type: string, example: 'Account 6a0f6d2e520992756d96bb6c (facebook "My Page") is disconnected and cannot be posted to. Facebook tokens expired. Please reconnect your Facebook account. After reconnecting, refresh your account IDs from GET /v1/accounts.' }
|
|
14878
|
-
code: { type: string, enum: [ACCOUNT_DISCONNECTED, PROFILE_OVER_LIMIT], description: Stable machine-readable cause. Absent for ownership failures. }
|
|
14880
|
+
code: { type: string, enum: [ACCOUNT_DISCONNECTED, ACCOUNT_NOT_ENABLED_FOR_POSTING, PROFILE_OVER_LIMIT], description: Stable machine-readable cause. Absent for ownership failures. }
|
|
14879
14881
|
'409':
|
|
14880
14882
|
description: |
|
|
14881
14883
|
Duplicate content detected. Returned when the requested post matches an existing one on `(platform, accountId, content-hash)` within the last 24 hours, AND the request was NOT an `x-request-id` retry of an in-flight call. Distinct from same-`x-request-id` retries (which return HTTP 200 with the original post — see operation description for the idempotency contract).
|
|
@@ -15422,7 +15424,11 @@ paths:
|
|
|
15422
15424
|
properties:
|
|
15423
15425
|
error: { type: string }
|
|
15424
15426
|
'403':
|
|
15425
|
-
description:
|
|
15427
|
+
description: |
|
|
15428
|
+
Forbidden. Distinguish by the `code` field:
|
|
15429
|
+
- `ACCOUNT_NOT_ENABLED_FOR_POSTING`: a target account was connected for ads only (`enabled: false`) and cannot be posted to. Connect it as a posting account, then retry.
|
|
15430
|
+
- `PROFILE_OVER_LIMIT`: a target account belongs to a profile beyond the plan's profile limit.
|
|
15431
|
+
- `insufficient_permissions`: the post is not accessible to the caller.
|
|
15426
15432
|
content:
|
|
15427
15433
|
application/json:
|
|
15428
15434
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -36,7 +36,7 @@ describe Zernio::CreatePost403Response 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', ["ACCOUNT_DISCONNECTED", "PROFILE_OVER_LIMIT"])
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCOUNT_DISCONNECTED", "ACCOUNT_NOT_ENABLED_FOR_POSTING", "PROFILE_OVER_LIMIT"])
|
|
40
40
|
# validator.allowable_values.each do |value|
|
|
41
41
|
# expect { instance.code = value }.not_to raise_error
|
|
42
42
|
# end
|