@@ -317,6 +317,10 @@ export interface Client {
317
317
initiate_login_uri ?: string | undefined ;
318
318
}
319
319
320
+ export interface ClientsPaged extends Omit < Page , 'length' > {
321
+ clients : Client [ ] ;
322
+ }
323
+
320
324
export interface ResourceServer {
321
325
/**
322
326
* The identifier of the resource server.
@@ -1569,19 +1573,19 @@ export interface UsersLogsQuery {
1569
1573
interface LogStreamBase {
1570
1574
id : string ;
1571
1575
name : string ;
1572
- status : " active" | " paused" | " suspended" ;
1576
+ status : ' active' | ' paused' | ' suspended' ;
1573
1577
}
1574
1578
1575
1579
interface DatadogLogStream extends LogStreamBase {
1576
- type : " datadog" ;
1580
+ type : ' datadog' ;
1577
1581
sink : {
1578
1582
datadogRegion : string ;
1579
1583
datadogApiKey : string ;
1580
1584
} ;
1581
1585
}
1582
1586
1583
1587
interface EventBridgeLogStream extends LogStreamBase {
1584
- type : " eventbridge" ;
1588
+ type : ' eventbridge' ;
1585
1589
sink : {
1586
1590
awsAccountId : string ;
1587
1591
awsRegion : string ;
@@ -1590,7 +1594,7 @@ interface EventBridgeLogStream extends LogStreamBase {
1590
1594
}
1591
1595
1592
1596
interface EventGridLogStream extends LogStreamBase {
1593
- type : " eventgrid" ;
1597
+ type : ' eventgrid' ;
1594
1598
sink : {
1595
1599
azureSubscriptionId : string ;
1596
1600
azureResourceGroup : string ;
@@ -1600,17 +1604,17 @@ interface EventGridLogStream extends LogStreamBase {
1600
1604
}
1601
1605
1602
1606
interface HttpLogStream extends LogStreamBase {
1603
- type : " http" ;
1607
+ type : ' http' ;
1604
1608
sink : {
1605
- httpContentFormat : " JSONLINES" | " JSONARRAY" ;
1609
+ httpContentFormat : ' JSONLINES' | ' JSONARRAY' ;
1606
1610
httpContentType : string ;
1607
1611
httpEndpoint : string ;
1608
1612
httpAuthorization : string ;
1609
1613
} ;
1610
1614
}
1611
1615
1612
1616
interface SplunkLogStream extends LogStreamBase {
1613
- type : " splunk" ;
1617
+ type : ' splunk' ;
1614
1618
sink : {
1615
1619
splunkDomain : string ;
1616
1620
splunkToken : string ;
@@ -1620,7 +1624,7 @@ interface SplunkLogStream extends LogStreamBase {
1620
1624
}
1621
1625
1622
1626
interface SumoLogStream extends LogStreamBase {
1623
- type : " sumo" ;
1627
+ type : ' sumo' ;
1624
1628
sink : {
1625
1629
sumoSourceAddress : string ;
1626
1630
} ;
@@ -1868,9 +1872,18 @@ export class ManagementClient<A = AppMetadata, U = UserMetadata> {
1868
1872
updateConnection ( params : ObjectWithId , data : UpdateConnection ) : Promise < Connection > ;
1869
1873
1870
1874
// Clients
1871
- getClients ( params ?: GetClientsOptions ) : Promise < Client [ ] > ;
1875
+ getClients ( ) : Promise < Client [ ] > ;
1872
1876
getClients ( cb : ( err : Error , clients : Client [ ] ) => void ) : void ;
1873
- getClients ( params : GetClientsOptions , cb : ( err : Error , clients : Client [ ] ) => void ) : void ;
1877
+ getClients ( params : GetClientsOptions & { include_totals ?: false } ) : Promise < Client [ ] > ;
1878
+ getClients ( params : GetClientsOptions & { include_totals : true } ) : Promise < ClientsPaged > ;
1879
+ getClients (
1880
+ params : GetClientsOptions & { include_totals ?: false } ,
1881
+ cb : ( err : Error , clients : Client [ ] ) => void ,
1882
+ ) : void ;
1883
+ getClients (
1884
+ params : GetClientsOptions & { include_totals : true } ,
1885
+ cb : ( err : Error , pagedClients : ClientsPaged ) => void ,
1886
+ ) : void ;
1874
1887
1875
1888
getClient ( params : ClientParams ) : Promise < Client > ;
1876
1889
getClient ( params : ClientParams , cb : ( err : Error , client : Client ) => void ) : void ;
0 commit comments