late-sdk 0.0.695 → 0.0.697

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 333c877a4f531f235402f52f9e5b46407134e91e15ea59904eb00446704e8ffe
4
- data.tar.gz: 2f91decb5e0e51b411126994a70545a6a445c645a44d61aa19ffaf4dcdfc3f90
3
+ metadata.gz: b9fb7862bf09ea4b3a1750659a8875dc2ae8baff5859afcff3a9a6dd3d0f65d3
4
+ data.tar.gz: d6c5bcd0de1ac34353c3d25e7e0f07ef956e782cdd4d378879ae1863e99725c2
5
5
  SHA512:
6
- metadata.gz: a297b76f7e3eececf46d001f0659b9e3d09c854d78f10f3f8ab5fa8c37829ef78c4990b1581901ad54e3ced292772e3952ad6904017237f3064f582d6ea05797
7
- data.tar.gz: 5adc7ecddaf704481e3be52353bd658b62168679b2c82043d186f2812b04a7ea072fa508dd6266b5c018d7662afb053887f92d2ed061c0b92fba75ad6c978c7f
6
+ metadata.gz: b2fdfcd4da7b34eb660a467910a951a119da56182efea8f8338d2504e30793ba810a4715045740b3d6f91c8ce69cd25da795307156f34af8ac0398b15c6c49f7
7
+ data.tar.gz: e9b01a21a98bc508fb69d093e13303094f0369c503bf3309ee8b7707fab98d9d40207029f15c9f8ea6122b57955dccfbcac3546f7489387cd492934815d8b349
data/docs/ConnectApi.md CHANGED
@@ -713,7 +713,7 @@ end
713
713
 
714
714
  api_instance = Zernio::ConnectApi.new
715
715
  platform = 'facebook' # String | Social media platform to connect
