@@ -195,6 +195,13 @@ export interface ExpandBitlinkRequest {
195195 expand_bitlink : ExpandBitlink ;
196196}
197197
198+ export interface GetAgenticTrafficForBitlinkRequest {
199+ bitlink : string ;
200+ unit : TimeUnit ;
201+ units : number ;
202+ unit_reference ?: string ;
203+ }
204+
198205export interface GetBitlinkRequest {
199206 bitlink : string ;
200207}
@@ -216,6 +223,7 @@ export interface GetBitlinksByGroupRequest {
216223 has_qr_codes ?: GetBitlinksByGroupHasQrCodesEnum ;
217224 is_expired ?: GetBitlinksByGroupIsExpiredEnum ;
218225 has_expiration ?: GetBitlinksByGroupHasExpirationEnum ;
226+ has_dynamic_routing ?: GetBitlinksByGroupHasDynamicRoutingEnum ;
219227 tags ?: Array < string > ;
220228 launchpad_ids ?: Array < string > ;
221229 encoding_login ?: Array < string > ;
@@ -563,6 +571,87 @@ export class BitlinksApi extends runtime.BaseAPI {
563571 return await response . value ( ) ;
564572 }
565573
574+ /**
575+ * Creates request options for getAgenticTrafficForBitlink without sending the request
576+ */
577+ async getAgenticTrafficForBitlinkRequestOpts ( requestParameters : GetAgenticTrafficForBitlinkRequest ) : Promise < runtime . RequestOpts > {
578+ if ( requestParameters [ 'bitlink' ] == null ) {
579+ throw new runtime . RequiredError (
580+ 'bitlink' ,
581+ 'Required parameter "bitlink" was null or undefined when calling getAgenticTrafficForBitlink().'
582+ ) ;
583+ }
584+
585+ if ( requestParameters [ 'unit' ] == null ) {
586+ throw new runtime . RequiredError (
587+ 'unit' ,
588+ 'Required parameter "unit" was null or undefined when calling getAgenticTrafficForBitlink().'
589+ ) ;
590+ }
591+
592+ if ( requestParameters [ 'units' ] == null ) {
593+ throw new runtime . RequiredError (
594+ 'units' ,
595+ 'Required parameter "units" was null or undefined when calling getAgenticTrafficForBitlink().'
596+ ) ;
597+ }
598+
599+ const queryParameters : any = { } ;
600+
601+ if ( requestParameters [ 'unit' ] != null ) {
602+ queryParameters [ 'unit' ] = requestParameters [ 'unit' ] ;
603+ }
604+
605+ if ( requestParameters [ 'units' ] != null ) {
606+ queryParameters [ 'units' ] = requestParameters [ 'units' ] ;
607+ }
608+
609+ if ( requestParameters [ 'unit_reference' ] != null ) {
610+ queryParameters [ 'unit_reference' ] = requestParameters [ 'unit_reference' ] ;
611+ }
612+
613+ const headerParameters : runtime . HTTPHeaders = { } ;
614+
615+ if ( this . configuration && this . configuration . accessToken ) {
616+ const token = this . configuration . accessToken ;
617+ const tokenString = await token ( "bearerAuth" , [ ] ) ;
618+
619+ if ( tokenString ) {
620+ headerParameters [ "Authorization" ] = `Bearer ${ tokenString } ` ;
621+ }
622+ }
623+
624+ let urlPath = `/bitlinks/{bitlink}/agentic_traffic` ;
625+ urlPath = urlPath . replace ( '{bitlink}' , encodeURIComponent ( String ( requestParameters [ 'bitlink' ] ) ) ) ;
626+
627+ return {
628+ path : urlPath ,
629+ method : 'GET' ,
630+ headers : headerParameters ,
631+ query : queryParameters ,
632+ } ;
633+ }
634+
635+ /**
636+ * Returns agentic traffic (AI agents and assistants) for the specified link over time, broken down by agent.
637+ * Get Agentic Traffic for a Bitlink
638+ */
639+ async getAgenticTrafficForBitlinkRaw ( requestParameters : GetAgenticTrafficForBitlinkRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . ApiResponse < ClickMetrics > > {
640+ const requestOptions = await this . getAgenticTrafficForBitlinkRequestOpts ( requestParameters ) ;
641+ const response = await this . request ( requestOptions , initOverrides ) ;
642+
643+ return new runtime . JSONApiResponse ( response , ( jsonValue ) => ClickMetricsFromJSON ( jsonValue ) ) ;
644+ }
645+
646+ /**
647+ * Returns agentic traffic (AI agents and assistants) for the specified link over time, broken down by agent.
648+ * Get Agentic Traffic for a Bitlink
649+ */
650+ async getAgenticTrafficForBitlink ( requestParameters : GetAgenticTrafficForBitlinkRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < ClickMetrics > {
651+ const response = await this . getAgenticTrafficForBitlinkRaw ( requestParameters , initOverrides ) ;
652+ return await response . value ( ) ;
653+ }
654+
566655 /**
567656 * Creates request options for getBitlink without sending the request
568657 */
@@ -691,6 +780,10 @@ export class BitlinksApi extends runtime.BaseAPI {
691780 queryParameters [ 'has_expiration' ] = requestParameters [ 'has_expiration' ] ;
692781 }
693782
783+ if ( requestParameters [ 'has_dynamic_routing' ] != null ) {
784+ queryParameters [ 'has_dynamic_routing' ] = requestParameters [ 'has_dynamic_routing' ] ;
785+ }
786+
694787 if ( requestParameters [ 'tags' ] != null ) {
695788 queryParameters [ 'tags' ] = requestParameters [ 'tags' ] ;
696789 }
@@ -2009,6 +2102,15 @@ export enum GetBitlinksByGroupHasExpirationEnum {
20092102 off = 'off' ,
20102103 both = 'both'
20112104}
2105+ /**
2106+ * @export
2107+ * @enum {string}
2108+ */
2109+ export enum GetBitlinksByGroupHasDynamicRoutingEnum {
2110+ on = 'on' ,
2111+ off = 'off' ,
2112+ both = 'both'
2113+ }
20122114/**
20132115 * @export
20142116 * @enum {string}
0 commit comments