confluence.js 1.6.3 → 1.7.1

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.
Files changed (168) hide show
  1. package/.prettierrc +8 -3
  2. package/CHANGELOG.md +4 -0
  3. package/README.md +16 -0
  4. package/out/api/contentChildrenAndDescendants.js +3 -0
  5. package/out/api/contentChildrenAndDescendants.js.map +1 -1
  6. package/out/api/models/addContentRestriction.d.ts +8 -3
  7. package/out/api/models/appDescriptor.d.ts +6 -3
  8. package/out/api/models/asyncContentBody.d.ts +2 -2
  9. package/out/api/models/attachmentUpdate.d.ts +1 -1
  10. package/out/api/models/auditRecordCreate.d.ts +6 -2
  11. package/out/api/models/contentBlueprintDraft.d.ts +2 -1
  12. package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
  13. package/out/api/models/contentTemplateUpdate.d.ts +4 -1
  14. package/out/api/models/labeledContentType.js +1 -1
  15. package/out/api/models/labeledContentType.js.map +1 -1
  16. package/out/api/models/lifecycle.d.ts +6 -2
  17. package/out/api/parameters/addLabelsToContent.d.ts +2 -1
  18. package/out/api/parameters/createContent.d.ts +12 -3
  19. package/out/api/parameters/createContent.js +13 -4
  20. package/out/api/parameters/createContent.js.map +1 -1
  21. package/out/api/parameters/createRelationship.d.ts +4 -1
  22. package/out/api/parameters/createUserProperty.d.ts +2 -2
  23. package/out/api/parameters/delete.d.ts +4 -1
  24. package/out/api/parameters/deleteRelationship.d.ts +8 -5
  25. package/out/api/parameters/deleteUserProperty.d.ts +2 -2
  26. package/out/api/parameters/findSourcesForTarget.d.ts +2 -1
  27. package/out/api/parameters/findTargetFromSource.d.ts +2 -1
  28. package/out/api/parameters/getAttachments.d.ts +12 -3
  29. package/out/api/parameters/getAttachments.js +13 -4
  30. package/out/api/parameters/getAttachments.js.map +1 -1
  31. package/out/api/parameters/getAvailableContentStates.d.ts +1 -1
  32. package/out/api/parameters/getContent.d.ts +16 -4
  33. package/out/api/parameters/getContent.js +13 -4
  34. package/out/api/parameters/getContent.js.map +1 -1
  35. package/out/api/parameters/getContentById.d.ts +12 -3
  36. package/out/api/parameters/getContentById.js +13 -4
  37. package/out/api/parameters/getContentById.js.map +1 -1
  38. package/out/api/parameters/getContentProperties.d.ts +4 -2
  39. package/out/api/parameters/getContentProperty.d.ts +10 -8
  40. package/out/api/parameters/getContentTemplates.d.ts +4 -1
  41. package/out/api/parameters/getContentVersion.d.ts +2 -1
  42. package/out/api/parameters/getContentVersions.d.ts +2 -1
  43. package/out/api/parameters/getDescendantsOfType.d.ts +12 -3
  44. package/out/api/parameters/getDescendantsOfType.js +13 -4
  45. package/out/api/parameters/getDescendantsOfType.js.map +1 -1
  46. package/out/api/parameters/getHistoryForContent.d.ts +2 -1
  47. package/out/api/parameters/getLabelsForContent.d.ts +2 -1
  48. package/out/api/parameters/getRelationship.d.ts +6 -2
  49. package/out/api/parameters/getSpaces.d.ts +10 -3
  50. package/out/api/parameters/removeGroupById.d.ts +2 -2
  51. package/out/api/parameters/removeGroupByName.d.ts +2 -2
  52. package/out/api/parameters/removeModules.d.ts +2 -1
  53. package/out/api/parameters/restoreContentVersion.d.ts +2 -1
  54. package/out/api/parameters/search.d.ts +2 -2
  55. package/out/api/parameters/updateAttachmentProperties.d.ts +15 -15
  56. package/out/api/parameters/updateUserProperty.d.ts +2 -2
  57. package/out/clients/baseClient.d.ts +0 -1
  58. package/out/clients/baseClient.js +2 -2
  59. package/out/clients/baseClient.js.map +1 -1
  60. package/out/clients/confluenceClient.d.ts +2 -0
  61. package/out/clients/confluenceClient.js +3 -2
  62. package/out/clients/confluenceClient.js.map +1 -1
  63. package/out/clients/serverClient.d.ts +2 -1
  64. package/out/clients/serverClient.js +3 -3
  65. package/out/clients/serverClient.js.map +1 -1
  66. package/out/config.d.ts +7 -7
  67. package/out/server/parameters/createAuditRecord.d.ts +6 -2
  68. package/out/server/parameters/getAttachments.d.ts +12 -3
  69. package/out/server/parameters/getAttachments.js +13 -4
  70. package/out/server/parameters/getAttachments.js.map +1 -1
  71. package/out/services/authenticationService/authenticationService.js +1 -1
  72. package/out/services/authenticationService/authenticationService.js.map +1 -1
  73. package/out/services/authenticationService/authentications/createJWTAuthentication.js +1 -1
  74. package/out/services/authenticationService/authentications/createJWTAuthentication.js.map +1 -1
  75. package/out/services/authenticationService/base64Encoder.d.ts +1 -3
  76. package/out/services/authenticationService/base64Encoder.js +3 -5
  77. package/out/services/authenticationService/base64Encoder.js.map +1 -1
  78. package/out/utilityTypes.d.ts +5 -1
  79. package/package.json +25 -25
  80. package/src/api/audit.ts +9 -9
  81. package/src/api/content.ts +8 -8
  82. package/src/api/contentAttachments.ts +10 -10
  83. package/src/api/contentBody.ts +6 -6
  84. package/src/api/contentChildrenAndDescendants.ts +14 -11
  85. package/src/api/contentComments.ts +2 -2
  86. package/src/api/contentContentState.ts +10 -10
  87. package/src/api/contentLabels.ts +7 -7
  88. package/src/api/contentMacroBody.ts +6 -6
  89. package/src/api/contentPermissions.ts +4 -4
  90. package/src/api/contentProperties.ts +11 -11
  91. package/src/api/contentRestrictions.ts +26 -26
  92. package/src/api/contentStates.ts +12 -12
  93. package/src/api/contentVersions.ts +6 -6
  94. package/src/api/contentWatches.ts +11 -11
  95. package/src/api/dynamicModules.ts +1 -1
  96. package/src/api/experimental.ts +9 -9
  97. package/src/api/group.ts +18 -18
  98. package/src/api/inlineTasks.ts +1 -1
  99. package/src/api/labelInfo.ts +2 -2
  100. package/src/api/longRunningTask.ts +2 -2
  101. package/src/api/models/addContentRestriction.ts +8 -3
  102. package/src/api/models/appDescriptor.ts +6 -3
  103. package/src/api/models/asyncContentBody.ts +2 -2
  104. package/src/api/models/attachmentContainer.ts +1 -1
  105. package/src/api/models/attachmentUpdate.ts +1 -1
  106. package/src/api/models/auditRecordCreate.ts +6 -2
  107. package/src/api/models/contentBlueprintDraft.ts +2 -1
  108. package/src/api/models/contentRestrictionUpdate.ts +8 -3
  109. package/src/api/models/contentTemplateUpdate.ts +4 -1
  110. package/src/api/models/lifecycle.ts +6 -2
  111. package/src/api/parameters/addLabelsToContent.ts +2 -1
  112. package/src/api/parameters/createContent.ts +12 -3
  113. package/src/api/parameters/createRelationship.ts +4 -1
  114. package/src/api/parameters/createUserProperty.ts +2 -2
  115. package/src/api/parameters/delete.ts +4 -1
  116. package/src/api/parameters/deleteRelationship.ts +8 -5
  117. package/src/api/parameters/deleteUserProperty.ts +2 -2
  118. package/src/api/parameters/findSourcesForTarget.ts +2 -1
  119. package/src/api/parameters/findTargetFromSource.ts +2 -1
  120. package/src/api/parameters/getAttachments.ts +12 -3
  121. package/src/api/parameters/getAvailableContentStates.ts +1 -1
  122. package/src/api/parameters/getContent.ts +16 -4
  123. package/src/api/parameters/getContentById.ts +12 -3
  124. package/src/api/parameters/getContentProperties.ts +4 -2
  125. package/src/api/parameters/getContentProperty.ts +10 -8
  126. package/src/api/parameters/getContentTemplates.ts +4 -1
  127. package/src/api/parameters/getContentVersion.ts +2 -1
  128. package/src/api/parameters/getContentVersions.ts +2 -1
  129. package/src/api/parameters/getDescendantsOfType.ts +12 -3
  130. package/src/api/parameters/getHistoryForContent.ts +2 -1
  131. package/src/api/parameters/getLabelsForContent.ts +2 -1
  132. package/src/api/parameters/getRelationship.ts +6 -2
  133. package/src/api/parameters/getSpaces.ts +10 -3
  134. package/src/api/parameters/removeGroupById.ts +2 -2
  135. package/src/api/parameters/removeGroupByName.ts +2 -2
  136. package/src/api/parameters/removeModules.ts +2 -1
  137. package/src/api/parameters/restoreContentVersion.ts +2 -1
  138. package/src/api/parameters/search.ts +2 -2
  139. package/src/api/parameters/updateAttachmentProperties.ts +15 -15
  140. package/src/api/parameters/updateUserProperty.ts +2 -2
  141. package/src/api/relation.ts +8 -8
  142. package/src/api/search.ts +7 -7
  143. package/src/api/settings.ts +12 -12
  144. package/src/api/space.ts +7 -7
  145. package/src/api/spacePermissions.ts +5 -5
  146. package/src/api/spaceProperties.ts +10 -10
  147. package/src/api/spaceSettings.ts +4 -4
  148. package/src/api/template.ts +10 -10
  149. package/src/api/themes.ts +1 -1
  150. package/src/api/users.ts +13 -13
  151. package/src/clients/baseClient.ts +4 -4
  152. package/src/clients/confluenceClient.ts +8 -0
  153. package/src/clients/serverClient.ts +7 -1
  154. package/src/config.ts +19 -11
  155. package/src/server/audit.ts +9 -9
  156. package/src/server/content.ts +49 -49
  157. package/src/server/contentBody.ts +2 -2
  158. package/src/server/group.ts +2 -2
  159. package/src/server/longTask.ts +1 -1
  160. package/src/server/parameters/createAuditRecord.ts +6 -2
  161. package/src/server/parameters/getAttachments.ts +12 -3
  162. package/src/server/parameters/updateAttachmentData.ts +1 -1
  163. package/src/server/search.ts +2 -2
  164. package/src/server/space.ts +16 -16
  165. package/src/server/user.ts +7 -7
  166. package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -4
  167. package/src/services/authenticationService/base64Encoder.ts +5 -5
  168. package/src/utilityTypes.ts +7 -1
