@stackfactor/client-api 1.1.265 → 1.2.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.
@@ -74,16 +74,26 @@ export declare const getConfiguration: (connectionId: string, authToken: string)
74
74
  * single-use `state` the backend minted for this attempt. This STARTS the flow.
75
75
  *
76
76
  * The connector decides WHICH scheme applies, which is why the caller asks rather
77
- * than tells. But the caller must supply `redirectUri`: the connector answers the
78
- * same way wherever the platform is running, and providers match that value by
79
- * exact string.
77
+ * than tells. But the caller must supply two things the connector cannot know:
78
+ *
79
+ * redirectUri the connector answers the same way wherever the platform is
80
+ * running, and providers match this value by exact string.
81
+ * url where the source points. This shapes the authorize request
82
+ * itself — Confluence picks its cloudId from it and SharePoint
83
+ * decides which tenant issues the token — so collect the URL from
84
+ * the user BEFORE offering to connect. Signing in first and asking
85
+ * where second risks a token for the wrong place.
86
+ *
87
+ * The url is also what the resulting credentials get tied to: saving them onto a
88
+ * source that points somewhere else is refused.
80
89
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/authentication-flow
81
90
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
82
91
  * @param {String} redirectUri Where the browser will return, e.g. `${origin}/callback`
92
+ * @param {String} url Where the source points — required
83
93
  * @param {String} authToken Authentication token
84
94
  * @returns {Promise<object>}
85
95
  */
86
- export declare const initiateAuthenticationFlow: (connectionId: string, redirectUri: string, authToken: string) => Promise<object>;
96
+ export declare const initiateAuthenticationFlow: (connectionId: string, redirectUri: string, url: string, authToken: string) => Promise<object>;
87
97
  /**
88
98
  * Finish linking an account: exchange the authorization code the provider
89
99
  * returned for the connection itself.
@@ -104,17 +114,27 @@ export declare const initiateAuthenticationFlow: (connectionId: string, redirect
104
114
  */
105
115
  export declare const completeAuthenticationFlow: (connectionId: string, code: string, state: string, authToken: string) => Promise<object>;
106
116
  /**
107
- * Ask a connector how much content the supplied credentials can reach the
108
- * volume preview shown before a source is created.
117
+ * Ask a connector how much content the supplied credentials can reach AT A GIVEN
118
+ * LOCATION — the volume preview shown before a source is created.
119
+ *
120
+ * This doubles as the reachability check. Signing in proves the person has an
121
+ * account; it proves nothing about whether they can read the specific site or
122
+ * space they typed. Credentials that cannot see `url` answer with an error or
123
+ * with nothing, so the user finds out here rather than at the first ingestion.
124
+ *
125
+ * `url` is required, and counts come back scoped to it. Calling without one is
126
+ * not "unscoped" so much as wrong: the answer would describe everything the
127
+ * account can reach, which is rarely what is about to be ingested.
109
128
  *
110
129
  * POST rather than GET because the credentials travel in the body and must not
111
130
  * reach a URL, an access log, or browser history.
112
131
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/stats
113
132
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
114
133
  * @param {object} authentication Credentials, shaped by the chosen `SourceConnectorAuthentication`
134
+ * @param {String} url Where the source points — required, and what the count is scoped to
115
135
  * @param {String} authToken Authentication token
116
136
  * @param {object} filters Optional filters over the fields `getConfiguration` advertises
117
137
  * @returns {Promise<object>} A `SourceConnectorStats`
118
138
  */
119
- export declare const getStats: (connectionId: string, authentication: object, authToken: string, filters?: object | null) => Promise<object>;
139
+ export declare const getStats: (connectionId: string, authentication: object, url: string, authToken: string, filters?: object | null) => Promise<object>;
120
140
  //# sourceMappingURL=knowledgeBaseSourceConnectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledgeBaseSourceConnectors.d.ts","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":"AAsBA,2FAA2F;AAC3F,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,MAAM,EAAE,OAAO,CAAC;C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M,CAehB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,MAAM,EACpB,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,GACnB,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,WAAW,MAAM,EACjB,UAAS,MAAM,GAAG,IAAW,KAC5B,OAAO,CAAC,MAAM,CAehB,CAAC"}
