1+ /**
2+ * @typedef {Object } ConnectionMetadata
3+ * @property {string } accessToken
4+ * @property {string } instanceUrl
5+ * @property {string } organizationId
6+ * @property {string } username
7+ */
8+ export default class SalesforceAuth {
9+ /**
10+ * Authenticates with the auth mode specified in configuration
11+ * @returns {ConnectionMetadata }
12+ */
13+ static authenticate ( ) : ConnectionMetadata ;
14+ /**
15+ * Authenticates with the username/password flow
16+ * @returns {ConnectionMetadata }
17+ */
18+ static "__#2@#authWithUsernamePassword" ( ) : ConnectionMetadata ;
19+ /**
20+ * Authenticates with the OAuth 2.0 client credentials flow
21+ * @returns {ConnectionMetadata }
22+ */
23+ static "__#2@#authWithOAuthClientCredentials" ( ) : ConnectionMetadata ;
24+ /**
25+ * Authenticates with the OAuth 2.0 JWT bearer flow
26+ * @returns {ConnectionMetadata }
27+ */
28+ static "__#2@#authWithJwtBearer" ( ) : ConnectionMetadata ;
29+ /**
30+ * Generic OAuth 2.0 connect method
31+ * @param {string } body URL encoded body
32+ * @returns {ConnectionMetadata } connection metadata
33+ */
34+ static "__#2@#authWithOAuth" ( body : string ) : ConnectionMetadata ;
35+ }
36+ export type ConnectionMetadata = {
37+ accessToken : string ;
38+ instanceUrl : string ;
39+ organizationId : string ;
40+ username : string ;
41+ } ;
42+ //# sourceMappingURL=auth.d.ts.map
0 commit comments