package/out/config.d.ts CHANGED
@@ -8,27 +8,27 @@ export interface Config {
8
8
  middlewares?: Config.Middlewares;
9
9
  /** @deprecated Disabled. Will be removed in the next major version. */
10
10
  telemetry?: Config.Telemetry;
11
- /**
12
- * Adds `'X-Atlassian-Token': 'no-check'` to each request header
13
- */
11
+ /** Adds `'X-Atlassian-Token': 'no-check'` to each request header */
14
12
  noCheckAtlassianToken?: boolean;
15
13
  /** Enable new API error handling. `false` by default. */
16
14
  newErrorHandling?: boolean;
15
+ /** Prefix for all API routes. */
16
+ apiPrefix?: string;
17
17
  }
18
18
  export declare namespace Config {
19
19
  type BaseRequestConfig = RequestConfig;
20
20
  type Error = AxiosError;
21
21
  /** @deprecated Disabled. Will be removed in the next major version. */
22
22
  type Telemetry = boolean | any;
23
- type Authentication = UtilityTypes.XOR<{
23
+ type Authentication = UtilityTypes.XOR4<{
24
24
  jwt: Authentication.JWT;
25
- }, UtilityTypes.XOR<{
25
+ }, {
26
26
  personalAccessToken: Authentication.PersonalAccessToken;
27
- }, UtilityTypes.XOR<{
27
+ }, {
28
28
  basic: Authentication.Basic;
29
29
  }, {
30
30
  oauth2: Authentication.OAuth2;
31
- }>>>;
31
+ }>;
32
32
  interface Middlewares {
33
33
  onError?: Config.Middlewares.OnErrorHandler;
34
34
  onResponse?: Config.Middlewares.OnResponseHandler;
@@ -20,12 +20,16 @@ export interface CreateAuditRecord {
20
20
  remoteAddress: string;
21
21
  /**
22
22
  * The creation date-time of the audit record, as a timestamp. This is converted to a date-time display in the
23
- * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current date-time.
23
+ * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current
24
+ * date-time.
24
25
  */
25
26
  creationDate?: number;
26
27
  /** The summary of the event, which is displayed in the 'Change' column on the audit log in the Confluence UI. */
27
28
  summary?: string;
28
- /** A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence UI. */
29
+ /**
30
+ * A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence
31
+ * UI.
32
+ */
29
33
  description?: string;
30
34
  /** The category of the event, which is displayed in the 'Event type' column on the audit log in the Confluence UI. */
31
35
  category?: string;
@@ -64,7 +64,10 @@ export declare namespace GetAttachments {
64
64
  UpdateGroupRestriction = "restrictions.update.restrictions.group",
65
65
  /** Returns the history of the content, including the date it was created. */
66
66
  History = "history",
67
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
67
+ /**
68
+ * Returns information about the most recent update of the content, including who updated it and when it was
69
+ * updated.
70
+ */
68
71
  LastUpdated = "history.lastUpdated",
69
72
  /** Returns information about the update prior to the current content update. */
70
73
  PreviousVersion = "history.previousVersion",
@@ -74,9 +77,15 @@ export declare namespace GetAttachments {
74
77
  NextVersion = "history.nextVersion",
75
78
  /** Returns the parent page, if the content is a page. */
76
79
  Ancestors = "ancestors",
77
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
80
+ /**
81
+ * Returns the body of the content in different formats, including the editor format, view format, and export
82
+ * format.
83
+ */
78
84
  Body = "body",
79
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
85
+ /**
86
+ * Returns information about the most recent update of the content, including who updated it and when it was
87
+ * updated.
88
+ */
80
89
  Version = "version",
81
90
  /** Returns pages that are descendants at any level below the content. */
82
91
  PageDescendant = "descendants.page",
@@ -56,7 +56,10 @@ var GetAttachments;
56
56
  Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
57
57
  /** Returns the history of the content, including the date it was created. */
58
58
  Expand["History"] = "history";
59
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
59
+ /**
60
+ * Returns information about the most recent update of the content, including who updated it and when it was
61
+ * updated.
62
+ */
60
63
  Expand["LastUpdated"] = "history.lastUpdated";
61
64
  /** Returns information about the update prior to the current content update. */
62
65
  Expand["PreviousVersion"] = "history.previousVersion";
@@ -66,9 +69,15 @@ var GetAttachments;
66
69
  Expand["NextVersion"] = "history.nextVersion";
67
70
  /** Returns the parent page, if the content is a page. */
68
71
  Expand["Ancestors"] = "ancestors";
69
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
72
+ /**
73
+ * Returns the body of the content in different formats, including the editor format, view format, and export
74
+ * format.
75
+ */
70
76
  Expand["Body"] = "body";
71
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
77
+ /**
78
+ * Returns information about the most recent update of the content, including who updated it and when it was
79
+ * updated.
80
+ */
72
81
  Expand["Version"] = "version";
73
82
  /** Returns pages that are descendants at any level below the content. */
74
83
  Expand["PageDescendant"] = "descendants.page";
@@ -86,5 +95,5 @@ var GetAttachments;
86
95
  /** Returns the resolution status of each comment. */
87
96
  Expand["Resolution"] = "extensions.resolution";
88
97
  })(Expand = GetAttachments.Expand || (GetAttachments.Expand = {}));
89
- })(GetAttachments = exports.GetAttachments || (exports.GetAttachments = {}));
98
+ })(GetAttachments || (exports.GetAttachments = GetAttachments = {}));
90
99
  //# sourceMappingURL=getAttachments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAttachments.js","sourceRoot":"","sources":["../../../src/server/parameters/getAttachments.ts"],"names":[],"mappings":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QAiFjB;AACH,CAAC,EAnFgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAmF9B"}