1
+ {"version":3,"file":"knowledgeBaseSourceConnectors.d.ts","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":"AAsBA,2FAA2F;AAC3F,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,WAAW,6BAA6B;IAC5C,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,kCAAkC,EAAE,CAAC;CAC9C;AAED,qEAAqE;AACrE,MAAM,WAAW,6BAA6B;IAC5C,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,6BAA6B,EAAE,CAAC;CAC5C;AAED,qEAAqE;AACrE,MAAM,WAAW,4BAA4B;IAC3C,eAAe,EAAE,6BAA6B,EAAE,CAAC;IACjD,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC;AAED,gEAAgE;AAChE,MAAM,WAAW,0BAA0B;IACzC,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,+EAA+E;AAC/E,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,0BAA0B,EAAE,CAAC;CACvC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,EACpB,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAchB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,KAAK,MAAM,EACX,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,MAAM,EACpB,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ,GACnB,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,KAAK,MAAM,EACX,WAAW,MAAM,EACjB,UAAS,MAAM,GAAG,IAAW,KAC5B,OAAO,CAAC,MAAM,CAehB,CAAC"}
@@ -30,18 +30,28 @@ exports.getConfiguration = getConfiguration;
30
30
  * single-use `state` the backend minted for this attempt. This STARTS the flow.
31
31
  *
32
32
  * The connector decides WHICH scheme applies, which is why the caller asks rather
33
- * than tells. But the caller must supply `redirectUri`: the connector answers the
34
- * same way wherever the platform is running, and providers match that value by
35
- * exact string.
33
+ * than tells. But the caller must supply two things the connector cannot know:
34
+ *
35
+ * redirectUri the connector answers the same way wherever the platform is
36
+ * running, and providers match this value by exact string.
37
+ * url where the source points. This shapes the authorize request
38
+ * itself — Confluence picks its cloudId from it and SharePoint
39
+ * decides which tenant issues the token — so collect the URL from
40
+ * the user BEFORE offering to connect. Signing in first and asking
41
+ * where second risks a token for the wrong place.
42
+ *
43
+ * The url is also what the resulting credentials get tied to: saving them onto a
44
+ * source that points somewhere else is refused.
36
45
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/authentication-flow
37
46
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
38
47
  * @param {String} redirectUri Where the browser will return, e.g. `${origin}/callback`
48
+ * @param {String} url Where the source points — required
39
49
  * @param {String} authToken Authentication token
40
50
  * @returns {Promise<object>}
41
51
  */
