@wireapp/api-client 27.12.1 → 27.13.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/conversation/ConversationAPI/ConversationAPI.js +2 -2
- package/lib/oauth/OAuthAPI.d.ts +2 -1
- package/lib/oauth/OAuthAPI.d.ts.map +1 -1
- package/lib/oauth/OAuthAPI.js +4 -2
- package/lib/team/invitation/TeamInvitation.d.ts +1 -1
- package/lib/team/invitation/TeamInvitation.d.ts.map +1 -1
- package/lib/team/scim/ScimAPI.d.ts +1 -1
- package/lib/team/scim/ScimAPI.d.ts.map +1 -1
- package/lib/team/scim/ScimAPI.js +8 -2
- package/lib/team/scim/ScimTokenInfo.d.ts +1 -0
- package/lib/team/scim/ScimTokenInfo.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -312,7 +312,7 @@ class ConversationAPI {
|
|
|
312
312
|
data: conversationData,
|
|
313
313
|
method: 'post',
|
|
314
314
|
url: this.backendFeatures.version >= apiBreakpoint.version7
|
|
315
|
-
?
|
|
315
|
+
? `/${ConversationAPI.URL.ONE_2_ONE}-${ConversationAPI.URL.CONVERSATIONS}`
|
|
316
316
|
: `/${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.ONE_2_ONE}`,
|
|
317
317
|
};
|
|
318
318
|
await this.client.sendJSON(config);
|
|
@@ -325,7 +325,7 @@ class ConversationAPI {
|
|
|
325
325
|
const config = {
|
|
326
326
|
method: 'get',
|
|
327
327
|
url: this.backendFeatures.version >= apiBreakpoint.version7
|
|
328
|
-
?
|
|
328
|
+
? `/${ConversationAPI.URL.ONE_2_ONE}-${ConversationAPI.URL.CONVERSATIONS}/${domain}/${id}`
|
|
329
329
|
: `/${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.ONE_2_ONE}/${domain}/${id}`,
|
|
330
330
|
};
|
|
331
331
|
const response = await this.client.sendJSON(config);
|
package/lib/oauth/OAuthAPI.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class OAuthAPI {
|
|
|
11
11
|
CODES: string;
|
|
12
12
|
CLIENTS: string;
|
|
13
13
|
OAUTH: string;
|
|
14
|
+
SESSIONS: string;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Get all OAuth applications.
|
|
@@ -19,7 +20,7 @@ export declare class OAuthAPI {
|
|
|
19
20
|
/**
|
|
20
21
|
* Remove an application by ID.
|
|
21
22
|
*/
|
|
22
|
-
deleteApplication(applicationId: string): Promise<void>;
|
|
23
|
+
deleteApplication(applicationId: string, password?: string): Promise<void>;
|
|
23
24
|
/**
|
|
24
25
|
* Create an OAuth authorization code.
|
|
25
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthAPI.d.ts","sourceRoot":"","sources":["../../src/oauth/OAuthAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG
|
|
1
|
+
{"version":3,"file":"OAuthAPI.d.ts","sourceRoot":"","sources":["../../src/oauth/OAuthAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAEnC,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;;;;;MAOxB;IAEF;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAU3D;;OAEG;IACU,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAavF;;OAEG;IACU,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAcjE;;OAEG;IACU,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CASpE"}
|
package/lib/oauth/OAuthAPI.js
CHANGED
|
@@ -30,6 +30,7 @@ class OAuthAPI {
|
|
|
30
30
|
CODES: 'codes',
|
|
31
31
|
CLIENTS: 'clients',
|
|
32
32
|
OAUTH: '/oauth',
|
|
33
|
+
SESSIONS: 'sessions',
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Get all OAuth applications.
|
|
@@ -45,10 +46,11 @@ class OAuthAPI {
|
|
|
45
46
|
/**
|
|
46
47
|
* Remove an application by ID.
|
|
47
48
|
*/
|
|
48
|
-
async deleteApplication(applicationId) {
|
|
49
|
+
async deleteApplication(applicationId, password) {
|
|
49
50
|
const config = {
|
|
51
|
+
...(password && { data: { password } }),
|
|
50
52
|
method: 'delete',
|
|
51
|
-
url: `${OAuthAPI.URL.OAUTH}/${OAuthAPI.URL.APPLICATIONS}/${applicationId}`,
|
|
53
|
+
url: `${OAuthAPI.URL.OAUTH}/${OAuthAPI.URL.APPLICATIONS}/${applicationId}/sessions`,
|
|
52
54
|
};
|
|
53
55
|
try {
|
|
54
56
|
await this.client.sendJSON(config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -10,6 +10,6 @@ export declare class ScimAPI {
|
|
|
10
10
|
};
|
|
11
11
|
getTokens(): Promise<ScimTokenInfoList>;
|
|
12
12
|
deleteToken(scimTokenId: string): Promise<void>;
|
|
13
|
-
postToken(description: string, password?: string, verificationCode?: string): Promise<NewScimToken>;
|
|
13
|
+
postToken(description: string, password?: string, verificationCode?: string, name?: string, idp?: string): Promise<NewScimToken>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=ScimAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScimAPI.d.ts","sourceRoot":"","sources":["../../../src/team/scim/ScimAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,qBAAa,OAAO;IACN,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;MAGxB;IAEW,SAAS,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAUvC,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU/C,SAAS,
|
|
1
|
+
{"version":3,"file":"ScimAPI.d.ts","sourceRoot":"","sources":["../../../src/team/scim/ScimAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,qBAAa,OAAO;IACN,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;MAGxB;IAEW,SAAS,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAUvC,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU/C,SAAS,CACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,EACzB,IAAI,CAAC,EAAE,MAAM,EACb,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,YAAY,CAAC;CAgBzB"}
|
package/lib/team/scim/ScimAPI.js
CHANGED
|
@@ -44,9 +44,15 @@ class ScimAPI {
|
|
|
44
44
|
};
|
|
45
45
|
await this.client.sendJSON(config);
|
|
46
46
|
}
|
|
47
|
-
async postToken(description, password, verificationCode) {
|
|
47
|
+
async postToken(description, password, verificationCode, name, idp) {
|
|
48
48
|
const config = {
|
|
49
|
-
data: {
|
|
49
|
+
data: {
|
|
50
|
+
description,
|
|
51
|
+
...(password && { password }),
|
|
52
|
+
...(verificationCode && { verification_code: verificationCode }),
|
|
53
|
+
...(name && { name }),
|
|
54
|
+
...(idp && { idp }),
|
|
55
|
+
},
|
|
50
56
|
method: 'post',
|
|
51
57
|
url: `${ScimAPI.URL.SCIM}/${ScimAPI.URL.AUTH_TOKENS}`,
|
|
52
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScimTokenInfo.d.ts","sourceRoot":"","sources":["../../../src/team/scim/ScimTokenInfo.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
1
|
+
{"version":3,"file":"ScimTokenInfo.d.ts","sourceRoot":"","sources":["../../../src/team/scim/ScimTokenInfo.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/package.json
CHANGED