@salesforce/core-bundle 8.19.0 → 8.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +11 -22
- package/lib/index.js +383 -384
- package/lib/pino-file.js +4 -1
- package/lib/pino-pretty.js +8 -8
- package/lib/pino-worker.js +4 -1
- package/package.json +4 -4
- package/lib/transformStream.js +0 -3
package/lib/index.d.ts
CHANGED
|
@@ -1519,12 +1519,18 @@ declare module '@salesforce/core-bundle/deviceOauthService' {
|
|
|
1519
1519
|
import { OAuth2Config } from '@jsforce/jsforce-node';
|
|
1520
1520
|
import { JsonMap, Nullable } from '@salesforce/ts-types';
|
|
1521
1521
|
import { AuthInfo } from '@salesforce/core-bundle/org/authInfo';
|
|
1522
|
+
/**
|
|
1523
|
+
* @deprecated Will be removed mid January 2026
|
|
1524
|
+
*/
|
|
1522
1525
|
export type DeviceCodeResponse = {
|
|
1523
1526
|
device_code: string;
|
|
1524
1527
|
interval: number;
|
|
1525
1528
|
user_code: string;
|
|
1526
1529
|
verification_uri: string;
|
|
1527
1530
|
} & JsonMap;
|
|
1531
|
+
/**
|
|
1532
|
+
* @deprecated Will be removed mid January 2026
|
|
1533
|
+
*/
|
|
1528
1534
|
export type DeviceCodePollingResponse = {
|
|
1529
1535
|
access_token: string;
|
|
1530
1536
|
refresh_token: string;
|
|
@@ -1536,20 +1542,9 @@ declare module '@salesforce/core-bundle/deviceOauthService' {
|
|
|
1536
1542
|
issued_at: string;
|
|
1537
1543
|
} & JsonMap;
|
|
1538
1544
|
/**
|
|
1539
|
-
*
|
|
1545
|
+
* THIS CLASS IS DEPRECATED AND WILL BE REMOVED MID JANUARY 2026.
|
|
1540
1546
|
*
|
|
1541
|
-
*
|
|
1542
|
-
* ```
|
|
1543
|
-
* const oauthConfig = {
|
|
1544
|
-
* loginUrl: this.flags.instanceurl,
|
|
1545
|
-
* clientId: this.flags.clientid,
|
|
1546
|
-
* };
|
|
1547
|
-
* const deviceOauthService = await DeviceOauthService.create(oauthConfig);
|
|
1548
|
-
* const loginData = await deviceOauthService.requestDeviceLogin();
|
|
1549
|
-
* console.log(loginData);
|
|
1550
|
-
* const approval = await deviceOauthService.awaitDeviceApproval(loginData);
|
|
1551
|
-
* const authInfo = await deviceOauthService.authorizeAndSave(approval);
|
|
1552
|
-
* ```
|
|
1547
|
+
* @deprecated Use other oauth flows instead
|
|
1553
1548
|
*/
|
|
1554
1549
|
export class DeviceOauthService extends AsyncCreatable<OAuth2Config> {
|
|
1555
1550
|
static RESPONSE_TYPE: string;
|
|
@@ -1561,21 +1556,15 @@ declare module '@salesforce/core-bundle/deviceOauthService' {
|
|
|
1561
1556
|
private pollingCount;
|
|
1562
1557
|
constructor(options: OAuth2Config);
|
|
1563
1558
|
/**
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1566
|
-
* @returns {Promise<DeviceCodeResponse>}
|
|
1559
|
+
* @deprecated Will be removed mid January 2026
|
|
1567
1560
|
*/
|
|
1568
1561
|
requestDeviceLogin(): Promise<DeviceCodeResponse>;
|
|
1569
1562
|
/**
|
|
1570
|
-
*
|
|
1571
|
-
*
|
|
1572
|
-
* @returns {Promise<Nullable<DeviceCodePollingResponse>>}
|
|
1563
|
+
* @deprecated Will be removed mid January 2026
|
|
1573
1564
|
*/
|
|
1574
1565
|
awaitDeviceApproval(loginData: DeviceCodeResponse): Promise<Nullable<DeviceCodePollingResponse>>;
|
|
1575
1566
|
/**
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
* @returns {Promise<AuthInfo>}
|
|
1567
|
+
* @deprecated Will be removed mid January 2026
|
|
1579
1568
|
*/
|
|
1580
1569
|
authorizeAndSave(approval: DeviceCodePollingResponse): Promise<AuthInfo>;
|
|
1581
1570
|
protected init(): Promise<void>;
|