42
- const initiateAuthenticationFlow = (connectionId, redirectUri, authToken) => {
52
+ const initiateAuthenticationFlow = (connectionId, redirectUri, url, authToken) => {
43
53
  return new Promise((resolve, reject) => {
44
- const request = axiosClient_js_1.client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/authentication-flow`, { redirectUri }, { headers: { authorization: authToken } });
54
+ const request = axiosClient_js_1.client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/authentication-flow`, { redirectUri, url }, { headers: { authorization: authToken } });
45
55
  request
46
56
  .then((response) => {
47
57
  resolve(response.data);
@@ -84,21 +94,31 @@ const completeAuthenticationFlow = (connectionId, code, state, authToken) => {
84
94
  };
85
95
  exports.completeAuthenticationFlow = completeAuthenticationFlow;
86
96
  /**
87
- * Ask a connector how much content the supplied credentials can reach the
88
- * volume preview shown before a source is created.
97
+ * Ask a connector how much content the supplied credentials can reach AT A GIVEN
98
+ * LOCATION — the volume preview shown before a source is created.
99
+ *
100
+ * This doubles as the reachability check. Signing in proves the person has an
101
+ * account; it proves nothing about whether they can read the specific site or
102
+ * space they typed. Credentials that cannot see `url` answer with an error or
103
+ * with nothing, so the user finds out here rather than at the first ingestion.
104
+ *
105
+ * `url` is required, and counts come back scoped to it. Calling without one is
106
+ * not "unscoped" so much as wrong: the answer would describe everything the
107
+ * account can reach, which is rarely what is about to be ingested.
89
108
  *
90
109
  * POST rather than GET because the credentials travel in the body and must not
91
110
  * reach a URL, an access log, or browser history.
92
111
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/stats
93
112
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
94
113
  * @param {object} authentication Credentials, shaped by the chosen `SourceConnectorAuthentication`
114
+ * @param {String} url Where the source points — required, and what the count is scoped to
95
115
  * @param {String} authToken Authentication token
96
116
  * @param {object} filters Optional filters over the fields `getConfiguration` advertises
97
117
  * @returns {Promise<object>} A `SourceConnectorStats`
98
118
  */
99
- const getStats = (connectionId, authentication, authToken, filters = null) => {
119
+ const getStats = (connectionId, authentication, url, authToken, filters = null) => {
100
120
  return new Promise((resolve, reject) => {
101
- const request = axiosClient_js_1.client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/stats`, { authentication, ...(filters ? { filters } : {}) }, { headers: { authorization: authToken } });
121
+ const request = axiosClient_js_1.client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/stats`, { authentication, url, ...(filters ? { filters } : {}) }, { headers: { authorization: authToken } });
102
122
  request
103
123
  .then((response) => {
104
124
  resolve(response.data);
@@ -1 +1 @@
1
- {"version":3,"file":"knowledgeBaseSourceConnectors.js","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":";;;AACA,sDAA2C;AAwF3C;;;;;;;;GAQG;AACI,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,C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,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,QAAQ,YAoBnB"}
1
+ {"version":3,"file":"knowledgeBaseSourceConnectors.js","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":";;;AACA,sDAA2C;AAwF3C;;;;;;;;GAQG;AACI,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,uBAAM,CAAC,GAAG,CACxB,gDAAgD,YAAY,gBAAgB,EAC5E,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAjBW,QAAA,gBAAgB,oBAiB3B;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,MAAM,0BAA0B,GAAG,CACxC,YAAoB,EACpB,WAAmB,EACnB,GAAW,EACX,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,uBAAM,CAAC,IAAI,CACzB,gDAAgD,YAAY,sBAAsB,EAClF,EAAE,WAAW,EAAE,GAAG,EAAE,EACpB,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC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AAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EACxD,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AArBW,QAAA,QAAQ,YAqBnB"}
@@ -74,16 +74,26 @@ export declare const getConfiguration: (connectionId: string, authToken: string)
74
74
  * single-use `state` the backend minted for this attempt. This STARTS the flow.
75
75
  *
76
76
  * The connector decides WHICH scheme applies, which is why the caller asks rather
77
- * than tells. But the caller must supply `redirectUri`: the connector answers the
78
- * same way wherever the platform is running, and providers match that value by
79
- * exact string.
77
+ * than tells. But the caller must supply two things the connector cannot know:
78
+ *
79
+ * redirectUri the connector answers the same way wherever the platform is
80
+ * running, and providers match this value by exact string.
81
+ * url where the source points. This shapes the authorize request
82
+ * itself — Confluence picks its cloudId from it and SharePoint
83
+ * decides which tenant issues the token — so collect the URL from
84
+ * the user BEFORE offering to connect. Signing in first and asking
85
+ * where second risks a token for the wrong place.
86
+ *
87
+ * The url is also what the resulting credentials get tied to: saving them onto a
88
+ * source that points somewhere else is refused.
80
89
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/authentication-flow
81
90
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
82
91
  * @param {String} redirectUri Where the browser will return, e.g. `${origin}/callback`
92
+ * @param {String} url Where the source points — required
83
93
  * @param {String} authToken Authentication token
84
94
  * @returns {Promise<object>}
85
95
  */
86
- export declare const initiateAuthenticationFlow: (connectionId: string, redirectUri: string, authToken: string) => Promise<object>;
96
+ export declare const initiateAuthenticationFlow: (connectionId: string, redirectUri: string, url: string, authToken: string) => Promise<object>;
87
97
  /**
88
98
  * Finish linking an account: exchange the authorization code the provider
89
99
  * returned for the connection itself.
@@ -104,17 +114,27 @@ export declare const initiateAuthenticationFlow: (connectionId: string, redirect
104
114
  */
105
115
  export declare const completeAuthenticationFlow: (connectionId: string, code: string, state: string, authToken: string) => Promise<object>;
106
116
  /**
107
- * Ask a connector how much content the supplied credentials can reach the
108
- * volume preview shown before a source is created.
117
+ * Ask a connector how much content the supplied credentials can reach AT A GIVEN
118
+ * LOCATION — the volume preview shown before a source is created.
119
+ *
120
+ * This doubles as the reachability check. Signing in proves the person has an
121
+ * account; it proves nothing about whether they can read the specific site or
122
+ * space they typed. Credentials that cannot see `url` answer with an error or
123
+ * with nothing, so the user finds out here rather than at the first ingestion.
124
+ *
125
+ * `url` is required, and counts come back scoped to it. Calling without one is
126
+ * not "unscoped" so much as wrong: the answer would describe everything the
127
+ * account can reach, which is rarely what is about to be ingested.
109
128
  *
110
129
  * POST rather than GET because the credentials travel in the body and must not
111
130
  * reach a URL, an access log, or browser history.
112
131
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/stats
113
132
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
114
133
  * @param {object} authentication Credentials, shaped by the chosen `SourceConnectorAuthentication`
134
+ * @param {String} url Where the source points — required, and what the count is scoped to
115
135
  * @param {String} authToken Authentication token
116
136
  * @param {object} filters Optional filters over the fields `getConfiguration` advertises
117
137
  * @returns {Promise<object>} A `SourceConnectorStats`
118
138
  */
119
- export declare const getStats: (connectionId: string, authentication: object, authToken: string, filters?: object | null) => Promise<object>;
139
+ export declare const getStats: (connectionId: string, authentication: object, url: string, authToken: string, filters?: object | null) => Promise<object>;
120
140
  //# sourceMappingURL=knowledgeBaseSourceConnectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledgeBaseSourceConnectors.d.ts","sourceRoot":"","sources":["../../../../src/lib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MAAM,CAAC;IACb,OAAO,EAAE,0BAA0B,EAAE,CAAC;CACvC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,EACpB,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAchB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,MAAM,EACpB,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,GACnB,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,WAAW,MAAM,EACjB,UAAS,MAAM,GAAG,IAAW,KAC5B,OAAO,CAAC,MAAM,CAehB,CAAC"}
1
+ {"version":3,"file":"knowledgeBaseSourceConnectors.d.ts","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":"AAsBA,2FAA2F;AAC3F,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,WAAW,6BAA6B;IAC5C,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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AC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ,GACnB,cAAc,MAAM,EACpB,gBAAgB,MAAM,EACtB,KAAK,MAAM,EACX,WAAW,MAAM,EACjB,UAAS,MAAM,GAAG,IAAW,KAC5B,OAAO,CAAC,MAAM,CAehB,CAAC"}
@@ -26,18 +26,28 @@ export const getConfiguration = (connectionId, authToken) => {
26
26
  * single-use `state` the backend minted for this attempt. This STARTS the flow.
27
27
  *
28
28
  * The connector decides WHICH scheme applies, which is why the caller asks rather
29
- * than tells. But the caller must supply `redirectUri`: the connector answers the
30
- * same way wherever the platform is running, and providers match that value by
31
- * exact string.
29
+ * than tells. But the caller must supply two things the connector cannot know:
30
+ *
31
+ * redirectUri the connector answers the same way wherever the platform is
32
+ * running, and providers match this value by exact string.
33
+ * url where the source points. This shapes the authorize request
34
+ * itself — Confluence picks its cloudId from it and SharePoint
35
+ * decides which tenant issues the token — so collect the URL from
36
+ * the user BEFORE offering to connect. Signing in first and asking
37
+ * where second risks a token for the wrong place.
38
+ *
39
+ * The url is also what the resulting credentials get tied to: saving them onto a
40
+ * source that points somewhere else is refused.
32
41
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/authentication-flow
33
42
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
34
43
  * @param {String} redirectUri Where the browser will return, e.g. `${origin}/callback`
44
+ * @param {String} url Where the source points — required
35
45
  * @param {String} authToken Authentication token
36
46
  * @returns {Promise<object>}
37
47
  */
38
- export const initiateAuthenticationFlow = (connectionId, redirectUri, authToken) => {
48
+ export const initiateAuthenticationFlow = (connectionId, redirectUri, url, authToken) => {
39
49
  return new Promise((resolve, reject) => {
40
- const request = client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/authentication-flow`, { redirectUri }, { headers: { authorization: authToken } });
50
+ const request = client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/authentication-flow`, { redirectUri, url }, { headers: { authorization: authToken } });
41
51
  request
42
52
  .then((response) => {
43
53
  resolve(response.data);
@@ -78,21 +88,31 @@ export const completeAuthenticationFlow = (connectionId, code, state, authToken)
78
88
  });
79
89
  };
80
90
  /**
81
- * Ask a connector how much content the supplied credentials can reach the
82
- * volume preview shown before a source is created.
91
+ * Ask a connector how much content the supplied credentials can reach AT A GIVEN
92
+ * LOCATION — the volume preview shown before a source is created.
93
+ *
94
+ * This doubles as the reachability check. Signing in proves the person has an
95
+ * account; it proves nothing about whether they can read the specific site or
96
+ * space they typed. Credentials that cannot see `url` answer with an error or
97
+ * with nothing, so the user finds out here rather than at the first ingestion.
98
+ *
99
+ * `url` is required, and counts come back scoped to it. Calling without one is
100
+ * not "unscoped" so much as wrong: the answer would describe everything the
101
+ * account can reach, which is rarely what is about to be ingested.
83
102
  *
84
103
  * POST rather than GET because the credentials travel in the body and must not
85
104
  * reach a URL, an access log, or browser history.
86
105
  * POST /api/v1/exceed/knowledgebasesourceconnectors/:id/stats
87
106
  * @param {String} connectionId The connection id (an `integrationId` from `knowledgeBase.listSourceConnectors`)
88
107
  * @param {object} authentication Credentials, shaped by the chosen `SourceConnectorAuthentication`
108
+ * @param {String} url Where the source points — required, and what the count is scoped to
89
109
  * @param {String} authToken Authentication token
90
110
  * @param {object} filters Optional filters over the fields `getConfiguration` advertises
91
111
  * @returns {Promise<object>} A `SourceConnectorStats`
92
112
  */
93
- export const getStats = (connectionId, authentication, authToken, filters = null) => {
113
+ export const getStats = (connectionId, authentication, url, authToken, filters = null) => {
94
114
  return new Promise((resolve, reject) => {
95
- const request = client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/stats`, { authentication, ...(filters ? { filters } : {}) }, { headers: { authorization: authToken } });
115
+ const request = client.post(`/api/v1/exceed/knowledgebasesourceconnectors/${connectionId}/stats`, { authentication, url, ...(filters ? { filters } : {}) }, { headers: { authorization: authToken } });
96
116
  request
97
117
  .then((response) => {
98
118
  resolve(response.data);
@@ -1 +1 @@
1
- {"version":3,"file":"knowledgeBaseSourceConnectors.js","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAwF3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CACxB,gDAAgD,YAAY,gBAAgB,EAC5E,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,YAAoB,EACpB,WAAmB,EACnB,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CACzB,gDAAgD,YAAY,sBAAsB,EAClF,EAAE,WAAW,EAAE,EACf,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAA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AC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"knowledgeBaseSourceConnectors.js","sourceRoot":"","sources":["../../../../src/lib/integrations/knowledgeBaseSourceConnectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAwF3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CACxB,gDAAgD,YAAY,gBAAgB,EAC5E,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,YAAoB,EACpB,WAAmB,EACnB,GAAW,EACX,SAAiB,EACA,EAAE;IACnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CACzB,gDAA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EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CACzB,gDAAgD,YAAY,QAAQ,EACpE,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EACxD,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAC1C,CAAC;QACF,OAAO;aACJ,IAAI,CAAC,CAAC,QAAuB,EAAE,EAAE;YAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAiB,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.265",
3
+ "version": "1.2.0",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "publishConfig": {
6
6
  "access": "public"