1
+ {"version":3,"file":"getAttachments.js","sourceRoot":"","sources":["../../../src/server/parameters/getAttachments.ts"],"names":[],"mappings":";;;AAcA,IAAiB,cAAc,CA4F9B;AA5FD,WAAiB,cAAc;IAC7B,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QA0FjB;AACH,CAAC,EA5FgB,cAAc,8BAAd,cAAc,QA4F9B"}
@@ -26,5 +26,5 @@ var AuthenticationService;
26
26
  });
27
27
  }
28
28
  AuthenticationService.getAuthenticationToken = getAuthenticationToken;
29
- })(AuthenticationService = exports.AuthenticationService || (exports.AuthenticationService = {}));
29
+ })(AuthenticationService || (exports.AuthenticationService = AuthenticationService = {}));
30
30
  //# sourceMappingURL=authenticationService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticationService.js","sourceRoot":"","sources":["../../../src/services/authenticationService/authenticationService.ts"],"names":[],"mappings":";;;;AACA,uDAK2B;AAE3B,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACpC,SAAsB,sBAAsB,CAC1C,cAAiD,EACjD,WAIC;;YAED,IAAI,CAAC,cAAc,EAAE;gBACnB,OAAO,SAAS,CAAC;aAClB;YAED,IAAI,cAAc,CAAC,KAAK,EAAE;gBACxB,OAAO,IAAA,gDAA8B,EAAC,cAAc,CAAC,KAAK,CAAC,CAAC;aAC7D;YAED,IAAI,cAAc,CAAC,MAAM,EAAE;gBACzB,OAAO,IAAA,iDAA+B,EAAC,cAAc,CAAC,MAAM,CAAC,CAAC;aAC/D;YAED,IAAI,cAAc,CAAC,GAAG,EAAE;gBACtB,OAAO,IAAA,yCAAuB,EAAC,cAAc,CAAC,GAAG,EAAE,WAAY,CAAC,CAAC;aAClE;YAED,IAAI,cAAc,CAAC,mBAAmB,EAAE;gBACtC,OAAO,IAAA,8CAA4B,EAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;aACzE;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KAAA;IA7BqB,4CAAsB,yBA6B3C,CAAA;AACH,CAAC,EA/BgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QA+BrC"}
