diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 06aae31..4f22dd2 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: 84dee82a0645f42cc2cc52337e45fbfb + docChecksum: 35e4c58336f3289dc7d36cd16ac407d9 docVersion: 0.0.1 - speakeasyVersion: 1.477.0 - generationVersion: 2.497.0 - releaseVersion: 0.2.2-alpha.58 - configChecksum: cdcf090c7d699c5ee81a4ae42eeb164b + speakeasyVersion: 1.481.1 + generationVersion: 2.500.5 + releaseVersion: 0.2.2-alpha.59 + configChecksum: 07f8c5e6cf1fe76e341758cb8b0ba8aa repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true features: ruby: - core: 3.5.1 + core: 3.5.3 deprecations: 2.81.2 examples: 2.81.5 flattening: 2.81.1 @@ -53,7 +53,6 @@ generatedFiles: - docs/models/operations/createlinkresponse.md - docs/models/operations/createpartnerdiscount.md - docs/models/operations/createpartnerinterval.md - - docs/models/operations/createpartnerlink.md - docs/models/operations/createpartnerrequestbody.md - docs/models/operations/createpartnerresponse.md - docs/models/operations/createpartnerresponsebody.md @@ -109,6 +108,7 @@ generatedFiles: - docs/models/operations/level.md - docs/models/operations/link.md - docs/models/operations/linkprops.md + - docs/models/operations/links.md - docs/models/operations/listdomainsrequest.md - docs/models/operations/listdomainsresponse.md - docs/models/operations/listeventsrequest.md @@ -260,7 +260,6 @@ generatedFiles: - lib/open_api_sdk/models/operations/createlink_response.rb - lib/open_api_sdk/models/operations/createpartner_discount.rb - lib/open_api_sdk/models/operations/createpartner_interval.rb - - lib/open_api_sdk/models/operations/createpartner_link.rb - lib/open_api_sdk/models/operations/createpartner_requestbody.rb - lib/open_api_sdk/models/operations/createpartner_response.rb - lib/open_api_sdk/models/operations/createpartner_responsebody.rb @@ -316,6 +315,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/level.rb - lib/open_api_sdk/models/operations/link.rb - lib/open_api_sdk/models/operations/linkprops.rb + - lib/open_api_sdk/models/operations/links.rb - lib/open_api_sdk/models/operations/listdomains_request.rb - lib/open_api_sdk/models/operations/listdomains_response.rb - lib/open_api_sdk/models/operations/listevents_request.rb @@ -474,7 +474,7 @@ examples: application/json: {"url": "https://google.com", "externalId": "123456", "tagIds": ["clux0rgak00011..."]} responses: "200": - application/json: {"id": "", "domain": "low-packaging.info", "key": "", "url": "https://black-and-white-secrecy.org/", "trackConversion": true, "externalId": "", "tenantId": "", "archived": true, "expiresAt": "1740169958586", "expiredUrl": "https://substantial-morbidity.net", "password": "B9652A4R_UwKP9k", "proxy": true, "title": "", "description": "supposing whoa coordination affect hmph worth once which", "image": "https://loremflickr.com/1110/3081?lock=857615867280802", "video": "https://picsum.videos/seed/ZYhaGNJVW/3723/2471", "rewrite": false, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "green"}], "webhookIds": [], "comments": "gah aha what lobotomise apud overwork snuggle midst er", "shortLink": "https://royal-fen.biz/", "qrCode": "https://impolite-dish.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 4539.75, "lastClicked": "", "leads": 1494.13, "sales": 4098.74, "saleAmount": 5858.44, "createdAt": "1727971238100", "updatedAt": "1737249232202", "projectId": "", "programId": ""} + application/json: {"id": "", "domain": "low-packaging.info", "key": "", "url": "https://black-and-white-secrecy.org/", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": true, "expiresAt": "1740169958586", "expiredUrl": "https://substantial-morbidity.net", "password": "B9652A4R_UwKP9k", "proxy": true, "title": "", "description": "supposing whoa coordination affect hmph worth once which", "image": "https://loremflickr.com/1110/3081?lock=857615867280802", "video": "https://picsum.videos/seed/ZYhaGNJVW/3723/2471", "rewrite": false, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "green"}], "webhookIds": [], "comments": "gah aha what lobotomise apud overwork snuggle midst er", "shortLink": "https://royal-fen.biz/", "qrCode": "https://impolite-dish.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 4539.75, "lastClicked": "", "leads": 1494.13, "sales": 4098.74, "saleAmount": 5858.44, "createdAt": "1727971238100", "updatedAt": "1737249232202", "projectId": ""} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -501,7 +501,7 @@ examples: pageSize: 50 responses: "200": - application/json: [{"id": "", "domain": "neglected-plastic.biz", "key": "", "url": "https://crooked-overload.name/", "trackConversion": true, "externalId": "", "tenantId": "", "archived": false, "expiresAt": "1740049351653", "expiredUrl": "https://roasted-language.name/", "password": "COyVtOrvIw1vLIJ", "proxy": true, "title": "", "description": "cleverly blossom defiantly", "image": "https://picsum.photos/seed/FhMx4/296/3347", "video": "https://picsum.videos/seed/gk5Gr0OXM/244/1177", "rewrite": false, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [], "webhookIds": [""], "comments": "eek censor tenement commonly softly boo massive sorrowful aw strict behind along energetic oddball pasta thread vestment meanwhile likely up", "shortLink": "https://lucky-volleyball.biz", "qrCode": "https://discrete-omelet.net/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 8772.27, "lastClicked": "", "leads": 7675.46, "sales": 4128.54, "saleAmount": 9422.58, "createdAt": "1714691552492", "updatedAt": "1737277107511", "projectId": "", "programId": ""}, {"id": "", "domain": "superficial-membership.info", "key": "", "url": "https://cuddly-scenario.info", "trackConversion": false, "externalId": "", "tenantId": "", "archived": true, "expiresAt": "1768414685482", "expiredUrl": "https://same-self-confidence.org/", "password": "a0JVb2ZsCSHb4yM", "proxy": true, "title": "", "description": "though char while beneath while", "image": "https://loremflickr.com/3318/2916?lock=3354329708523999", "video": "https://loremflickr.com/3154/1911?lock=2861440677696192", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "purple"}, {"id": "", "name": "", "color": "blue"}], "webhookIds": ["", ""], "comments": "yet questioningly anenst secret burgeon duh powerfully considering", "shortLink": "https://illustrious-design.org", "qrCode": "https://ajar-granny.org", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 6146.37, "lastClicked": "", "leads": 2846.28, "sales": 7343.54, "saleAmount": 5266.88, "createdAt": "1713717573234", "updatedAt": "1737263881603", "projectId": "", "programId": ""}, {"id": "", "domain": "pure-barracks.net", "key": "", "url": "https://familiar-colonialism.biz", "trackConversion": false, "externalId": "", "tenantId": "", "archived": false, "expiresAt": "1752193985611", "expiredUrl": "https://troubled-sport.info/", "password": "fb1iI7zKb7nCPxu", "proxy": true, "title": "", "description": "archaeology coaxingly ew", "image": "https://picsum.photos/seed/KrNp1ys/560/3633", "video": "https://loremflickr.com/881/3817?lock=3749541747594262", "rewrite": false, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [], "webhookIds": ["", "", ""], "comments": "wholly onto tightly stiff polarisation commercial ugh lift long serpentine stint zowie upbeat degrease fervently gah boom furthermore", "shortLink": "https://untimely-pear.biz", "qrCode": "https://burly-hawk.name/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 3790.69, "lastClicked": "", "leads": 7094.85, "sales": 5436.75, "saleAmount": 5719.21, "createdAt": "1728990456937", "updatedAt": "1737281522911", "projectId": "", "programId": ""}] + application/json: [{"id": "", "domain": "neglected-plastic.biz", "key": "", "url": "https://crooked-overload.name/", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": false, "expiresAt": "1740049351653", "expiredUrl": "https://roasted-language.name/", "password": "COyVtOrvIw1vLIJ", "proxy": true, "title": "", "description": "cleverly blossom defiantly", "image": "https://picsum.photos/seed/FhMx4/296/3347", "video": "https://picsum.videos/seed/gk5Gr0OXM/244/1177", "rewrite": false, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [], "webhookIds": [""], "comments": "eek censor tenement commonly softly boo massive sorrowful aw strict behind along energetic oddball pasta thread vestment meanwhile likely up", "shortLink": "https://lucky-volleyball.biz", "qrCode": "https://discrete-omelet.net/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 8772.27, "lastClicked": "", "leads": 7675.46, "sales": 4128.54, "saleAmount": 9422.58, "createdAt": "1714691552492", "updatedAt": "1737277107511", "projectId": ""}, {"id": "", "domain": "superficial-membership.info", "key": "", "url": "https://cuddly-scenario.info", "trackConversion": false, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": true, "expiresAt": "1768414685482", "expiredUrl": "https://same-self-confidence.org/", "password": "a0JVb2ZsCSHb4yM", "proxy": true, "title": "", "description": "though char while beneath while", "image": "https://loremflickr.com/3318/2916?lock=3354329708523999", "video": "https://loremflickr.com/3154/1911?lock=2861440677696192", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "purple"}, {"id": "", "name": "", "color": "blue"}], "webhookIds": ["", ""], "comments": "yet questioningly anenst secret burgeon duh powerfully considering", "shortLink": "https://illustrious-design.org", "qrCode": "https://ajar-granny.org", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 6146.37, "lastClicked": "", "leads": 2846.28, "sales": 7343.54, "saleAmount": 5266.88, "createdAt": "1713717573234", "updatedAt": "1737263881603", "projectId": ""}, {"id": "", "domain": "pure-barracks.net", "key": "", "url": "https://familiar-colonialism.biz", "trackConversion": false, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": false, "expiresAt": "1752193985611", "expiredUrl": "https://troubled-sport.info/", "password": "fb1iI7zKb7nCPxu", "proxy": true, "title": "", "description": "archaeology coaxingly ew", "image": "https://picsum.photos/seed/KrNp1ys/560/3633", "video": "https://loremflickr.com/881/3817?lock=3749541747594262", "rewrite": false, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [], "webhookIds": ["", "", ""], "comments": "wholly onto tightly stiff polarisation commercial ugh lift long serpentine stint zowie upbeat degrease fervently gah boom furthermore", "shortLink": "https://untimely-pear.biz", "qrCode": "https://burly-hawk.name/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 3790.69, "lastClicked": "", "leads": 7094.85, "sales": 5436.75, "saleAmount": 5719.21, "createdAt": "1728990456937", "updatedAt": "1737281522911", "projectId": ""}] "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -551,7 +551,7 @@ examples: externalId: "123456" responses: "200": - application/json: {"id": "", "domain": "rural-mathematics.name", "key": "", "url": "https://willing-impostor.info", "trackConversion": true, "externalId": "", "tenantId": "", "archived": true, "expiresAt": "1766886676342", "expiredUrl": "https://stiff-bidet.biz/", "password": "UmEgZU18kgjdwKI", "proxy": true, "title": "", "description": "restructure gadzooks alongside daily", "image": "https://picsum.photos/seed/45aEFZ1/2964/2015", "video": "https://loremflickr.com/2551/2755?lock=8039426390897665", "rewrite": true, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}], "webhookIds": ["", "", ""], "comments": "huzzah bell unabashedly unwilling disk modulo offset pacemaker violently plait trench guilt like claw incidentally", "shortLink": "https://parched-executor.com", "qrCode": "https://old-incandescence.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 9864.75, "lastClicked": "", "leads": 5433.15, "sales": 4138.54, "saleAmount": 6841.97, "createdAt": "1719919221533", "updatedAt": "1737284174992", "projectId": "", "programId": ""} + application/json: {"id": "", "domain": "rural-mathematics.name", "key": "", "url": "https://willing-impostor.info", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": true, "expiresAt": "1766886676342", "expiredUrl": "https://stiff-bidet.biz/", "password": "UmEgZU18kgjdwKI", "proxy": true, "title": "", "description": "restructure gadzooks alongside daily", "image": "https://picsum.photos/seed/45aEFZ1/2964/2015", "video": "https://loremflickr.com/2551/2755?lock=8039426390897665", "rewrite": true, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}], "webhookIds": ["", "", ""], "comments": "huzzah bell unabashedly unwilling disk modulo offset pacemaker violently plait trench guilt like claw incidentally", "shortLink": "https://parched-executor.com", "qrCode": "https://old-incandescence.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 9864.75, "lastClicked": "", "leads": 5433.15, "sales": 4138.54, "saleAmount": 6841.97, "createdAt": "1719919221533", "updatedAt": "1737284174992", "projectId": ""} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -579,7 +579,7 @@ examples: application/json: {"url": "https://google.com", "externalId": "123456", "tagIds": ["clux0rgak00011..."]} responses: "200": - application/json: {"id": "", "domain": "tinted-nectarine.info", "key": "", "url": "https://powerless-juggernaut.org", "trackConversion": true, "externalId": "", "tenantId": "", "archived": false, "expiresAt": "1751425103616", "expiredUrl": "https://extra-large-chapel.net/", "password": "uMjbGhnJP7Bopud", "proxy": false, "title": "", "description": "hungrily where woot royal duh", "image": "https://loremflickr.com/704/1105?lock=531882236227436", "video": "https://loremflickr.com/1732/307?lock=7953362777850438", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [], "webhookIds": [""], "comments": "during since anxiously lightly ultimately in likely opera please antelope exotic fussy", "shortLink": "https://handy-scaffold.org", "qrCode": "https://misguided-range.org", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 2245.52, "lastClicked": "", "leads": 2073.2, "sales": 7745.3, "saleAmount": 1379.57, "createdAt": "1711415830558", "updatedAt": "1737271254855", "projectId": "", "programId": ""} + application/json: {"id": "", "domain": "tinted-nectarine.info", "key": "", "url": "https://powerless-juggernaut.org", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": false, "expiresAt": "1751425103616", "expiredUrl": "https://extra-large-chapel.net/", "password": "uMjbGhnJP7Bopud", "proxy": false, "title": "", "description": "hungrily where woot royal duh", "image": "https://loremflickr.com/704/1105?lock=531882236227436", "video": "https://loremflickr.com/1732/307?lock=7953362777850438", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": false, "tagId": "", "tags": [], "webhookIds": [""], "comments": "during since anxiously lightly ultimately in likely opera please antelope exotic fussy", "shortLink": "https://handy-scaffold.org", "qrCode": "https://misguided-range.org", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 2245.52, "lastClicked": "", "leads": 2073.2, "sales": 7745.3, "saleAmount": 1379.57, "createdAt": "1711415830558", "updatedAt": "1737271254855", "projectId": ""} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -655,7 +655,7 @@ examples: application/json: {"data": {"url": "https://google.com", "tagIds": ["clux0rgak00011..."]}} responses: "200": - application/json: [{"id": "", "domain": "old-lox.org", "key": "", "url": "https://angelic-cellar.org/", "trackConversion": true, "externalId": "", "tenantId": "", "archived": true, "expiresAt": "1768652946712", "expiredUrl": "https://wordy-version.org", "password": "MRdLF0naLtN5wKv", "proxy": false, "title": "", "description": "convalesce failing faint", "image": "https://loremflickr.com/3643/399?lock=5328086824987349", "video": "https://loremflickr.com/2566/3076?lock=8474317426529991", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "purple"}], "webhookIds": ["", ""], "comments": "because freckle yin armoire woot plastic vista duh loyally judicious likewise", "shortLink": "https://clean-volleyball.info", "qrCode": "https://lovable-alligator.org/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 964.22, "lastClicked": "", "leads": 7553.21, "sales": 5339.39, "saleAmount": 2285.23, "createdAt": "1736011669899", "updatedAt": "1737308330656", "projectId": "", "programId": ""}, {"id": "", "domain": "first-aftermath.biz", "key": "", "url": "https://negative-hospitalization.com", "trackConversion": true, "externalId": "", "tenantId": "", "archived": false, "expiresAt": "1761129212955", "expiredUrl": "https://whirlwind-galoshes.name", "password": "sL_6uLsdcLcIbbW", "proxy": true, "title": "", "description": "fat who midst aside alert excepting magnetize", "image": "https://loremflickr.com/1915/2418?lock=8396781847242257", "video": "https://picsum.videos/seed/tB24orBy/3081/3461", "rewrite": true, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "green"}, {"id": "", "name": "", "color": "purple"}], "webhookIds": [""], "comments": "blah verify soybean now aha moment improbable via inside after bonnet however overcoat gee whether substantiate feminize openly modulo", "shortLink": "https://inborn-commercial.com/", "qrCode": "https://excited-epic.info/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 7613.83, "lastClicked": "", "leads": 8591.44, "sales": 9883.56, "saleAmount": 2770.07, "createdAt": "1729246173810", "updatedAt": "1737310203681", "projectId": "", "programId": ""}] + application/json: [{"id": "", "domain": "old-lox.org", "key": "", "url": "https://angelic-cellar.org/", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": true, "expiresAt": "1768652946712", "expiredUrl": "https://wordy-version.org", "password": "MRdLF0naLtN5wKv", "proxy": false, "title": "", "description": "convalesce failing faint", "image": "https://loremflickr.com/3643/399?lock=5328086824987349", "video": "https://loremflickr.com/2566/3076?lock=8474317426529991", "rewrite": true, "doIndex": false, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "purple"}], "webhookIds": ["", ""], "comments": "because freckle yin armoire woot plastic vista duh loyally judicious likewise", "shortLink": "https://clean-volleyball.info", "qrCode": "https://lovable-alligator.org/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 964.22, "lastClicked": "", "leads": 7553.21, "sales": 5339.39, "saleAmount": 2285.23, "createdAt": "1736011669899", "updatedAt": "1737308330656", "projectId": ""}, {"id": "", "domain": "first-aftermath.biz", "key": "", "url": "https://negative-hospitalization.com", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": false, "expiresAt": "1761129212955", "expiredUrl": "https://whirlwind-galoshes.name", "password": "sL_6uLsdcLcIbbW", "proxy": true, "title": "", "description": "fat who midst aside alert excepting magnetize", "image": "https://loremflickr.com/1915/2418?lock=8396781847242257", "video": "https://picsum.videos/seed/tB24orBy/3081/3461", "rewrite": true, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [{"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "green"}, {"id": "", "name": "", "color": "purple"}], "webhookIds": [""], "comments": "blah verify soybean now aha moment improbable via inside after bonnet however overcoat gee whether substantiate feminize openly modulo", "shortLink": "https://inborn-commercial.com/", "qrCode": "https://excited-epic.info/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 7613.83, "lastClicked": "", "leads": 8591.44, "sales": 9883.56, "saleAmount": 2770.07, "createdAt": "1729246173810", "updatedAt": "1737310203681", "projectId": ""}] "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -706,7 +706,7 @@ examples: application/json: {"url": "https://google.com", "externalId": "123456", "tagIds": ["clux0rgak00011..."]} responses: "200": - application/json: {"id": "", "domain": "neat-instruction.info", "key": "", "url": "https://entire-rubric.com/", "trackConversion": true, "externalId": "", "tenantId": "", "archived": true, "expiresAt": "1759309031063", "expiredUrl": "https://accurate-postbox.info", "password": "WcftWRnnmyj_UKT", "proxy": true, "title": "", "description": "account supposing bakeware", "image": "https://loremflickr.com/473/1522?lock=3086614550931103", "video": "https://loremflickr.com/513/908?lock=5606571816595400", "rewrite": false, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [], "webhookIds": ["", "", ""], "comments": "characterization whenever an secret uh-huh incidentally a that", "shortLink": "https://glorious-draft.name/", "qrCode": "https://warped-lifestyle.info/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 2566.71, "lastClicked": "", "leads": 4393.08, "sales": 2587.95, "saleAmount": 8832.25, "createdAt": "1724246540922", "updatedAt": "1737313540796", "projectId": "", "programId": ""} + application/json: {"id": "", "domain": "neat-instruction.info", "key": "", "url": "https://entire-rubric.com/", "trackConversion": true, "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "archived": true, "expiresAt": "1759309031063", "expiredUrl": "https://accurate-postbox.info", "password": "WcftWRnnmyj_UKT", "proxy": true, "title": "", "description": "account supposing bakeware", "image": "https://loremflickr.com/473/1522?lock=3086614550931103", "video": "https://loremflickr.com/513/908?lock=5606571816595400", "rewrite": false, "doIndex": true, "ios": "", "android": "", "geo": {}, "publicStats": true, "tagId": "", "tags": [], "webhookIds": ["", "", ""], "comments": "characterization whenever an secret uh-huh incidentally a that", "shortLink": "https://glorious-draft.name/", "qrCode": "https://warped-lifestyle.info/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 2566.71, "lastClicked": "", "leads": 4393.08, "sales": 2587.95, "saleAmount": 8832.25, "createdAt": "1724246540922", "updatedAt": "1737313540796", "projectId": ""} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -770,7 +770,7 @@ examples: refererUrl: "https://dub.co/blog" responses: "200": - application/json: [{"event": "click", "click": {"id": "", "url": "https://remorseful-concentration.biz", "country": "Cameroon", "city": "Nikolaustown", "region": "", "continent": "North America", "device": "Desktop", "browser": "Chrome", "os": "Blackberry", "referer": "memorable-overcoat.com", "refererUrl": "https://hidden-jet.com/", "ip": "cda1:7c0d:9e31:d2a9:9a2b:c9c6:823e:0dee"}, "link": {"id": "", "domain": "bowed-poppy.name", "key": "", "url": "https://substantial-yin.com", "externalId": "", "tenantId": "", "expiresAt": "1742535180986", "expiredUrl": "https://tasty-sarong.com/", "password": "kTh9aKnjQvMfiGb", "title": "", "description": "censor tenement commonly softly boo massive sorrowful", "image": "https://loremflickr.com/650/731?lock=3490957837371075", "video": "https://picsum.videos/seed/CifVJN/3581/99", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "purple"}, {"id": "", "name": "", "color": "yellow"}, {"id": "", "name": "", "color": "blue"}], "webhookIds": ["", ""], "comments": "overheard swerve than bicycle twine huzzah obnoxiously after crooked enthusiastically flustered ack sticky without linseed finger inasmuch hydrolyze", "shortLink": "https://each-carnival.org/", "qrCode": "https://wiggly-blowgun.name", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 1899.83, "lastClicked": "", "leads": 8926.31, "sales": 1866.93, "saleAmount": 1073.35, "createdAt": "1721424118919", "updatedAt": "1737286595043", "projectId": "", "programId": ""}, "click_id": "", "link_id": "", "domain": "red-populist.biz", "key": "", "url": "https://faraway-strait.com", "continent": "Africa", "country": "Samoa", "city": "Sioux Falls", "device": "Mobile", "browser": "Firefox", "os": "iOS", "qr": 7884.8, "ip": "31.81.88.183"}, {"event": "click", "click": {"id": "", "url": "https://tender-representation.name/", "country": "Latvia", "city": "Ferrytown", "region": "", "continent": "South America", "device": "Mobile", "browser": "Chrome", "os": "iOS", "referer": "excellent-wedding.com", "refererUrl": "https://smooth-swing.net", "ip": "159.227.22.122"}, "link": {"id": "", "domain": "right-toothbrush.org", "key": "", "url": "https://unique-cemetery.name/", "externalId": "", "tenantId": "", "expiresAt": "1749566468098", "expiredUrl": "https://genuine-secret.name", "password": "88fquzaxdapYd5p", "title": "", "description": "mid aw disconnection which", "image": "https://picsum.photos/seed/ibXLXFqYe/3357/1452", "video": "https://picsum.videos/seed/OmvVTn/3768/1798", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [], "webhookIds": [""], "comments": "reproachfully upon zowie alligator next inwardly ripe solicit that willing", "shortLink": "https://interesting-baseboard.biz", "qrCode": "https://circular-intellect.com", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 5884.43, "lastClicked": "", "leads": 5842.84, "sales": 7512.8, "saleAmount": 1707.02, "createdAt": "1731569193336", "updatedAt": "1737252746649", "projectId": "", "programId": ""}, "click_id": "", "link_id": "", "domain": "lavish-hydrant.org", "key": "", "url": "https://next-cricket.biz/", "continent": "Africa", "country": "Palau", "city": "Lindstad", "device": "Mobile", "browser": "Firefox", "os": "Windows Phone", "qr": 7476.87, "ip": "fa97:4d9b:f7cf:4c5d:273f:1edb:e4fe:ad8d"}, {"event": "click", "click": {"id": "", "url": "https://splendid-octave.biz", "country": "Cote d'Ivoire", "city": "East Alejandrinstead", "region": "", "continent": "South America", "device": "Desktop", "browser": "Chrome", "os": "iOS", "referer": "grounded-travel.com", "refererUrl": "https://warlike-institute.biz", "ip": "0342:1414:66e5:ade5:429e:8fbc:a89d:7d5e"}, "link": {"id": "", "domain": "general-stranger.biz", "key": "", "url": "https://dead-fraudster.name/", "externalId": "", "tenantId": "", "expiresAt": "1760344563906", "expiredUrl": "https://flawless-cash.com/", "password": "ibaQd9T3I6zDNBi", "title": "", "description": "blind allegation finally wrongly acidly lavish unless for dividend", "image": "https://picsum.photos/seed/woZyy/3531/2372", "video": "https://picsum.videos/seed/VpOZ1Bjo/2051/2578", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}], "webhookIds": ["", ""], "comments": "oddball as limply from anticodon avaricious our where solicit needily", "shortLink": "https://evil-eggplant.org", "qrCode": "https://aged-lava.com/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 9412.1, "lastClicked": "", "leads": 7561.14, "sales": 3040.42, "saleAmount": 1760.14, "createdAt": "1734830078655", "updatedAt": "1737327963859", "projectId": "", "programId": ""}, "click_id": "", "link_id": "", "domain": "peppery-birdcage.org", "key": "", "url": "https://lavish-jet.net", "continent": "Europe", "country": "France", "city": "Port Annette", "device": "Mobile", "browser": "Firefox", "os": "iOS", "qr": 3573.93, "ip": "f79f:5f3c:ca8d:cfdd:2f22:7e3f:d8eb:d3ab"}] + application/json: [{"event": "click", "click": {"id": "", "url": "https://remorseful-concentration.biz", "country": "Cameroon", "city": "Nikolaustown", "region": "", "continent": "North America", "device": "Desktop", "browser": "Chrome", "os": "Blackberry", "referer": "memorable-overcoat.com", "refererUrl": "https://hidden-jet.com/", "ip": "cda1:7c0d:9e31:d2a9:9a2b:c9c6:823e:0dee"}, "link": {"id": "", "domain": "bowed-poppy.name", "key": "", "url": "https://substantial-yin.com", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1742535180986", "expiredUrl": "https://tasty-sarong.com/", "password": "kTh9aKnjQvMfiGb", "title": "", "description": "censor tenement commonly softly boo massive sorrowful", "image": "https://loremflickr.com/650/731?lock=3490957837371075", "video": "https://picsum.videos/seed/CifVJN/3581/99", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "purple"}, {"id": "", "name": "", "color": "yellow"}, {"id": "", "name": "", "color": "blue"}], "webhookIds": ["", ""], "comments": "overheard swerve than bicycle twine huzzah obnoxiously after crooked enthusiastically flustered ack sticky without linseed finger inasmuch hydrolyze", "shortLink": "https://each-carnival.org/", "qrCode": "https://wiggly-blowgun.name", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 1899.83, "lastClicked": "", "leads": 8926.31, "sales": 1866.93, "saleAmount": 1073.35, "createdAt": "1721424118919", "updatedAt": "1737286595043", "projectId": ""}, "click_id": "", "link_id": "", "domain": "red-populist.biz", "key": "", "url": "https://faraway-strait.com", "continent": "Africa", "country": "Samoa", "city": "Sioux Falls", "device": "Mobile", "browser": "Firefox", "os": "iOS", "qr": 7884.8, "ip": "31.81.88.183"}, {"event": "click", "click": {"id": "", "url": "https://tender-representation.name/", "country": "Latvia", "city": "Ferrytown", "region": "", "continent": "South America", "device": "Mobile", "browser": "Chrome", "os": "iOS", "referer": "excellent-wedding.com", "refererUrl": "https://smooth-swing.net", "ip": "159.227.22.122"}, "link": {"id": "", "domain": "right-toothbrush.org", "key": "", "url": "https://unique-cemetery.name/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1749566468098", "expiredUrl": "https://genuine-secret.name", "password": "88fquzaxdapYd5p", "title": "", "description": "mid aw disconnection which", "image": "https://picsum.photos/seed/ibXLXFqYe/3357/1452", "video": "https://picsum.videos/seed/OmvVTn/3768/1798", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [], "webhookIds": [""], "comments": "reproachfully upon zowie alligator next inwardly ripe solicit that willing", "shortLink": "https://interesting-baseboard.biz", "qrCode": "https://circular-intellect.com", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 5884.43, "lastClicked": "", "leads": 5842.84, "sales": 7512.8, "saleAmount": 1707.02, "createdAt": "1731569193336", "updatedAt": "1737252746649", "projectId": ""}, "click_id": "", "link_id": "", "domain": "lavish-hydrant.org", "key": "", "url": "https://next-cricket.biz/", "continent": "Africa", "country": "Palau", "city": "Lindstad", "device": "Mobile", "browser": "Firefox", "os": "Windows Phone", "qr": 7476.87, "ip": "fa97:4d9b:f7cf:4c5d:273f:1edb:e4fe:ad8d"}, {"event": "click", "click": {"id": "", "url": "https://splendid-octave.biz", "country": "Cote d'Ivoire", "city": "East Alejandrinstead", "region": "", "continent": "South America", "device": "Desktop", "browser": "Chrome", "os": "iOS", "referer": "grounded-travel.com", "refererUrl": "https://warlike-institute.biz", "ip": "0342:1414:66e5:ade5:429e:8fbc:a89d:7d5e"}, "link": {"id": "", "domain": "general-stranger.biz", "key": "", "url": "https://dead-fraudster.name/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1760344563906", "expiredUrl": "https://flawless-cash.com/", "password": "ibaQd9T3I6zDNBi", "title": "", "description": "blind allegation finally wrongly acidly lavish unless for dividend", "image": "https://picsum.photos/seed/woZyy/3531/2372", "video": "https://picsum.videos/seed/VpOZ1Bjo/2051/2578", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}], "webhookIds": ["", ""], "comments": "oddball as limply from anticodon avaricious our where solicit needily", "shortLink": "https://evil-eggplant.org", "qrCode": "https://aged-lava.com/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 9412.1, "lastClicked": "", "leads": 7561.14, "sales": 3040.42, "saleAmount": 1760.14, "createdAt": "1734830078655", "updatedAt": "1737327963859", "projectId": ""}, "click_id": "", "link_id": "", "domain": "peppery-birdcage.org", "key": "", "url": "https://lavish-jet.net", "continent": "Europe", "country": "France", "city": "Port Annette", "device": "Mobile", "browser": "Firefox", "os": "iOS", "qr": 3573.93, "ip": "f79f:5f3c:ca8d:cfdd:2f22:7e3f:d8eb:d3ab"}] "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -1288,7 +1288,7 @@ examples: application/json: {"programId": "", "name": "", "email": "Loyal79@yahoo.com", "username": "Aaliyah_Borer", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."]}} responses: "201": - application/json: {"id": "", "name": "", "email": "Loyal79@yahoo.com", "image": "https://loremflickr.com/1/679?lock=7139282333236917", "country": "Slovenia", "bio": "", "stripeConnectId": "", "payoutsEnabled": false, "createdAt": "1730216871840", "updatedAt": "1738020328182", "status": "pending", "link": {"id": "", "shortLink": "https://agile-defendant.biz/", "domain": "better-fedora.biz", "key": "", "url": "https://calculating-pearl.info/", "clicks": 365.21, "leads": 6216.36, "sales": 6502.37, "saleAmount": 2006.64}, "commissionAmount": 155.52, "earnings": 5235.23} + application/json: {"id": "", "name": "", "email": "Loyal79@yahoo.com", "image": "https://loremflickr.com/1/679?lock=7139282333236917", "country": "Slovenia", "bio": "", "stripeConnectId": "", "payoutsEnabled": false, "createdAt": "1730216871840", "updatedAt": "1738020328182", "status": "pending", "links": [{"id": "", "domain": "probable-heating.com", "key": "", "shortLink": "https://standard-utilization.com/", "url": "https://brisk-seafood.net/", "clicks": 5862.2, "leads": 7524.38, "sales": 9574.09, "saleAmount": 3570.21}], "commissionAmount": 155.52, "earnings": 5235.23, "clicks": 2596.29, "leads": 177.59, "sales": 2303.13, "salesAmount": 2113.37} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8558d05..c13c9e4 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.58 + version: 0.2.2-alpha.59 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a319255..4ec664a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.477.0 +speakeasyVersion: 1.481.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:741f258e975991e1862c4e4bf614f410b7bf65c212ac0e4a3500641ae08dab6f - sourceBlobDigest: sha256:66e1ba2210a453339342266aa844ea89fedd7423aaae1e43745b01bb4d9ab7a5 + sourceRevisionDigest: sha256:35e0d43bc22466f2b3123c89af55fb2795faab7ba45d389e579d3e5a35b5b788 + sourceBlobDigest: sha256:451be136201f6f2abfe71e31c9d268f24d14c1a911aad964414e9e62d708dda3 tags: - latest - - speakeasy-sdk-regen-1738110370 + - speakeasy-sdk-regen-1738369717 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:741f258e975991e1862c4e4bf614f410b7bf65c212ac0e4a3500641ae08dab6f - sourceBlobDigest: sha256:66e1ba2210a453339342266aa844ea89fedd7423aaae1e43745b01bb4d9ab7a5 + sourceRevisionDigest: sha256:35e0d43bc22466f2b3123c89af55fb2795faab7ba45d389e579d3e5a35b5b788 + sourceBlobDigest: sha256:451be136201f6f2abfe71e31c9d268f24d14c1a911aad964414e9e62d708dda3 codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:ef2bbbce3e5eb952a66cfb5bc8ef315217f8fd0b415a4a701b153f335718b000 + codeSamplesRevisionDigest: sha256:594b3c73bd192d59f28e76933b794bf931fc02131877af3bdba5a5d4cc2dd1e7 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 4707fc8..d491a68 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.58) + dub (0.2.2.pre.alpha.59) faraday faraday-multipart rack @@ -35,7 +35,7 @@ GEM racc prism (0.27.0) racc (1.8.1) - rack (3.1.8) + rack (3.1.9) rainbow (3.1.1) rake (13.2.1) rbi (0.1.12) diff --git a/RELEASES.md b/RELEASES.md index 14563e5..ff5bbea 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -728,4 +728,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.58] . ### Releases -- [Ruby Gems v0.2.2-alpha.58] https://rubygems.org/gems/dub/versions/0.2.2-alpha.58 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.58] https://rubygems.org/gems/dub/versions/0.2.2-alpha.58 - . + +## 2025-02-03 00:26:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.481.1 (2.500.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.59] . +### Releases +- [Ruby Gems v0.2.2-alpha.59] https://rubygems.org/gems/dub/versions/0.2.2-alpha.59 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index e659a21..39feb60 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -170,7 +170,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "createEmbedToken" - "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::CreateEmbedTokenRequestBody.new(\n link_id: \"\",\n)\n \nres = s.embed_tokens.create(req)\n\nif ! res.object.nil?\n # handle response\nend" + "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::CreateEmbedTokenRequestBody.new(\n program_id: \"\",\n)\n \nres = s.embed_tokens.create(req)\n\nif ! res.object.nil?\n # handle response\nend" - target: $["paths"]["/track/lead"]["post"] update: "x-codeSamples": diff --git a/docs/models/operations/createembedtokenrequestbody.md b/docs/models/operations/createembedtokenrequestbody.md index 9d05206..99edf42 100644 --- a/docs/models/operations/createembedtokenrequestbody.md +++ b/docs/models/operations/createembedtokenrequestbody.md @@ -3,6 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `link_id` | *::String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `program_id` | *::String* | :heavy_check_mark: | N/A | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | +| `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createlinkrequestbody.md b/docs/models/operations/createlinkrequestbody.md index 089911e..0d2f398 100644 --- a/docs/models/operations/createlinkrequestbody.md +++ b/docs/models/operations/createlinkrequestbody.md @@ -10,6 +10,8 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. If not provided, a random 7-character slug will be generated. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | 123456 | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `prefix` | *T.nilable(::String)* | :heavy_minus_sign: | The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. | | | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to track conversions for the short link. Defaults to `false` if not provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | @@ -37,5 +39,4 @@ | `utm_term` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL. | | | `utm_content` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL. | | | `ref` | *T.nilable(::String)* | :heavy_minus_sign: | The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL. | | -| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | | `webhook_ids` | T::Array<*::String*> | :heavy_minus_sign: | An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data. | | \ No newline at end of file diff --git a/docs/models/operations/createpartnerrequestbody.md b/docs/models/operations/createpartnerrequestbody.md index c546bd8..44aa288 100644 --- a/docs/models/operations/createpartnerrequestbody.md +++ b/docs/models/operations/createpartnerrequestbody.md @@ -12,4 +12,5 @@ | `image` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar image for the partner – if not provided, a default avatar will be used. | | `country` | [T.nilable(::OpenApiSDK::Operations::Country)](../../models/operations/country.md) | :heavy_minus_sign: | Country where the partner is based. | | `description` | *T.nilable(::String)* | :heavy_minus_sign: | A brief description of the partner and their background. | +| `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner in your system. | | `link_props` | [T.nilable(::OpenApiSDK::Operations::LinkProps)](../../models/operations/linkprops.md) | :heavy_minus_sign: | Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner. | \ No newline at end of file diff --git a/docs/models/operations/createpartnerresponsebody.md b/docs/models/operations/createpartnerresponsebody.md index 8e0b92f..b221655 100644 --- a/docs/models/operations/createpartnerresponsebody.md +++ b/docs/models/operations/createpartnerresponsebody.md @@ -19,7 +19,11 @@ The created partner | `created_at` | *::String* | :heavy_check_mark: | N/A | | `updated_at` | *::String* | :heavy_check_mark: | N/A | | `status` | [::OpenApiSDK::Operations::Status](../../models/operations/status.md) | :heavy_check_mark: | N/A | -| `link` | [::OpenApiSDK::Operations::CreatePartnerLink](../../models/operations/createpartnerlink.md) | :heavy_check_mark: | N/A | +| `links` | T::Array<[::OpenApiSDK::Operations::Links](../../models/operations/links.md)> | :heavy_check_mark: | N/A | | `discount` | [T.nilable(::OpenApiSDK::Operations::CreatePartnerDiscount)](../../models/operations/createpartnerdiscount.md) | :heavy_minus_sign: | N/A | | `commission_amount` | *::Float* | :heavy_check_mark: | N/A | -| `earnings` | *::Float* | :heavy_check_mark: | N/A | \ No newline at end of file +| `earnings` | *::Float* | :heavy_check_mark: | N/A | +| `clicks` | *::Float* | :heavy_check_mark: | N/A | +| `leads` | *::Float* | :heavy_check_mark: | N/A | +| `sales` | *::Float* | :heavy_check_mark: | N/A | +| `sales_amount` | *::Float* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/data.md b/docs/models/operations/data.md index 0dc0f8c..84b4bdf 100644 --- a/docs/models/operations/data.md +++ b/docs/models/operations/data.md @@ -7,6 +7,8 @@ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `url` | *T.nilable(::String)* | :heavy_minus_sign: | The destination URL of the short link. | https://google.com | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to track conversions for the short link. Defaults to `false` if not provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | | ~~`public_stats`~~ | *T.nilable(T::Boolean)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: Use `dashboard` instead. Whether the short link's stats are publicly accessible. Defaults to `false` if not provided. | | @@ -33,5 +35,4 @@ | `utm_term` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL. | | | `utm_content` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL. | | | `ref` | *T.nilable(::String)* | :heavy_minus_sign: | The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL. | | -| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | | `webhook_ids` | T::Array<*::String*> | :heavy_minus_sign: | An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data. | | \ No newline at end of file diff --git a/docs/models/operations/linkprops.md b/docs/models/operations/linkprops.md index 680f083..6bed729 100644 --- a/docs/models/operations/linkprops.md +++ b/docs/models/operations/linkprops.md @@ -9,6 +9,7 @@ Additional properties that you can pass to the partner's short link. Will be use | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | 123456 | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `prefix` | *T.nilable(::String)* | :heavy_minus_sign: | The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | | `tag_ids` | *T.nilable(::Object)* | :heavy_minus_sign: | The unique IDs of the tags assigned to the short link. | [
"clux0rgak00011..."
] | diff --git a/docs/models/operations/createpartnerlink.md b/docs/models/operations/links.md similarity index 99% rename from docs/models/operations/createpartnerlink.md rename to docs/models/operations/links.md index c193d1d..b9ee38b 100644 --- a/docs/models/operations/createpartnerlink.md +++ b/docs/models/operations/links.md @@ -1,4 +1,4 @@ -# CreatePartnerLink +# Links ## Fields @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *::String* | :heavy_check_mark: | The unique ID of the short link. | -| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | | `domain` | *::String* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). | | `key` | *::String* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. | +| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | | `url` | *::String* | :heavy_check_mark: | The destination URL of the short link. | | `clicks` | *::Float* | :heavy_check_mark: | The number of clicks on the short link. | | `leads` | *::Float* | :heavy_check_mark: | The number of leads the short links has generated. | diff --git a/docs/models/operations/listeventsrequest.md b/docs/models/operations/listeventsrequest.md index f35007e..d291d6a 100644 --- a/docs/models/operations/listeventsrequest.md +++ b/docs/models/operations/listeventsrequest.md @@ -10,6 +10,9 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | | `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | This is the ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter. | | +| `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program to retrieve analytics for. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner to retrieve analytics for. | | | `interval` | [T.nilable(::OpenApiSDK::Operations::QueryParamInterval)](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve events for. Takes precedence over start and end. If undefined, defaults to 24h. | | | `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. Takes precedence over `interval`. | | | `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. Takes precedence over `interval`. | | diff --git a/docs/models/operations/requestbody.md b/docs/models/operations/requestbody.md index c05acc9..2ca04d8 100644 --- a/docs/models/operations/requestbody.md +++ b/docs/models/operations/requestbody.md @@ -10,6 +10,8 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. If not provided, a random 7-character slug will be generated. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | 123456 | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `prefix` | *T.nilable(::String)* | :heavy_minus_sign: | The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. | | | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to track conversions for the short link. Defaults to `false` if not provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | @@ -37,5 +39,4 @@ | `utm_term` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL. | | | `utm_content` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL. | | | `ref` | *T.nilable(::String)* | :heavy_minus_sign: | The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL. | | -| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | | `webhook_ids` | T::Array<*::String*> | :heavy_minus_sign: | An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data. | | \ No newline at end of file diff --git a/docs/models/operations/retrieveanalyticsrequest.md b/docs/models/operations/retrieveanalyticsrequest.md index a722d27..75f815c 100644 --- a/docs/models/operations/retrieveanalyticsrequest.md +++ b/docs/models/operations/retrieveanalyticsrequest.md @@ -11,6 +11,9 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | | `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | This is the ID of the link in the your database. Must be prefixed with 'ext_' when passed as a query parameter. | | +| `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program to retrieve analytics for. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner to retrieve analytics for. | | | `interval` | [T.nilable(::OpenApiSDK::Operations::Interval)](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. If undefined, defaults to 24h. | | | `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. Takes precedence over `interval`. | | | `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. Takes precedence over `interval`. | | diff --git a/docs/models/operations/updatelinkrequestbody.md b/docs/models/operations/updatelinkrequestbody.md index 9f1173d..88f9676 100644 --- a/docs/models/operations/updatelinkrequestbody.md +++ b/docs/models/operations/updatelinkrequestbody.md @@ -10,6 +10,8 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. If not provided, a random 7-character slug will be generated. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | 123456 | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `prefix` | *T.nilable(::String)* | :heavy_minus_sign: | The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. | | | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to track conversions for the short link. Defaults to `false` if not provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | @@ -37,5 +39,4 @@ | `utm_term` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL. | | | `utm_content` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL. | | | `ref` | *T.nilable(::String)* | :heavy_minus_sign: | The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL. | | -| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | | `webhook_ids` | T::Array<*::String*> | :heavy_minus_sign: | An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data. | | \ No newline at end of file diff --git a/docs/models/operations/upsertlinkrequestbody.md b/docs/models/operations/upsertlinkrequestbody.md index 85e1ccc..8175247 100644 --- a/docs/models/operations/upsertlinkrequestbody.md +++ b/docs/models/operations/upsertlinkrequestbody.md @@ -10,6 +10,8 @@ | `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. If not provided, a random 7-character slug will be generated. | | | `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | 123456 | | `tenant_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | | +| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | +| `partner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the partner the short link is associated with. | | | `prefix` | *T.nilable(::String)* | :heavy_minus_sign: | The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. | | | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to track conversions for the short link. Defaults to `false` if not provided. | | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether the short link is archived. Defaults to `false` if not provided. | | @@ -37,5 +39,4 @@ | `utm_term` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL. | | | `utm_content` | *T.nilable(::String)* | :heavy_minus_sign: | The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL. | | | `ref` | *T.nilable(::String)* | :heavy_minus_sign: | The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL. | | -| `program_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the program the short link is associated with. | | | `webhook_ids` | T::Array<*::String*> | :heavy_minus_sign: | An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data. | | \ No newline at end of file diff --git a/docs/models/shared/link.md b/docs/models/shared/link.md index 493b654..cf2ce20 100644 --- a/docs/models/shared/link.md +++ b/docs/models/shared/link.md @@ -12,6 +12,8 @@ | `track_conversion` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | N/A | | `external_id` | *::String* | :heavy_check_mark: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | | `tenant_id` | *::String* | :heavy_check_mark: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | +| `partner_id` | *::String* | :heavy_check_mark: | The ID of the partner the short link is associated with. | | `archived` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | N/A | | `expires_at` | *::String* | :heavy_check_mark: | N/A | | `expired_url` | *::String* | :heavy_check_mark: | N/A | @@ -47,5 +49,4 @@ | `sale_amount` | *::Float* | :heavy_check_mark: | The total dollar amount of sales the short links has generated (in cents). | | `created_at` | *::String* | :heavy_check_mark: | N/A | | `updated_at` | *::String* | :heavy_check_mark: | N/A | -| ~~`project_id`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The project ID of the short link. This field is deprecated – use `workspaceId` instead. | -| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file +| ~~`project_id`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The project ID of the short link. This field is deprecated – use `workspaceId` instead. | \ No newline at end of file diff --git a/docs/models/shared/linkschema.md b/docs/models/shared/linkschema.md index 6ecea5a..6adf046 100644 --- a/docs/models/shared/linkschema.md +++ b/docs/models/shared/linkschema.md @@ -12,6 +12,8 @@ | `track_conversion` | *T::Boolean* | :heavy_check_mark: | Whether to track conversions for the short link. | | `external_id` | *::String* | :heavy_check_mark: | The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace. | | `tenant_id` | *::String* | :heavy_check_mark: | The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant. | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | +| `partner_id` | *::String* | :heavy_check_mark: | The ID of the partner the short link is associated with. | | `archived` | *T::Boolean* | :heavy_check_mark: | Whether the short link is archived. | | `expires_at` | *::String* | :heavy_check_mark: | The date and time when the short link will expire in ISO-8601 format. | | `expired_url` | *::String* | :heavy_check_mark: | The URL to redirect to when the short link has expired. | @@ -47,5 +49,4 @@ | `sale_amount` | *::Float* | :heavy_check_mark: | The total dollar amount of sales the short links has generated (in cents). | | `created_at` | *::String* | :heavy_check_mark: | The date and time when the short link was created. | | `updated_at` | *::String* | :heavy_check_mark: | The date and time when the short link was last updated. | -| ~~`project_id`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The project ID of the short link. This field is deprecated – use `workspaceId` instead. | -| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file +| ~~`project_id`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The project ID of the short link. This field is deprecated – use `workspaceId` instead. | \ No newline at end of file diff --git a/docs/sdks/embedtokens/README.md b/docs/sdks/embedtokens/README.md index bdca4f8..c677e25 100644 --- a/docs/sdks/embedtokens/README.md +++ b/docs/sdks/embedtokens/README.md @@ -26,7 +26,7 @@ s.config_security( req = ::OpenApiSDK::Operations::CreateEmbedTokenRequestBody.new( - link_id: "", + program_id: "", ) res = s.embed_tokens.create(req) diff --git a/dub.gemspec b/dub.gemspec index 99b0039..b5fdfc3 100644 --- a/dub.gemspec +++ b/dub.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'dub' - s.version = '0.2.2-alpha.58' + s.version = '0.2.2-alpha.59' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations.rb b/lib/open_api_sdk/models/operations.rb index d4770d7..522792b 100644 --- a/lib/open_api_sdk/models/operations.rb +++ b/lib/open_api_sdk/models/operations.rb @@ -121,7 +121,7 @@ module Operations autoload :LinkProps, 'open_api_sdk/models/operations/linkprops.rb' autoload :CreatePartnerRequestBody, 'open_api_sdk/models/operations/createpartner_requestbody.rb' autoload :Status, 'open_api_sdk/models/operations/status.rb' - autoload :CreatePartnerLink, 'open_api_sdk/models/operations/createpartner_link.rb' + autoload :Links, 'open_api_sdk/models/operations/links.rb' autoload :CreatePartnerType, 'open_api_sdk/models/operations/createpartner_type.rb' autoload :CreatePartnerInterval, 'open_api_sdk/models/operations/createpartner_interval.rb' autoload :CreatePartnerDiscount, 'open_api_sdk/models/operations/createpartner_discount.rb' diff --git a/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb b/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb index 30b1314..d946578 100644 --- a/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb +++ b/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb @@ -12,12 +12,18 @@ class CreateEmbedTokenRequestBody < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig - field :link_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkId') } } + field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } - sig { params(link_id: ::String).void } - def initialize(link_id: nil) - @link_id = link_id + field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } } + + + sig { params(program_id: ::String, partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void } + def initialize(program_id: nil, partner_id: nil, tenant_id: nil) + @program_id = program_id + @partner_id = partner_id + @tenant_id = tenant_id end end end diff --git a/lib/open_api_sdk/models/operations/createlink_requestbody.rb b/lib/open_api_sdk/models/operations/createlink_requestbody.rb index 34b27b7..ff4d890 100644 --- a/lib/open_api_sdk/models/operations/createlink_requestbody.rb +++ b/lib/open_api_sdk/models/operations/createlink_requestbody.rb @@ -39,6 +39,8 @@ class CreateLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } # The short link slug. If not provided, a random 7-character slug will be generated. field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. @@ -85,8 +87,8 @@ class CreateLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :webhook_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } } - sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } - def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) + sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } + def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, partner_id: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) @url = url @android = android @archived = archived @@ -101,6 +103,7 @@ def initialize(url: nil, android: nil, archived: nil, comments: nil, description @image = image @ios = ios @key = key + @partner_id = partner_id @password = password @prefix = prefix @program_id = program_id diff --git a/lib/open_api_sdk/models/operations/createpartner_requestbody.rb b/lib/open_api_sdk/models/operations/createpartner_requestbody.rb index edbef15..4586b31 100644 --- a/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +++ b/lib/open_api_sdk/models/operations/createpartner_requestbody.rb @@ -27,10 +27,12 @@ class CreatePartnerRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } } # Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner. field :link_props, T.nilable(::OpenApiSDK::Operations::LinkProps), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkProps') } } + # The ID of the partner in your system. + field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } } - sig { params(email: ::String, name: ::String, program_id: ::String, username: ::String, country: T.nilable(::OpenApiSDK::Operations::Country), description: T.nilable(::String), image: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::LinkProps)).void } - def initialize(email: nil, name: nil, program_id: nil, username: nil, country: nil, description: nil, image: nil, link_props: nil) + sig { params(email: ::String, name: ::String, program_id: ::String, username: ::String, country: T.nilable(::OpenApiSDK::Operations::Country), description: T.nilable(::String), image: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::LinkProps), tenant_id: T.nilable(::String)).void } + def initialize(email: nil, name: nil, program_id: nil, username: nil, country: nil, description: nil, image: nil, link_props: nil, tenant_id: nil) @email = email @name = name @program_id = program_id @@ -39,6 +41,7 @@ def initialize(email: nil, name: nil, program_id: nil, username: nil, country: n @description = description @image = image @link_props = link_props + @tenant_id = tenant_id end end end diff --git a/lib/open_api_sdk/models/operations/createpartner_responsebody.rb b/lib/open_api_sdk/models/operations/createpartner_responsebody.rb index 4bce562..dac3105 100644 --- a/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +++ b/lib/open_api_sdk/models/operations/createpartner_responsebody.rb @@ -14,6 +14,8 @@ class CreatePartnerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :bio, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bio') } } + field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } } + field :commission_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('commissionAmount') } } field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } } @@ -28,12 +30,18 @@ class CreatePartnerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } } - field :link, ::OpenApiSDK::Operations::CreatePartnerLink, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } } + field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } } + + field :links, T::Array[::OpenApiSDK::Operations::Links], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('links') } } field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } field :payouts_enabled, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabled') } } + field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } } + + field :sales_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesAmount') } } + field :status, ::OpenApiSDK::Operations::Status, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Status, false) } } field :stripe_connect_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeConnectId') } } @@ -45,9 +53,10 @@ class CreatePartnerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :discount, T.nilable(::OpenApiSDK::Operations::CreatePartnerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } } - sig { params(bio: ::String, commission_amount: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, link: ::OpenApiSDK::Operations::CreatePartnerLink, name: ::String, payouts_enabled: T::Boolean, status: ::OpenApiSDK::Operations::Status, stripe_connect_id: ::String, updated_at: ::String, coupon_id: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::CreatePartnerDiscount)).void } - def initialize(bio: nil, commission_amount: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, link: nil, name: nil, payouts_enabled: nil, status: nil, stripe_connect_id: nil, updated_at: nil, coupon_id: nil, discount: nil) + sig { params(bio: ::String, clicks: ::Float, commission_amount: ::Float, country: ::String, created_at: ::String, earnings: ::Float, email: ::String, id: ::String, image: ::String, leads: ::Float, links: T::Array[::OpenApiSDK::Operations::Links], name: ::String, payouts_enabled: T::Boolean, sales: ::Float, sales_amount: ::Float, status: ::OpenApiSDK::Operations::Status, stripe_connect_id: ::String, updated_at: ::String, coupon_id: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::CreatePartnerDiscount)).void } + def initialize(bio: nil, clicks: nil, commission_amount: nil, country: nil, created_at: nil, earnings: nil, email: nil, id: nil, image: nil, leads: nil, links: nil, name: nil, payouts_enabled: nil, sales: nil, sales_amount: nil, status: nil, stripe_connect_id: nil, updated_at: nil, coupon_id: nil, discount: nil) @bio = bio + @clicks = clicks @commission_amount = commission_amount @country = country @created_at = created_at @@ -55,9 +64,12 @@ def initialize(bio: nil, commission_amount: nil, country: nil, created_at: nil, @email = email @id = id @image = image - @link = link + @leads = leads + @links = links @name = name @payouts_enabled = payouts_enabled + @sales = sales + @sales_amount = sales_amount @status = status @stripe_connect_id = stripe_connect_id @updated_at = updated_at diff --git a/lib/open_api_sdk/models/operations/data.rb b/lib/open_api_sdk/models/operations/data.rb index e2e4f55..8f98d59 100644 --- a/lib/open_api_sdk/models/operations/data.rb +++ b/lib/open_api_sdk/models/operations/data.rb @@ -31,6 +31,8 @@ class Data < ::OpenApiSDK::Utils::FieldAugmented field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } } # The iOS destination URL for the short link for iOS device targeting. field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The ID of the program the short link is associated with. @@ -77,8 +79,8 @@ class Data < ::OpenApiSDK::Utils::FieldAugmented field :webhook_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } } - sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } - def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, geo: nil, image: nil, ios: nil, password: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) + sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } + def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, geo: nil, image: nil, ios: nil, partner_id: nil, password: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) @android = android @archived = archived @comments = comments @@ -89,6 +91,7 @@ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_ @geo = geo @image = image @ios = ios + @partner_id = partner_id @password = password @program_id = program_id @proxy = proxy diff --git a/lib/open_api_sdk/models/operations/linkprops.rb b/lib/open_api_sdk/models/operations/linkprops.rb index 57ba70d..26509fc 100644 --- a/lib/open_api_sdk/models/operations/linkprops.rb +++ b/lib/open_api_sdk/models/operations/linkprops.rb @@ -31,6 +31,8 @@ class LinkProps < ::OpenApiSDK::Utils::FieldAugmented field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } } # The iOS destination URL for the short link for iOS device targeting. field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. @@ -63,8 +65,8 @@ class LinkProps < ::OpenApiSDK::Utils::FieldAugmented field :video, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } } - sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void } - def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, image: nil, ios: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil) + sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void } + def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, image: nil, ios: nil, partner_id: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil) @android = android @archived = archived @comments = comments @@ -75,6 +77,7 @@ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_ @external_id = external_id @image = image @ios = ios + @partner_id = partner_id @password = password @prefix = prefix @proxy = proxy diff --git a/lib/open_api_sdk/models/operations/createpartner_link.rb b/lib/open_api_sdk/models/operations/links.rb similarity index 97% rename from lib/open_api_sdk/models/operations/createpartner_link.rb rename to lib/open_api_sdk/models/operations/links.rb index 2d17f9d..de5ece7 100644 --- a/lib/open_api_sdk/models/operations/createpartner_link.rb +++ b/lib/open_api_sdk/models/operations/links.rb @@ -8,7 +8,7 @@ module OpenApiSDK module Operations - class CreatePartnerLink < ::OpenApiSDK::Utils::FieldAugmented + class Links < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig # The number of clicks on the short link. diff --git a/lib/open_api_sdk/models/operations/listevents_request.rb b/lib/open_api_sdk/models/operations/listevents_request.rb index 05c7ab9..bdb97ec 100644 --- a/lib/open_api_sdk/models/operations/listevents_request.rb +++ b/lib/open_api_sdk/models/operations/listevents_request.rb @@ -43,6 +43,10 @@ class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } } field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } } + # The ID of the partner to retrieve analytics for. + field :partner_id, T.nilable(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } } + # The ID of the program to retrieve analytics for. + field :program_id, T.nilable(::String), { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } } # Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } } # The referer to retrieve analytics for. @@ -63,6 +67,8 @@ class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The tag IDs to retrieve analytics for. field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } } + # The ID of the tenant that created the link inside your system. + field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } } # The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } } # The trigger to retrieve analytics for. If undefined, return both QR and link clicks. @@ -81,8 +87,8 @@ class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented field :utm_term, T.nilable(::String), { 'query_param': { 'field_name': 'utm_term', 'style': 'form', 'explode': true } } - sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::QueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::QueryParamSortOrder), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void } - def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, referer_url: nil, region: nil, root: nil, sort_by: nil, sort_order: nil, start: nil, tag_id: nil, tag_ids: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil) + sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), partner_id: T.nilable(::String), program_id: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::QueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::QueryParamSortOrder), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tenant_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void } + def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, partner_id: nil, program_id: nil, qr: nil, referer: nil, referer_url: nil, region: nil, root: nil, sort_by: nil, sort_order: nil, start: nil, tag_id: nil, tag_ids: nil, tenant_id: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil) @browser = browser @city = city @continent = continent @@ -99,6 +105,8 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @order = order @os = os @page = page + @partner_id = partner_id + @program_id = program_id @qr = qr @referer = referer @referer_url = referer_url @@ -109,6 +117,7 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @start = start @tag_id = tag_id @tag_ids = tag_ids + @tenant_id = tenant_id @timezone = timezone @trigger = trigger @url = url diff --git a/lib/open_api_sdk/models/operations/requestbody.rb b/lib/open_api_sdk/models/operations/requestbody.rb index a7951a8..1bc1f26 100644 --- a/lib/open_api_sdk/models/operations/requestbody.rb +++ b/lib/open_api_sdk/models/operations/requestbody.rb @@ -39,6 +39,8 @@ class RequestBody < ::OpenApiSDK::Utils::FieldAugmented field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } # The short link slug. If not provided, a random 7-character slug will be generated. field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. @@ -85,8 +87,8 @@ class RequestBody < ::OpenApiSDK::Utils::FieldAugmented field :webhook_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } } - sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } - def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) + sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } + def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, partner_id: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) @url = url @android = android @archived = archived @@ -101,6 +103,7 @@ def initialize(url: nil, android: nil, archived: nil, comments: nil, description @image = image @ios = ios @key = key + @partner_id = partner_id @password = password @prefix = prefix @program_id = program_id diff --git a/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb b/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb index 7caa7ec..703c707 100644 --- a/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +++ b/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb @@ -39,6 +39,10 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } } # The OS to retrieve analytics for. field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } } + # The ID of the partner to retrieve analytics for. + field :partner_id, T.nilable(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } } + # The ID of the program to retrieve analytics for. + field :program_id, T.nilable(::String), { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } } # Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } } # The referer to retrieve analytics for. @@ -55,6 +59,8 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The tag IDs to retrieve analytics for. field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } } + # The ID of the tenant that created the link inside your system. + field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } } # The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } } # The trigger to retrieve analytics for. If undefined, return both QR and link clicks. @@ -73,8 +79,8 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :utm_term, T.nilable(::String), { 'query_param': { 'field_name': 'utm_term', 'style': 'form', 'explode': true } } - sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::Trigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void } - def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, referer_url: nil, region: nil, root: nil, start: nil, tag_id: nil, tag_ids: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil) + sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), partner_id: T.nilable(::String), program_id: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tenant_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::Trigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void } + def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, partner_id: nil, program_id: nil, qr: nil, referer: nil, referer_url: nil, region: nil, root: nil, start: nil, tag_id: nil, tag_ids: nil, tenant_id: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil) @browser = browser @city = city @continent = continent @@ -89,6 +95,8 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @key = key @link_id = link_id @os = os + @partner_id = partner_id + @program_id = program_id @qr = qr @referer = referer @referer_url = referer_url @@ -97,6 +105,7 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @start = start @tag_id = tag_id @tag_ids = tag_ids + @tenant_id = tenant_id @timezone = timezone @trigger = trigger @url = url diff --git a/lib/open_api_sdk/models/operations/updatelink_requestbody.rb b/lib/open_api_sdk/models/operations/updatelink_requestbody.rb index d5eb83b..6539863 100644 --- a/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +++ b/lib/open_api_sdk/models/operations/updatelink_requestbody.rb @@ -37,6 +37,8 @@ class UpdateLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } # The short link slug. If not provided, a random 7-character slug will be generated. field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. @@ -85,8 +87,8 @@ class UpdateLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :webhook_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } } - sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } - def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) + sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } + def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, partner_id: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) @android = android @archived = archived @comments = comments @@ -100,6 +102,7 @@ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_ @image = image @ios = ios @key = key + @partner_id = partner_id @password = password @prefix = prefix @program_id = program_id diff --git a/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb b/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb index b5255b0..a5bec6b 100644 --- a/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +++ b/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb @@ -39,6 +39,8 @@ class UpsertLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } } # The short link slug. If not provided, a random 7-character slug will be generated. field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the partner the short link is associated with. + field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided. @@ -85,8 +87,8 @@ class UpsertLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :webhook_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } } - sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } - def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) + sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), program_id: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String), webhook_ids: T.nilable(T::Array[::String])).void } + def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, partner_id: nil, password: nil, prefix: nil, program_id: nil, proxy: nil, public_stats: nil, ref: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, track_conversion: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil) @url = url @android = android @archived = archived @@ -101,6 +103,7 @@ def initialize(url: nil, android: nil, archived: nil, comments: nil, description @image = image @ios = ios @key = key + @partner_id = partner_id @password = password @prefix = prefix @program_id = program_id diff --git a/lib/open_api_sdk/models/shared/link.rb b/lib/open_api_sdk/models/shared/link.rb index d381648..f4eeb6d 100644 --- a/lib/open_api_sdk/models/shared/link.rb +++ b/lib/open_api_sdk/models/shared/link.rb @@ -43,6 +43,8 @@ class Link < ::OpenApiSDK::Utils::FieldAugmented field :last_clicked, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('lastClicked') } } # The number of leads the short links has generated. field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } } + # The ID of the partner the short link is associated with. + field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The ID of the program the short link is associated with. @@ -105,8 +107,8 @@ class Link < ::OpenApiSDK::Utils::FieldAugmented field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } } - sig { params(android: ::String, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, geo: ::OpenApiSDK::Shared::ClickEventGeo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, password: ::String, program_id: ::String, project_id: ::String, qr_code: ::String, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String, archived: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), track_conversion: T.nilable(T::Boolean)).void } - def initialize(android: nil, clicks: nil, comments: nil, created_at: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, program_id: nil, project_id: nil, qr_code: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil, archived: nil, do_index: nil, proxy: nil, public_stats: nil, rewrite: nil, track_conversion: nil) + sig { params(android: ::String, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, geo: ::OpenApiSDK::Shared::ClickEventGeo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, qr_code: ::String, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String, archived: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), track_conversion: T.nilable(T::Boolean)).void } + def initialize(android: nil, clicks: nil, comments: nil, created_at: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, qr_code: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil, archived: nil, do_index: nil, proxy: nil, public_stats: nil, rewrite: nil, track_conversion: nil) @android = android @clicks = clicks @comments = comments @@ -123,6 +125,7 @@ def initialize(android: nil, clicks: nil, comments: nil, created_at: nil, descri @key = key @last_clicked = last_clicked @leads = leads + @partner_id = partner_id @password = password @program_id = program_id @project_id = project_id diff --git a/lib/open_api_sdk/models/shared/linkschema.rb b/lib/open_api_sdk/models/shared/linkschema.rb index db5c078..6adf36b 100644 --- a/lib/open_api_sdk/models/shared/linkschema.rb +++ b/lib/open_api_sdk/models/shared/linkschema.rb @@ -47,6 +47,8 @@ class LinkSchema < ::OpenApiSDK::Utils::FieldAugmented field :last_clicked, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('lastClicked') } } # The number of leads the short links has generated. field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } } + # The ID of the partner the short link is associated with. + field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } } # The password required to access the destination URL of the short link. field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } } # The ID of the program the short link is associated with. @@ -105,8 +107,8 @@ class LinkSchema < ::OpenApiSDK::Utils::FieldAugmented field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } } - sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, do_index: T::Boolean, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, geo: ::OpenApiSDK::Shared::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, password: ::String, program_id: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, track_conversion: T::Boolean, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String).void } - def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, program_id: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, track_conversion: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil) + sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, do_index: T::Boolean, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, geo: ::OpenApiSDK::Shared::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, track_conversion: T::Boolean, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, webhook_ids: T::Array[::String], workspace_id: ::String).void } + def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, track_conversion: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, webhook_ids: nil, workspace_id: nil) @android = android @archived = archived @clicks = clicks @@ -125,6 +127,7 @@ def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_ @key = key @last_clicked = last_clicked @leads = leads + @partner_id = partner_id @password = password @program_id = program_id @project_id = project_id diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 9017d3d..8e467af 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '0.0.1' - @sdk_version = '0.2.2-alpha.58' - @gen_version = '2.497.0' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.58 2.497.0 0.0.1 dub' + @sdk_version = '0.2.2-alpha.59' + @gen_version = '2.500.5' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.59 2.500.5 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) }