@compassdigital/sdk.typescript 4.732.0 → 4.733.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 +50 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +55 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +65 -0
- package/lib/interface/auth.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +139 -0
- package/src/interface/auth.ts +113 -0
package/lib/interface/auth.d.ts
CHANGED
|
@@ -115,6 +115,39 @@ export interface JwtAssertionJwkResponse {
|
|
|
115
115
|
e: string;
|
|
116
116
|
n: string;
|
|
117
117
|
}
|
|
118
|
+
export interface ConnectAuthorizeResponseDTO {
|
|
119
|
+
authorizeUrl: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ConnectProviderConfigRequestDTO {
|
|
122
|
+
product: string;
|
|
123
|
+
oauthClientId: string;
|
|
124
|
+
oauthClientSecret: string;
|
|
125
|
+
authorizationEndpoint: string;
|
|
126
|
+
tokenEndpoint: string;
|
|
127
|
+
jwksUri: string;
|
|
128
|
+
issuer: string;
|
|
129
|
+
subjectClaim: string;
|
|
130
|
+
tenantClaim: string;
|
|
131
|
+
successUrl: string;
|
|
132
|
+
errorUrl: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ConnectProviderConfigResponseDTO {
|
|
135
|
+
success: boolean;
|
|
136
|
+
}
|
|
137
|
+
export interface ConnectProviderConfigListResponseDTO {
|
|
138
|
+
product: string;
|
|
139
|
+
oauthClientId: string;
|
|
140
|
+
authorizationEndpoint: string;
|
|
141
|
+
tokenEndpoint: string;
|
|
142
|
+
jwksUri: string;
|
|
143
|
+
issuer: string;
|
|
144
|
+
subjectClaim: string;
|
|
145
|
+
tenantClaim: string;
|
|
146
|
+
successUrl: string;
|
|
147
|
+
errorUrl: string;
|
|
148
|
+
provider: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
}
|
|
118
151
|
export type PostAuthFlowBody = SSOFlowRequestDTO;
|
|
119
152
|
export type PostAuthFlowResponse = SSOFlowResponseDTO;
|
|
120
153
|
export interface GetAuthSsoConfigPath {
|
|
@@ -145,4 +178,36 @@ export type GetAuthSsoExchangeResponse = SSOAuthResponseDTO;
|
|
|
145
178
|
export type PostAuthJwtAssertionBody = JwtAssertionRequest;
|
|
146
179
|
export type PostAuthJwtAssertionResponse = JwtAssertionResponse;
|
|
147
180
|
export type GetAuthJwtAssertionJwkResponse = JwtAssertionJwkResponse;
|
|
181
|
+
export interface GetAuthConnectProviderAuthorizePath {
|
|
182
|
+
provider: string;
|
|
183
|
+
}
|
|
184
|
+
export interface GetAuthConnectProviderAuthorizeQuery {
|
|
185
|
+
product: string;
|
|
186
|
+
}
|
|
187
|
+
export type GetAuthConnectProviderAuthorizeResponse = ConnectAuthorizeResponseDTO;
|
|
188
|
+
export interface PostAuthConnectProviderConfigPath {
|
|
189
|
+
provider: string;
|
|
190
|
+
}
|
|
191
|
+
export type PostAuthConnectProviderConfigBody = ConnectProviderConfigRequestDTO;
|
|
192
|
+
export type PostAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
193
|
+
export interface PutAuthConnectProviderConfigPath {
|
|
194
|
+
provider: string;
|
|
195
|
+
}
|
|
196
|
+
export type PutAuthConnectProviderConfigBody = ConnectProviderConfigRequestDTO;
|
|
197
|
+
export type PutAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
198
|
+
export interface GetAuthConnectProviderConfigPath {
|
|
199
|
+
provider: string;
|
|
200
|
+
}
|
|
201
|
+
export interface GetAuthConnectProviderConfigQuery {
|
|
202
|
+
product: string;
|
|
203
|
+
}
|
|
204
|
+
export type GetAuthConnectProviderConfigResponse = ConnectProviderConfigListResponseDTO;
|
|
205
|
+
export interface DeleteAuthConnectProviderConfigPath {
|
|
206
|
+
provider: string;
|
|
207
|
+
}
|
|
208
|
+
export interface DeleteAuthConnectProviderConfigQuery {
|
|
209
|
+
product: string;
|
|
210
|
+
}
|
|
211
|
+
export type DeleteAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
212
|
+
export type GetAuthConnectProvidersResponse = ConnectProviderConfigListResponseDTO[];
|
|
148
213
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/interface/auth.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,IAAI;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IAClC,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;IACrC,IAAI,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAEnC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IAEzB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,WAAW,KAAK;IAErB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,SAAS,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,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AG,gCAAgC,CAAC;AAIpF,MAAM,WAAW,gCAAgC;IAChD,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iCAAiC;IAEjD,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,oCAAoC,GAAG,oCAAoC,CAAC;AAIxF,MAAM,WAAW,mCAAmC;IACnD,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oCAAoC;IAEpD,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,uCAAuC,GAAG,gCAAgC,CAAC;AAIvF,MAAM,MAAM,+BAA+B,GAAG,oCAAoC,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1457,6 +1457,17 @@ import {
|
|
|
1457
1457
|
PostAuthJwtAssertionBody,
|
|
1458
1458
|
PostAuthJwtAssertionResponse,
|
|
1459
1459
|
GetAuthJwtAssertionJwkResponse,
|
|
1460
|
+
GetAuthConnectProviderAuthorizeQuery,
|
|
1461
|
+
GetAuthConnectProviderAuthorizeResponse,
|
|
1462
|
+
PostAuthConnectProviderConfigBody,
|
|
1463
|
+
PostAuthConnectProviderConfigResponse,
|
|
1464
|
+
PutAuthConnectProviderConfigBody,
|
|
1465
|
+
PutAuthConnectProviderConfigResponse,
|
|
1466
|
+
GetAuthConnectProviderConfigQuery,
|
|
1467
|
+
GetAuthConnectProviderConfigResponse,
|
|
1468
|
+
DeleteAuthConnectProviderConfigQuery,
|
|
1469
|
+
DeleteAuthConnectProviderConfigResponse,
|
|
1470
|
+
GetAuthConnectProvidersResponse,
|
|
1460
1471
|
} from './interface/auth';
|
|
1461
1472
|
|
|
1462
1473
|
import {
|
|
@@ -16827,6 +16838,134 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16827
16838
|
);
|
|
16828
16839
|
}
|
|
16829
16840
|
|
|
16841
|
+
/**
|
|
16842
|
+
* GET /auth/connect/providers/{provider}/authorize - Starts linking a messaging identity (Slack, Teams) to the caller's CD account.
|
|
16843
|
+
*
|
|
16844
|
+
* @param provider
|
|
16845
|
+
* @param options - additional request options
|
|
16846
|
+
*/
|
|
16847
|
+
get_auth_connect_provider_authorize(
|
|
16848
|
+
provider: string,
|
|
16849
|
+
options: {
|
|
16850
|
+
query: GetAuthConnectProviderAuthorizeQuery;
|
|
16851
|
+
} & RequestOptions,
|
|
16852
|
+
): ResponsePromise<GetAuthConnectProviderAuthorizeResponse> {
|
|
16853
|
+
return this.request(
|
|
16854
|
+
'auth',
|
|
16855
|
+
'/auth/connect/providers/{provider}/authorize',
|
|
16856
|
+
'GET',
|
|
16857
|
+
`/auth/connect/providers/${provider}/authorize`,
|
|
16858
|
+
null,
|
|
16859
|
+
options,
|
|
16860
|
+
);
|
|
16861
|
+
}
|
|
16862
|
+
|
|
16863
|
+
/**
|
|
16864
|
+
* POST /auth/connect/providers/{provider} - Registers a provider's OIDC config for a product (e.g. Slack for thrive).
|
|
16865
|
+
*
|
|
16866
|
+
* @param provider
|
|
16867
|
+
* @param body
|
|
16868
|
+
* @param options - additional request options
|
|
16869
|
+
*/
|
|
16870
|
+
post_auth_connect_provider_config(
|
|
16871
|
+
provider: string,
|
|
16872
|
+
body: PostAuthConnectProviderConfigBody,
|
|
16873
|
+
options?: RequestOptions,
|
|
16874
|
+
): ResponsePromise<PostAuthConnectProviderConfigResponse> {
|
|
16875
|
+
return this.request(
|
|
16876
|
+
'auth',
|
|
16877
|
+
'/auth/connect/providers/{provider}',
|
|
16878
|
+
'POST',
|
|
16879
|
+
`/auth/connect/providers/${provider}`,
|
|
16880
|
+
body,
|
|
16881
|
+
options,
|
|
16882
|
+
);
|
|
16883
|
+
}
|
|
16884
|
+
|
|
16885
|
+
/**
|
|
16886
|
+
* PUT /auth/connect/providers/{provider} - Updates a product's existing OIDC provider config (full replace).
|
|
16887
|
+
*
|
|
16888
|
+
* @param provider
|
|
16889
|
+
* @param body
|
|
16890
|
+
* @param options - additional request options
|
|
16891
|
+
*/
|
|
16892
|
+
put_auth_connect_provider_config(
|
|
16893
|
+
provider: string,
|
|
16894
|
+
body: PutAuthConnectProviderConfigBody,
|
|
16895
|
+
options?: RequestOptions,
|
|
16896
|
+
): ResponsePromise<PutAuthConnectProviderConfigResponse> {
|
|
16897
|
+
return this.request(
|
|
16898
|
+
'auth',
|
|
16899
|
+
'/auth/connect/providers/{provider}',
|
|
16900
|
+
'PUT',
|
|
16901
|
+
`/auth/connect/providers/${provider}`,
|
|
16902
|
+
body,
|
|
16903
|
+
options,
|
|
16904
|
+
);
|
|
16905
|
+
}
|
|
16906
|
+
|
|
16907
|
+
/**
|
|
16908
|
+
* GET /auth/connect/providers/{provider} - Returns a product's registered OIDC provider config.
|
|
16909
|
+
*
|
|
16910
|
+
* @param provider
|
|
16911
|
+
* @param options - additional request options
|
|
16912
|
+
*/
|
|
16913
|
+
get_auth_connect_provider_config(
|
|
16914
|
+
provider: string,
|
|
16915
|
+
options: {
|
|
16916
|
+
query: GetAuthConnectProviderConfigQuery;
|
|
16917
|
+
} & RequestOptions,
|
|
16918
|
+
): ResponsePromise<GetAuthConnectProviderConfigResponse> {
|
|
16919
|
+
return this.request(
|
|
16920
|
+
'auth',
|
|
16921
|
+
'/auth/connect/providers/{provider}',
|
|
16922
|
+
'GET',
|
|
16923
|
+
`/auth/connect/providers/${provider}`,
|
|
16924
|
+
null,
|
|
16925
|
+
options,
|
|
16926
|
+
);
|
|
16927
|
+
}
|
|
16928
|
+
|
|
16929
|
+
/**
|
|
16930
|
+
* DELETE /auth/connect/providers/{provider} - Deletes a product's OIDC provider config.
|
|
16931
|
+
*
|
|
16932
|
+
* @param provider
|
|
16933
|
+
* @param options - additional request options
|
|
16934
|
+
*/
|
|
16935
|
+
delete_auth_connect_provider_config(
|
|
16936
|
+
provider: string,
|
|
16937
|
+
options: {
|
|
16938
|
+
query: DeleteAuthConnectProviderConfigQuery;
|
|
16939
|
+
} & RequestOptions,
|
|
16940
|
+
): ResponsePromise<DeleteAuthConnectProviderConfigResponse> {
|
|
16941
|
+
return this.request(
|
|
16942
|
+
'auth',
|
|
16943
|
+
'/auth/connect/providers/{provider}',
|
|
16944
|
+
'DELETE',
|
|
16945
|
+
`/auth/connect/providers/${provider}`,
|
|
16946
|
+
null,
|
|
16947
|
+
options,
|
|
16948
|
+
);
|
|
16949
|
+
}
|
|
16950
|
+
|
|
16951
|
+
/**
|
|
16952
|
+
* GET /auth/connect/providers - Returns every registered connect provider config, across every product.
|
|
16953
|
+
*
|
|
16954
|
+
* @param options - additional request options
|
|
16955
|
+
*/
|
|
16956
|
+
get_auth_connect_providers(
|
|
16957
|
+
options?: RequestOptions,
|
|
16958
|
+
): ResponsePromise<GetAuthConnectProvidersResponse> {
|
|
16959
|
+
return this.request(
|
|
16960
|
+
'auth',
|
|
16961
|
+
'/auth/connect/providers',
|
|
16962
|
+
'GET',
|
|
16963
|
+
`/auth/connect/providers`,
|
|
16964
|
+
null,
|
|
16965
|
+
options,
|
|
16966
|
+
);
|
|
16967
|
+
}
|
|
16968
|
+
|
|
16830
16969
|
/**
|
|
16831
16970
|
* GET /review - Get reviews by taxonomy
|
|
16832
16971
|
*
|
package/src/interface/auth.ts
CHANGED
|
@@ -155,6 +155,56 @@ export interface JwtAssertionJwkResponse {
|
|
|
155
155
|
n: string;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
export interface ConnectAuthorizeResponseDTO {
|
|
159
|
+
// The provider's full authorization URL — the product frontend just redirects the browser here.
|
|
160
|
+
authorizeUrl: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ConnectProviderConfigRequestDTO {
|
|
164
|
+
// Which internal product this registration belongs to, e.g. "thrive".
|
|
165
|
+
product: string;
|
|
166
|
+
// The client_id this provider (Slack/Teams) assigned to our app.
|
|
167
|
+
oauthClientId: string;
|
|
168
|
+
// The client_secret this provider (Slack/Teams) assigned to our app.
|
|
169
|
+
oauthClientSecret: string;
|
|
170
|
+
authorizationEndpoint: string;
|
|
171
|
+
tokenEndpoint: string;
|
|
172
|
+
jwksUri: string;
|
|
173
|
+
// May contain a {tenantid} placeholder for multi-tenant issuers (e.g. Microsoft Entra).
|
|
174
|
+
issuer: string;
|
|
175
|
+
// Which id_token claim carries the external subject id.
|
|
176
|
+
subjectClaim: string;
|
|
177
|
+
// Which id_token claim carries the tenant/team id.
|
|
178
|
+
tenantClaim: string;
|
|
179
|
+
successUrl: string;
|
|
180
|
+
errorUrl: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface ConnectProviderConfigResponseDTO {
|
|
184
|
+
success: boolean;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface ConnectProviderConfigListResponseDTO {
|
|
188
|
+
// Which internal product this registration belongs to, e.g. "thrive".
|
|
189
|
+
product: string;
|
|
190
|
+
// The client_id this provider (Slack/Teams) assigned to our app.
|
|
191
|
+
oauthClientId: string;
|
|
192
|
+
authorizationEndpoint: string;
|
|
193
|
+
tokenEndpoint: string;
|
|
194
|
+
jwksUri: string;
|
|
195
|
+
// May contain a {tenantid} placeholder for multi-tenant issuers (e.g. Microsoft Entra).
|
|
196
|
+
issuer: string;
|
|
197
|
+
// Which id_token claim carries the external subject id.
|
|
198
|
+
subjectClaim: string;
|
|
199
|
+
// Which id_token claim carries the tenant/team id.
|
|
200
|
+
tenantClaim: string;
|
|
201
|
+
successUrl: string;
|
|
202
|
+
errorUrl: string;
|
|
203
|
+
// Which provider this registration is for, e.g. "slack".
|
|
204
|
+
provider: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
158
208
|
// POST /auth/flow - Determines the authentication flow for a user based on their email address
|
|
159
209
|
|
|
160
210
|
export type PostAuthFlowBody = SSOFlowRequestDTO;
|
|
@@ -228,3 +278,66 @@ export type PostAuthJwtAssertionResponse = JwtAssertionResponse;
|
|
|
228
278
|
// GET /auth/jwt-assertion/jwk - Get the public JWK for JWT assertion
|
|
229
279
|
|
|
230
280
|
export type GetAuthJwtAssertionJwkResponse = JwtAssertionJwkResponse;
|
|
281
|
+
|
|
282
|
+
// GET /auth/connect/providers/{provider}/authorize - Starts linking a messaging identity (Slack, Teams) to the caller's CD account.
|
|
283
|
+
|
|
284
|
+
export interface GetAuthConnectProviderAuthorizePath {
|
|
285
|
+
provider: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface GetAuthConnectProviderAuthorizeQuery {
|
|
289
|
+
// Which internal product owns this registration, e.g. "thrive".
|
|
290
|
+
product: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type GetAuthConnectProviderAuthorizeResponse = ConnectAuthorizeResponseDTO;
|
|
294
|
+
|
|
295
|
+
// POST /auth/connect/providers/{provider} - Registers a provider's OIDC config for a product (e.g. Slack for thrive).
|
|
296
|
+
|
|
297
|
+
export interface PostAuthConnectProviderConfigPath {
|
|
298
|
+
provider: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type PostAuthConnectProviderConfigBody = ConnectProviderConfigRequestDTO;
|
|
302
|
+
|
|
303
|
+
export type PostAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
304
|
+
|
|
305
|
+
// PUT /auth/connect/providers/{provider} - Updates a product's existing OIDC provider config (full replace).
|
|
306
|
+
|
|
307
|
+
export interface PutAuthConnectProviderConfigPath {
|
|
308
|
+
provider: string;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type PutAuthConnectProviderConfigBody = ConnectProviderConfigRequestDTO;
|
|
312
|
+
|
|
313
|
+
export type PutAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
314
|
+
|
|
315
|
+
// GET /auth/connect/providers/{provider} - Returns a product's registered OIDC provider config.
|
|
316
|
+
|
|
317
|
+
export interface GetAuthConnectProviderConfigPath {
|
|
318
|
+
provider: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface GetAuthConnectProviderConfigQuery {
|
|
322
|
+
// Which internal product owns this registration, e.g. "thrive".
|
|
323
|
+
product: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type GetAuthConnectProviderConfigResponse = ConnectProviderConfigListResponseDTO;
|
|
327
|
+
|
|
328
|
+
// DELETE /auth/connect/providers/{provider} - Deletes a product's OIDC provider config.
|
|
329
|
+
|
|
330
|
+
export interface DeleteAuthConnectProviderConfigPath {
|
|
331
|
+
provider: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export interface DeleteAuthConnectProviderConfigQuery {
|
|
335
|
+
// Which internal product owns this registration, e.g. "thrive".
|
|
336
|
+
product: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type DeleteAuthConnectProviderConfigResponse = ConnectProviderConfigResponseDTO;
|
|
340
|
+
|
|
341
|
+
// GET /auth/connect/providers - Returns every registered connect provider config, across every product.
|
|
342
|
+
|
|
343
|
+
export type GetAuthConnectProvidersResponse = ConnectProviderConfigListResponseDTO[];
|