716
- profile_id = 'profile_id_example' # String | Your Zernio profile ID (get from /v1/profiles)
716
+ profile_id = 'profile_id_example' # String | Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.
717
717
  opts = {
718
718
  redirect_url: 'redirect_url_example', # String | Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
719
719
  headless: true # Boolean | When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
@@ -751,7 +751,7 @@ end
751
751
  | Name | Type | Description | Notes |
752
752
  | ---- | ---- | ----------- | ----- |
753
753
  | **platform** | **String** | Social media platform to connect | |
754
- | **profile_id** | **String** | Your Zernio profile ID (get from /v1/profiles) | |
754
+ | **profile_id** | **String** | Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409. | |
755
755
  | **redirect_url** | **String** | Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId. | [optional] |
756
756
  | **headless** | **Boolean** | When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience. | [optional][default to false] |
757
757
 
@@ -589,7 +589,7 @@ This endpoint does not need any parameter.
589
589
 
590
590
  Move a number to another profile
591
591
 
592
- Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number always places it on the profile the NUMBER is on, so a `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a later reconnect pulls the account back. This endpoint is how you re-home it. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
592
+ Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a Zernio-provisioned number from any profile but its own is rejected with a `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you re-home the number first, so it can then be connected from the new profile. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
593
593
 
594
594
  ### Examples
595
595
 
@@ -670,7 +670,7 @@ module Zernio
670
670
  # Get OAuth connect URL
671
671
  # Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
672
672
  # @param platform [String] Social media platform to connect
673
- # @param profile_id [String] Your Zernio profile ID (get from /v1/profiles)
673
+ # @param profile_id [String] Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.
674
674
  # @param [Hash] opts the optional parameters
675
675
  # @option opts [String] :redirect_url Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
676
676
  # @option opts [Boolean] :headless When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience. (default to false)
@@ -683,7 +683,7 @@ module Zernio
683
683
  # Get OAuth connect URL
684
684
  # Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
685
685
  # @param platform [String] Social media platform to connect
686
- # @param profile_id [String] Your Zernio profile ID (get from /v1/profiles)
686
+ # @param profile_id [String] Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.
687
687
  # @param [Hash] opts the optional parameters
688
688
  # @option opts [String] :redirect_url Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
689
689
  # @option opts [Boolean] :headless When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience. (default to false)
@@ -547,7 +547,7 @@ module Zernio
547
547
  end
548
548
 
549
549
  # Move a number to another profile
550
- # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number always places it on the profile the NUMBER is on, so a `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a later reconnect pulls the account back. This endpoint is how you re-home it. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
550
+ # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a Zernio-provisioned number from any profile but its own is rejected with a `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you re-home the number first, so it can then be connected from the new profile. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
551
551
  # @param id [String] WhatsAppPhoneNumber id.
552
552
  # @param move_whats_app_number_to_profile_request [MoveWhatsAppNumberToProfileRequest]
553
553
  # @param [Hash] opts the optional parameters
@@ -558,7 +558,7 @@ module Zernio
558
558
  end
559
559
 
560
560
  # Move a number to another profile
561
- # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number always places it on the profile the NUMBER is on, so a `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a later reconnect pulls the account back. This endpoint is how you re-home it. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
561
+ # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a Zernio-provisioned number from any profile but its own is rejected with a `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you re-home the number first, so it can then be connected from the new profile. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
562
562
  # @param id [String] WhatsAppPhoneNumber id.
563
563
  # @param move_whats_app_number_to_profile_request [MoveWhatsAppNumberToProfileRequest]
564
564
  # @param [Hash] opts the optional parameters
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.695'
14
+ VERSION = '0.0.697'
15
15
  end
data/openapi.yaml CHANGED
@@ -15696,7 +15696,7 @@ paths:
15696
15696
  in: query
15697
15697
  required: true
15698
15698
  schema: { type: string }
15699
- description: Your Zernio profile ID (get from /v1/profiles)
15699
+ description: 'Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.'
15700
15700
  - name: redirect_url
15701
15701
  in: query
15702
15702
  schema: { type: string, format: uri }
@@ -16315,7 +16315,7 @@ paths:
16315
16315
  selectedLocationName: "My Coffee Shop"
16316
16316
  selectedLocationId: "9281089117903930794"
16317
16317
  '400':
16318
- description: "Missing required fields (profileId, locationId, or tempToken)"
16318
+ description: 'Missing required fields (profileId, locationId, or tempToken), or the provided accountId is not one of the accounts this connection manages'
16319
16319
  '401': { $ref: '#/components/responses/Unauthorized' }
16320
16320
  '403':
16321
16321
  description: User does not have access to the specified profile
@@ -19190,6 +19190,8 @@ paths:
19190
19190
  description: Invalid or expired access token
19191
19191
  '403':
19192
19192
  description: Profile limit exceeded for this plan
19193
+ '409':
19194
+ description: 'The phone number is a Zernio-provisioned number pinned to a different profile. Connect it from that profile, or move it first with PATCH /v1/whatsapp/phone-numbers/{id}/profile.'
19193
19195
 
19194
19196
  /v1/connect/whatsapp/select-phone-number:
19195
19197
  get:
@@ -19345,6 +19347,8 @@ paths:
19345
19347
  content:
19346
19348
  application/json:
19347
19349
  schema: { $ref: '#/components/schemas/ErrorResponse' }
19350
+ '409':
19351
+ description: 'The phone number is a Zernio-provisioned number pinned to a different profile. Connect it from that profile, or move it first with PATCH /v1/whatsapp/phone-numbers/{id}/profile.'
19348
19352
  '500':
19349
19353
  description: Failed to bind phone number
19350
19354
  content:
@@ -20840,7 +20844,7 @@ paths:
20840
20844
  selectedLocation:
20841
20845
  id: "12345678901234567890"
20842
20846
  name: "My Business Location"
20843
- '400': { description: Location not in available locations }
20847
+ '400': { description: 'Location not in available locations, or the provided googleAccountId is not one of the accounts this connection manages' }
20844
20848
  '401': { $ref: '#/components/responses/Unauthorized' }
20845
20849
  '404': { description: Account not found }
20846
20850
 
@@ -20920,7 +20924,7 @@ paths:
20920
20924
  isActive: true
20921
20925
  selectedLocationName: "Snap Fitness Dianella"
20922
20926
  selectedLocationId: "12345678901234567890"
20923
- '400': { description: 'Invalid body, or selected location not found under the Google account' }
20927
+ '400': { description: 'Invalid body, selected location not found under the Google account, or the provided googleAccountId is not one of the accounts this connection manages' }
20924
20928
  '401': { $ref: '#/components/responses/Unauthorized' }
20925
20929
  '403': { description: 'Payment required, or target profile exceeds plan limit' }
20926
20930
  '404': { description: Source Google Business account not found }
@@ -32289,9 +32293,9 @@ paths:
32289
32293
  Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the
32290
32294
  social account only and leaves the number itself pinned to its original
32291
32295
  profile, which splits the number across two profiles. Connecting a
32292
- provisioned number always places it on the profile the NUMBER is on, so a
32293
- `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a
32294
- later reconnect pulls the account back. This endpoint is how you re-home it.
32296
+ Zernio-provisioned number from any profile but its own is rejected with a
32297
+ `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you
32298
+ re-home the number first, so it can then be connected from the new profile.
32295
32299
 
32296
32300
  `id` is the number record id from `GET /v1/phone-numbers`, not an account id.
32297
32301
 
@@ -154,7 +154,7 @@ describe 'ConnectApi' do
154
154
  # Get OAuth connect URL
155
155
  # Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
156
156
  # @param platform Social media platform to connect
157
- # @param profile_id Your Zernio profile ID (get from /v1/profiles)
157
+ # @param profile_id Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @option opts [String] :redirect_url Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
160
160
  # @option opts [Boolean] :headless When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
@@ -133,7 +133,7 @@ describe 'WhatsAppPhoneNumbersApi' do
133
133
 
134
134
  # unit tests for move_whats_app_number_to_profile
135
135
  # Move a number to another profile
136
- # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number always places it on the profile the NUMBER is on, so a `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a later reconnect pulls the account back. This endpoint is how you re-home it. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
136
+ # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a Zernio-provisioned number from any profile but its own is rejected with a `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you re-home the number first, so it can then be connected from the new profile. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
137
137
  # @param id WhatsAppPhoneNumber id.
138
138
  # @param move_whats_app_number_to_profile_request
139
139
  # @param [Hash] opts the optional parameters
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.695
4
+ version: 0.0.697
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -5024,7 +5024,7 @@ files:
5024
5024
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5025
5025
  - spec/models/you_tube_video_retention_response_spec.rb
5026
5026
  - spec/spec_helper.rb
5027
- - zernio-sdk-0.0.695.gem
5027
+ - zernio-sdk-0.0.697.gem
5028
5028
  - zernio-sdk.gemspec
5029
5029
  homepage: https://openapi-generator.tech
5030
5030
  licenses:
Binary file