1
+ {"version":3,"file":"authenticationService.js","sourceRoot":"","sources":["../../../src/services/authenticationService/authenticationService.ts"],"names":[],"mappings":";;;;AACA,uDAK2B;AAE3B,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACpC,SAAsB,sBAAsB,CAC1C,cAAiD,EACjD,WAIC;;YAED,IAAI,CAAC,cAAc,EAAE;gBACnB,OAAO,SAAS,CAAC;aAClB;YAED,IAAI,cAAc,CAAC,KAAK,EAAE;gBACxB,OAAO,IAAA,gDAA8B,EAAC,cAAc,CAAC,KAAK,CAAC,CAAC;aAC7D;YAED,IAAI,cAAc,CAAC,MAAM,EAAE;gBACzB,OAAO,IAAA,iDAA+B,EAAC,cAAc,CAAC,MAAM,CAAC,CAAC;aAC/D;YAED,IAAI,cAAc,CAAC,GAAG,EAAE;gBACtB,OAAO,IAAA,yCAAuB,EAAC,cAAc,CAAC,GAAG,EAAE,WAAY,CAAC,CAAC;aAClE;YAED,IAAI,cAAc,CAAC,mBAAmB,EAAE;gBACtC,OAAO,IAAA,8CAA4B,EAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;aACzE;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KAAA;IA7BqB,4CAAsB,yBA6B3C,CAAA;AACH,CAAC,EA/BgB,qBAAqB,qCAArB,qBAAqB,QA+BrC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createJWTAuthentication = void 0;
4
4
  const jwt = require("atlassian-jwt");
5
5
  function createJWTAuthentication(authenticationData, requestData) {
6
- const { method, url, } = requestData;
6
+ const { method, url } = requestData;
7
7
  const now = Math.floor(Date.now() / 1000);
8
8
  const expire = now + 180;
9
9
  const request = jwt.fromMethodAndUrl(method, url);
@@ -1 +1 @@
1
- {"version":3,"file":"createJWTAuthentication.js","sourceRoot":"","sources":["../../../../src/services/authenticationService/authentications/createJWTAuthentication.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAGrC,SAAgB,uBAAuB,CACrC,kBAA6C,EAC7C,WAGC;IAED,MAAM,EACJ,MAAM,EACN,GAAG,GACJ,GAAG,WAAW,CAAC;IAEhB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,MAAM,OAAO,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG;QAChB,GAAG,EAAE,kBAAkB,CAAC,MAAM;QAC9B,GAAG,EAAE,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC;QACvC,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,MAAM;KACZ,CAAC;IAEF,MAAM,KAAK,GAAG,GAAG,CAAC,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAExE,OAAO,OAAO,KAAK,EAAE,CAAC;AACxB,CAAC;AA1BD,0DA0BC"}
1
+ {"version":3,"file":"createJWTAuthentication.js","sourceRoot":"","sources":["../../../../src/services/authenticationService/authentications/createJWTAuthentication.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAGrC,SAAgB,uBAAuB,CACrC,kBAA6C,EAC7C,WAGC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC;IAEpC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,MAAM,OAAO,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG;QAChB,GAAG,EAAE,kBAAkB,CAAC,MAAM;QAC9B,GAAG,EAAE,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC;QACvC,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,MAAM;KACZ,CAAC;IAEF,MAAM,KAAK,GAAG,GAAG,CAAC,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAExE,OAAO,OAAO,KAAK,EAAE,CAAC;AACxB,CAAC;AAvBD,0DAuBC"}
@@ -1,6 +1,4 @@
1
- /**
2
- * @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html
3
- */
1
+ /** @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html */
4
2
  export declare namespace Base64Encoder {
5
3
  const encode: (input: string) => string;
6
4
  }
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  /* eslint-disable */
3
- /**
4
- * @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html
5
- */
3
+ /** @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html */
6
4
  Object.defineProperty(exports, "__esModule", { value: true });
7
5
  exports.Base64Encoder = void 0;
8
6
  var Base64Encoder;
@@ -16,7 +14,7 @@ var Base64Encoder;
16
14
  if (c < 128) {
17
15
  utftext += String.fromCharCode(c);
18
16
  }
19
- else if ((c > 127) && (c < 2048)) {
17
+ else if (c > 127 && c < 2048) {
20
18
  utftext += String.fromCharCode((c >> 6) | 192);
21
19
  utftext += String.fromCharCode((c & 63) | 128);
22
20
  }
@@ -57,5 +55,5 @@ var Base64Encoder;
57
55
  }
58
56
  return output;
59
57
  };
60
- })(Base64Encoder = exports.Base64Encoder || (exports.Base64Encoder = {}));
58
+ })(Base64Encoder || (exports.Base64Encoder = Base64Encoder = {}));
61
59
  //# sourceMappingURL=base64Encoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base64Encoder.js","sourceRoot":"","sources":["../../../src/services/authenticationService/base64Encoder.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;GAEG;;;AAEH,IAAiB,aAAa,CA+D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AM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,MAAM,CAC5F,IAAI,CACL,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;SACnC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,EAjEgB,aAAa,6BAAb,aAAa,QAiE7B"}
@@ -3,6 +3,10 @@ export declare namespace UtilityTypes {
3
3
  type Without<T, U> = {
4
4
  [P in Exclude<keyof T, keyof U>]?: never;
5
5
  };
6
- /** get the XOR type which could make 2 types exclude each other */
6
+ /** Get the XOR type which could make 2 types exclude each other */
7
7
  type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
8
+ /** Get the XOR type which could make 3 types exclude each other */
9
+ type XOR3<T, U, V> = XOR<T, XOR<U, V>>;
10
+ /** Get the XOR type which could make 4 types exclude each other */
11
+ type XOR4<T, U, V, W> = XOR<T, XOR3<U, V, W>>;
8
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confluence.js",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
4
4
  "description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
5
5
  "author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
6
6
  "license": "MIT",
@@ -11,13 +11,13 @@
11
11
  "scripts": {
12
12
  "build": "tsc",
13
13
  "prepublishOnly": "npm run build && npm run test && npm run lint",
14
- "test": "npm run test:unit && npm run test:e2e",
15
- "prettier": "prettier --write src/**/*.ts",
14
+ "test": "npm run test:unit && npm run test:integration",
15
+ "prettier": "prettier --write src",
16
16
  "doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg",
17
17
  "lint": "eslint src tests --ext .ts",
18
18
  "lint:fix": "npm run lint -- --fix",
19
19
  "test:unit": "ava tests/unit",
20
- "test:e2e": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/e2e/**/*.test.ts"
20
+ "test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts"
21
21
  },
22
22
  "ava": {
23
23
  "extensions": [
@@ -42,32 +42,32 @@
42
42
  "atlassian"
43
43
  ],
44
44
  "devDependencies": {
45
- "@swc-node/register": "1.5.8",
46
- "@swc/helpers": "^0.4.14",
47
- "@types/express": "^4.17.17",
48
- "@types/oauth": "^0.9.1",
49
- "@types/sinon": "^10.0.13",
50
- "@typescript-eslint/eslint-plugin": "^5.56.0",
51
- "@typescript-eslint/parser": "^5.56.0",
52
- "ava": "^5.2.0",
53
- "dotenv": "^16.0.3",
54
- "eslint": "^8.36.0",
45
+ "@swc-node/register": "^1.6.8",
46
+ "@swc/helpers": "^0.5.3",
47
+ "@types/express": "^4.17.20",
48
+ "@types/oauth": "^0.9.3",
49
+ "@types/sinon": "^10.0.20",
50
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
51
+ "@typescript-eslint/parser": "^6.9.0",
52
+ "ava": "^5.3.1",
53
+ "dotenv": "^16.3.1",
54
+ "eslint": "^8.52.0",
55
55
  "eslint-config-airbnb": "^19.0.4",
56
- "eslint-config-airbnb-typescript": "^17.0.0",
57
- "eslint-import-resolver-typescript": "^3.5.3",
58
- "eslint-plugin-import": "^2.27.5",
59
- "prettier": "^2.8.7",
60
- "prettier-plugin-jsdoc": "^0.4.2",
61
- "sinon": "^15.0.2",
62
- "typedoc": "^0.23.28",
63
- "typedoc-plugin-extras": "^2.3.2",
64
- "typescript": "^5.0.2"
56
+ "eslint-config-airbnb-typescript": "^17.1.0",
57
+ "eslint-import-resolver-typescript": "^3.6.1",
58
+ "eslint-plugin-import": "^2.29.0",
59
+ "prettier": "^3.0.3",
60
+ "prettier-plugin-jsdoc": "^1.1.1",
61
+ "sinon": "^17.0.0",
62
+ "typedoc": "^0.25.2",
63
+ "typedoc-plugin-extras": "^3.0.0",
64
+ "typescript": "^5.2.2"
65
65
  },
66
66
  "dependencies": {
67
67
  "atlassian-jwt": "^2.0.2",
68
- "axios": "^0.27.2",
68
+ "axios": "^1.6.0",
69
69
  "form-data": "^4.0.0",
70
70
  "oauth": "^0.10.0",
71
- "tslib": "^2.5.0"
71
+ "tslib": "^2.6.2"
72
72
  }
73
73
  }
package/src/api/audit.ts CHANGED
@@ -17,7 +17,7 @@ export class Audit {
17
17
  */
18
18
  async getAuditRecords<T = Models.AuditRecordArray>(
19
19
  parameters: Parameters.GetAuditRecords | undefined,
20
- callback: Callback<T>
20
+ callback: Callback<T>,
21
21
  ): Promise<void>;
22
22
  /**
23
23
  * Returns all records in the audit log, optionally for a certain date range. This contains information about events
@@ -29,7 +29,7 @@ export class Audit {
29
29
  */
30
30
  async getAuditRecords<T = Models.AuditRecordArray>(
31
31
  parameters?: Parameters.GetAuditRecords,
32
- callback?: never
32
+ callback?: never,
33
33
  ): Promise<T>;
34
34
  async getAuditRecords<T = Models.AuditRecordArray>(
35
35
  parameters?: Parameters.GetAuditRecords,
@@ -58,7 +58,7 @@ export class Audit {
58
58
  */
59
59
  async createAuditRecord<T = Models.AuditRecord>(
60
60
  parameters: Parameters.CreateAuditRecord | undefined,
61
- callback: Callback<T>
61
+ callback: Callback<T>,
62
62
  ): Promise<void>;
63
63
  /**
64
64
  * Creates a record in the audit log.
@@ -68,7 +68,7 @@ export class Audit {
68
68
  */
69
69
  async createAuditRecord<T = Models.AuditRecord>(
70
70
  parameters?: Parameters.CreateAuditRecord,
71
- callback?: never
71
+ callback?: never,
72
72
  ): Promise<T>;
73
73
  async createAuditRecord<T = Models.AuditRecord>(
74
74
  parameters?: Parameters.CreateAuditRecord,
@@ -102,7 +102,7 @@ export class Audit {
102
102
  */
103
103
  async exportAuditRecords<T = unknown>(
104
104
  parameters: Parameters.ExportAuditRecords | undefined,
105
- callback: Callback<T>
105
+ callback: Callback<T>,
106
106
  ): Promise<void>;
107
107
  /**
108
108
  * Exports audit records as a CSV file or ZIP file.
@@ -162,7 +162,7 @@ export class Audit {
162
162
  */
163
163
  async setRetentionPeriod<T = Models.RetentionPeriod>(
164
164
  parameters: Parameters.SetRetentionPeriod | undefined,
165
- callback: Callback<T>
165
+ callback: Callback<T>,
166
166
  ): Promise<void>;
167
167
  /**
168
168
  * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years.
@@ -172,7 +172,7 @@ export class Audit {
172
172
  */
173
173
  async setRetentionPeriod<T = Models.RetentionPeriod>(
174
174
  parameters?: Parameters.SetRetentionPeriod,
175
- callback?: never
175
+ callback?: never,
176
176
  ): Promise<T>;
177
177
  async setRetentionPeriod<T = Models.RetentionPeriod>(
178
178
  parameters?: Parameters.SetRetentionPeriod,
@@ -203,7 +203,7 @@ export class Audit {
203
203
  */
204
204
  async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
205
205
  parameters: Parameters.GetAuditRecordsForTimePeriod | undefined,
206
- callback: Callback<T>
206
+ callback: Callback<T>,
207
207
  ): Promise<void>;
208
208
  /**
209
209
  * Returns records from the audit log, for a time period back from the current date. For example, you can use this
@@ -218,7 +218,7 @@ export class Audit {
218
218
  */
219
219
  async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
220
220
  parameters?: Parameters.GetAuditRecordsForTimePeriod,
221
- callback?: never
221
+ callback?: never,
222
222
  ): Promise<T>;
223
223
  async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
224
224
  parameters?: Parameters.GetAuditRecordsForTimePeriod,
@@ -17,7 +17,7 @@ export class Content {
17
17
  */
18
18
  async getContent<T = Models.ContentArray>(
19
19
  parameters: Parameters.GetContent | undefined,
20
- callback: Callback<T>
20
+ callback: Callback<T>,
21
21
  ): Promise<void>;
22
22
  /**
23
23
  * Returns all content in a Confluence instance.
@@ -66,7 +66,7 @@ export class Content {
66
66
  */
67
67
  async createContent<T = Models.Content>(
68
68
  parameters: Parameters.CreateContent | undefined,
69
- callback: Callback<T>
69
+ callback: Callback<T>,
70
70
  ): Promise<void>;
71
71
  /**
72
72
  * Creates a new piece of content or publishes an existing draft.
@@ -153,7 +153,7 @@ export class Content {
153
153
  */
154
154
  async publishLegacyDraft<T = Models.Content>(
155
155
  parameters: Parameters.PublishLegacyDraft,
156
- callback: Callback<T>
156
+ callback: Callback<T>,
157
157
  ): Promise<void>;
158
158
  /**
159
159
  * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of
@@ -200,7 +200,7 @@ export class Content {
200
200
  */
201
201
  async publishSharedDraft<T = Models.Content>(
202
202
  parameters: Parameters.PublishSharedDraft,
203
- callback: Callback<T>
203
+ callback: Callback<T>,
204
204
  ): Promise<void>;
205
205
  /**
206
206
  * Publishes a shared draft of a page created from a blueprint.
@@ -252,7 +252,7 @@ export class Content {
252
252
  */
253
253
  async searchContentByCQL<T = Models.ContentArray>(
254
254
  parameters: Parameters.SearchContentByCQL,
255
- callback: Callback<T>
255
+ callback: Callback<T>,
256
256
  ): Promise<void>;
257
257
  /**
258
258
  * Returns the list of content that matches a Confluence Query Language (CQL) query. For information on CQL, see:
@@ -271,7 +271,7 @@ export class Content {
271
271
  */
272
272
  async searchContentByCQL<T = Models.ContentArray>(
273
273
  parameters: Parameters.SearchContentByCQL,
274
- callback?: never
274
+ callback?: never,
275
275
  ): Promise<T>;
276
276
  async searchContentByCQL<T = Models.ContentArray>(
277
277
  parameters: Parameters.SearchContentByCQL,
@@ -417,7 +417,7 @@ export class Content {
417
417
  */
418
418
  async getHistoryForContent<T = Models.ContentHistory>(
419
419
  parameters: Parameters.GetHistoryForContent,
420
- callback: Callback<T>
420
+ callback: Callback<T>,
421
421
  ): Promise<void>;
422
422
  /**
423
423
  * Returns the most recent update for a piece of content.
@@ -426,7 +426,7 @@ export class Content {
426
426
  */
427
427
  async getHistoryForContent<T = Models.ContentHistory>(
428
428
  parameters: Parameters.GetHistoryForContent,
429
- callback?: never
429
+ callback?: never,
430
430
  ): Promise<T>;
431
431
  async getHistoryForContent<T = Models.ContentHistory>(
432
432
  parameters: Parameters.GetHistoryForContent,
@@ -18,7 +18,7 @@ export class ContentAttachments {
18
18
  */
19
19
  async getAttachments<T = Models.ContentArray<Models.Attachment>>(
20
20
  parameters: Parameters.GetAttachments,
21
- callback: Callback<T>
21
+ callback: Callback<T>,
22
22
  ): Promise<void>;
23
23
  /**
24
24
  * Returns the attachments for a piece of content.
@@ -30,7 +30,7 @@ export class ContentAttachments {
30
30
  */
31
31
  async getAttachments<T = Models.ContentArray<Models.Attachment>>(
32
32
  parameters: Parameters.GetAttachments,
33
- callback?: never
33
+ callback?: never,
34
34
  ): Promise<T>;
35
35
  async getAttachments<T = Models.ContentArray<Models.Attachment>>(
36
36
  parameters: Parameters.GetAttachments,
@@ -60,7 +60,7 @@ export class ContentAttachments {
60
60
  */
61
61
  async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
62
62
  parameters: Parameters.CreateAttachments,
63
- callback: Callback<T>
63
+ callback: Callback<T>,
64
64
  ): Promise<void>;
65
65
  /**
66
66
  * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
@@ -71,7 +71,7 @@ export class ContentAttachments {
71
71
  */
72
72
  async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
73
73
  parameters: Parameters.CreateAttachments,
74
- callback?: never
74
+ callback?: never,
75
75
  ): Promise<T>;
76
76
  async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
77
77
  parameters: Parameters.CreateAttachments,
@@ -117,7 +117,7 @@ export class ContentAttachments {
117
117
  */
118
118
  async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
119
119
  parameters: Parameters.CreateOrUpdateAttachments,
120
- callback: Callback<T>
120
+ callback: Callback<T>,
121
121
  ): Promise<void>;
122
122
  /**
123
123
  * Adds an attachment to a piece of content. If the attachment already exists for the content, then the attachment is
@@ -127,7 +127,7 @@ export class ContentAttachments {
127
127
  */
128
128
  async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
129
129
  parameters: Parameters.CreateOrUpdateAttachments,
130
- callback?: never
130
+ callback?: never,
131
131
  ): Promise<T>;
132
132
  async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
133
133
  parameters: Parameters.CreateOrUpdateAttachments,
@@ -173,7 +173,7 @@ export class ContentAttachments {
173
173
  */
174
174
  async updateAttachmentProperties<T = Models.CreatedAttachment>(
175
175
  parameters: Parameters.UpdateAttachmentProperties,
176
- callback: Callback<T>
176
+ callback: Callback<T>,
177
177
  ): Promise<void>;
178
178
  /**
179
179
  * Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type,
@@ -183,7 +183,7 @@ export class ContentAttachments {
183
183
  */
184
184
  async updateAttachmentProperties<T = Models.CreatedAttachment>(
185
185
  parameters: Parameters.UpdateAttachmentProperties,
186
- callback?: never
186
+ callback?: never,
187
187
  ): Promise<T>;
188
188
  async updateAttachmentProperties<T = Models.CreatedAttachment>(
189
189
  parameters: Parameters.UpdateAttachmentProperties,
@@ -210,7 +210,7 @@ export class ContentAttachments {
210
210
  */
211
211
  async updateAttachmentData<T = Models.CreatedAttachment>(
212
212
  parameters: Parameters.UpdateAttachmentData,
213
- callback: Callback<T>
213
+ callback: Callback<T>,
214
214
  ): Promise<void>;
215
215
  /**
216
216
  * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit
@@ -224,7 +224,7 @@ export class ContentAttachments {
224
224
  */
225
225
  async updateAttachmentData<T = Models.CreatedAttachment>(
226
226
  parameters: Parameters.UpdateAttachmentData,
227
- callback?: never
227
+ callback?: never,
228
228
  ): Promise<T>;
229
229
  async updateAttachmentData<T = Models.CreatedAttachment>(
230
230
  parameters: Parameters.UpdateAttachmentData,
@@ -23,7 +23,7 @@ export class ContentBody {
23
23
  */
24
24
  async convertContentBody<T = Models.ContentBody>(
25
25
  parameters: Parameters.ConvertContentBody,
26
- callback: Callback<T>
26
+ callback: Callback<T>,
27
27
  ): Promise<void>;
28
28
  /**
29
29
  * Converts a content body from one format to another format.
@@ -41,7 +41,7 @@ export class ContentBody {
41
41
  */
42
42
  async convertContentBody<T = Models.ContentBody>(
43
43
  parameters: Parameters.ConvertContentBody,
44
- callback?: never
44
+ callback?: never,
45
45
  ): Promise<T>;
46
46
  async convertContentBody<T = Models.ContentBody>(
47
47
  parameters: Parameters.ConvertContentBody,
@@ -82,7 +82,7 @@ export class ContentBody {
82
82
  */
83
83
  async asyncConvertContentBodyRequest<T = Models.AsyncId>(
84
84
  parameters: Parameters.AsyncConvertContentBodyRequest,
85
- callback: Callback<T>
85
+ callback: Callback<T>,
86
86
  ): Promise<void>;
87
87
  /**
88
88
  * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
@@ -100,7 +100,7 @@ export class ContentBody {
100
100
  */
101
101
  async asyncConvertContentBodyRequest<T = Models.AsyncId>(
102
102
  parameters: Parameters.AsyncConvertContentBodyRequest,
103
- callback?: never
103
+ callback?: never,
104
104
  ): Promise<T>;
105
105
  async asyncConvertContentBodyRequest<T = Models.AsyncId>(
106
106
  parameters: Parameters.AsyncConvertContentBodyRequest,
@@ -138,7 +138,7 @@ export class ContentBody {
138
138
  */
139
139
  async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
140
140
  parameters: Parameters.AsyncConvertContentBodyResponse,
141
- callback: Callback<T>
141
+ callback: Callback<T>,
142
142
  ): Promise<void>;
143
143
  /**
144
144
  * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
@@ -152,7 +152,7 @@ export class ContentBody {
152
152
  */
153
153
  async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
154
154
  parameters: Parameters.AsyncConvertContentBodyResponse,
155
- callback?: never
155
+ callback?: never,
156
156
  ): Promise<T>;
157
157
  async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
158
158
  parameters: Parameters.AsyncConvertContentBodyResponse,