@qlik/api 2.2.0 → 2.3.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 (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
@@ -1,505 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/webhooks.d.ts
4
- type Delivery = {
5
- /** The name of the triggering event-type. */
6
- eventType: string;
7
- /** The delivery's unique identifier. */
8
- id: string;
9
- /** Request details for the delivery. */
10
- request?: {
11
- /** The sent body/payload of the delivery. */
12
- body?: unknown;
13
- /** Headers sent for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". */
14
- headers?: Record<string, string>;
15
- /** URL used for this delivery. */
16
- url?: string;
17
- };
18
- /** Response details for the delivery. */
19
- response?: {
20
- /** The received body of the delivery. */
21
- body?: string;
22
- /** Headers received for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". */
23
- headers?: Record<string, string>;
24
- /** The HTTP status code of the response. */
25
- statusCode?: number;
26
- };
27
- /** The status of delivery. */
28
- status: "success" | "fail";
29
- /** The status message of the delivery. */
30
- statusMessage?: string;
31
- /** The UTC timestamp when the delivery was triggered. */
32
- triggeredAt: string;
33
- /** The unique webhook identifier that the delivery is for. */
34
- webhookId: string;
35
- };
36
- type DeliveryList = {
37
- data?: Delivery[];
38
- links?: {
39
- next?: Link;
40
- prev?: Link;
41
- self?: Link;
42
- };
43
- };
44
- type Error = {
45
- /** The unique code for the error. */
46
- code: string;
47
- /** May be used to provide additional details. */
48
- detail?: string;
49
- /** A summary of what went wrong. */
50
- title: string;
51
- };
52
- type ErrorResponse = {
53
- errors?: Error[];
54
- /** A way to trace the source of the error. */
55
- traceId?: string;
56
- };
57
- type EventType = {
58
- /** Description of the event type. */
59
- description?: string;
60
- /** Specifies which levels that are supported for this event type. */
61
- levels?: string[];
62
- /** Name of the event type. */
63
- name?: string;
64
- /** Title of the event type. */
65
- title?: string;
66
- };
67
- type EventTypes = {
68
- data?: EventType[];
69
- };
70
- type Link = {
71
- /** URL to a resource request. */
72
- href: string;
73
- };
74
- type WebhookBase = {
75
- /** If enabled the certificate chain of the configured URL will be checked for revocation before sending the webhook. */
76
- checkCertificateRevocation?: boolean;
77
- /** The UTC timestamp when the webhook was created. */
78
- readonly createdAt?: string;
79
- /** The id of the user that created the webhook. */
80
- readonly createdByUserId?: string;
81
- /** The reason for creating the webhook. */
82
- description?: string;
83
- /** The reason for the webhook to be disabled. */
84
- readonly disabledReason?: string;
85
- /** The unique code for the reason. */
86
- readonly disabledReasonCode?: string;
87
- /** If enabled the webhook will be sent as a CloudEvent, once enabled for a webhook it cannot be disabled. */
88
- enableCloudEventDelivery?: boolean;
89
- /** Whether the webhook is active and sending requests. */
90
- enabled?: boolean;
91
- /** These headers are persisted encrypted and decrypted to be sent as normal headers in post request (webhook delivery), in case of URL change these headers will need to be re-entered. Note: duplicate headers are not allowed and are case-insensitive. */
92
- encryptedHeaders?: Record<string, string>;
93
- /** Types of events for which the webhook should trigger. Retrieve available types from `/v1/webhooks/event-types`. */
94
- eventTypes?: string[];
95
- /** Filter that should match for a webhook to be triggered.
96
- * Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
97
- * Supported attribute operators are 'eq' and 'ne'.
98
- * Supported logical operators are 'and' and 'or'.
99
- * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes.
100
- * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
101
- filter?: string;
102
- /** Additional headers in the post request (webhook delivery). Note: duplicate headers are not allowed and are case-insensitive. */
103
- headers?: Record<string, string>;
104
- /** The webhook's unique identifier. */
105
- readonly id?: string;
106
- /** Defines at what level the webhook should operate: for all resources belonging to a tenant or restricted to only those accessible by the webhook-creator. */
107
- level?: "tenant" | "user";
108
- /** The name for the webhook. */
109
- name: string;
110
- /** The id of the user that owns the webhook, only applicable for user level webhooks. */
111
- ownerId?: string;
112
- /** String used as secret for calculating HMAC hash sent as header. */
113
- secret?: string;
114
- /** The UTC timestamp when the webhook was last updated. */
115
- readonly updatedAt?: string;
116
- /** The id of the user that last updated the webhook. */
117
- readonly updatedByUserId?: string;
118
- /** Target URL for webhook HTTPS requests. */
119
- url: string;
120
- };
121
- type WebhookList = {
122
- data?: WebhookResponse[];
123
- links?: {
124
- next?: Link;
125
- prev?: Link;
126
- self?: Link;
127
- };
128
- };
129
- /**
130
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902
131
- */
132
- type WebhookPatch = {
133
- /** The operation to be performed. */
134
- op: "add" | "remove" | "replace";
135
- /** The path for the given resource field to patch. */
136
- path: "/name" | "/description" | "/url" | "/eventTypes" | "/headers" | "/enabled" | "/secret" | "/encryptedHeaders" | "/enableCloudEventDelivery";
137
- /** The value to be used for this operation. */
138
- value?: boolean | number | unknown | string;
139
- };
140
- type WebhookPost = WebhookBase & {
141
- /** Indicates from where the webhook was created and its purpose. */
142
- origin?: "api" | "automations" | "management-console";
143
- };
144
- type WebhookResponse = WebhookResponseBase & {
145
- /** Indicates from where the webhook was created and its purpose. */
146
- readonly origin?: "api" | "automations" | "management-console";
147
- };
148
- type WebhookResponseBase = {
149
- /** If enabled the certificate chain of the configured URL will be checked for revocation before sending the webhook. */
150
- checkCertificateRevocation?: boolean;
151
- /** The UTC timestamp when the webhook was created. */
152
- readonly createdAt?: string;
153
- /** The id of the user that created the webhook. */
154
- readonly createdByUserId?: string;
155
- /** The reason for creating the webhook. */
156
- description?: string;
157
- /** The reason for the webhook to be disabled. */
158
- readonly disabledReason?: string;
159
- /** The unique code for the reason. */
160
- readonly disabledReasonCode?: string;
161
- /** If enabled the webhook will be sent as a CloudEvent, once enabled for a webhook it cannot be disabled. */
162
- enableCloudEventDelivery?: boolean;
163
- /** Whether the webhook is active and sending requests. */
164
- enabled?: boolean;
165
- /** Additional encrypted headers in the post request. */
166
- encryptedHeaders?: string[];
167
- /** Types of events for which the webhook should trigger. Retrieve available types from `/v1/webhooks/event-types`. */
168
- eventTypes?: string[];
169
- /** Filter that should match for a webhook to be triggered.
170
- * Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
171
- * Supported attribute operators are 'eq' and 'ne'.
172
- * Supported logical operators are 'and' and 'or'.
173
- * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes.
174
- * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
175
- filter?: string;
176
- /** Additional headers in the post request. */
177
- headers?: Record<string, string>;
178
- /** The webhook's unique identifier. */
179
- readonly id?: string;
180
- /** Defines at what level the webhook should operate: for all resources belonging to a tenant or restricted to only those accessible by the webhook-creator. */
181
- level?: "tenant" | "user";
182
- /** The name for the webhook. */
183
- name: string;
184
- /** The id of the user that owns the webhook, only applicable for user level webhooks. */
185
- ownerId?: string;
186
- /** @deprecated
187
- * String used as secret for calculating HMAC hash sent as header. */
188
- secret?: string;
189
- /** Provides status of the string used as secret for calculating HMAC hash sent as header is already added or not. */
190
- secretKeyAdded?: boolean;
191
- /** The UTC timestamp when the webhook was last updated. */
192
- readonly updatedAt?: string;
193
- /** The id of the user that last updated the webhook. */
194
- readonly updatedByUserId?: string;
195
- /** Target URL for webhook HTTPS requests. */
196
- url: string;
197
- };
198
- /**
199
- * Retrieves all webhooks entries for a tenant that the user has access to. Users assigned the `TenantAdmin` role can retrieve all webhooks. A user can have up to 150 webhooks at one time.
200
- *
201
- * @param query an object with query parameters
202
- * @throws GetWebhooksHttpError
203
- */
204
- declare function getWebhooks(query: {
205
- /** Filter resources by user that created it. */
206
- createdByUserId?: string;
207
- /** Filter resources by enabled true/false. */
208
- enabled?: boolean;
209
- /** Filter resources by event-type/types, a single webhook item can have multiple event-types. */
210
- eventTypes?: string;
211
- /** Filter resources by level that user has access to (either user or level). */
212
- level?: string;
213
- /** Maximum number of webhooks to retrieve. */
214
- limit?: number;
215
- /** Filter resources by name (wildcard and case insensitive). */
216
- name?: string;
217
- /** Cursor to the next page. */
218
- next?: string;
219
- /** Filter resources by origins, supports multiorigin. */
220
- origins?: "api" | "automations" | "management-console";
221
- /** Filter resources by user that owns it, only applicable for user level webhooks. */
222
- ownerId?: string;
223
- /** Cursor to the previous page. */
224
- prev?: string;
225
- /** Field to sort by, prefix with -/+ to indicate order. */
226
- sort?: "name" | "+name" | "-name" | "url" | "+url" | "-url" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
227
- /** Filter resources by user that last updated the webhook. */
228
- updatedByUserId?: string;
229
- /** Filter resources by URL (wildcard and case insensitive). */
230
- url?: string;
231
- }, options?: ApiCallOptions): Promise<GetWebhooksHttpResponse>;
232
- type GetWebhooksHttpResponse = {
233
- data: WebhookList;
234
- headers: Headers;
235
- status: 200;
236
- prev?: (options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
237
- next?: (options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
238
- };
239
- type GetWebhooksHttpError = {
240
- data: ErrorResponse;
241
- headers: Headers;
242
- status: 400 | 401 | 403 | 500 | 503;
243
- };
244
- /**
245
- * Creates a new webhook. User must be assigned the `TenantAdmin` role to create `tenant` level webhooks.
246
- *
247
- * @param body an object with the body content
248
- * @throws CreateWebhookHttpError
249
- */
250
- declare function createWebhook(body: WebhookPost, options?: ApiCallOptions): Promise<CreateWebhookHttpResponse>;
251
- type CreateWebhookHttpResponse = {
252
- data: WebhookResponse;
253
- headers: Headers;
254
- status: 201;
255
- };
256
- type CreateWebhookHttpError = {
257
- data: ErrorResponse;
258
- headers: Headers;
259
- status: 400 | 401 | 403 | 500 | 503;
260
- };
261
- /**
262
- * Lists event-types that are possible to subscribe to.
263
- *
264
- * @throws GetWebhookEventTypesHttpError
265
- */
266
- declare function getWebhookEventTypes(options?: ApiCallOptions): Promise<GetWebhookEventTypesHttpResponse>;
267
- type GetWebhookEventTypesHttpResponse = {
268
- data: EventTypes;
269
- headers: Headers;
270
- status: 200;
271
- };
272
- type GetWebhookEventTypesHttpError = {
273
- data: ErrorResponse;
274
- headers: Headers;
275
- status: 401 | 500 | 503;
276
- };
277
- /**
278
- * Deletes a specific webhook.
279
- *
280
- * @param id The webhook's unique identifier.
281
- * @throws DeleteWebhookHttpError
282
- */
283
- declare function deleteWebhook(id: string, options?: ApiCallOptions): Promise<DeleteWebhookHttpResponse>;
284
- type DeleteWebhookHttpResponse = {
285
- data: void;
286
- headers: Headers;
287
- status: 204;
288
- };
289
- type DeleteWebhookHttpError = {
290
- data: ErrorResponse;
291
- headers: Headers;
292
- status: 400 | 401 | 403 | 404 | 500 | 503;
293
- };
294
- /**
295
- * Returns details for a specific webhook.
296
- *
297
- * @param id The webhook's unique identifier.
298
- * @throws GetWebhookHttpError
299
- */
300
- declare function getWebhook(id: string, options?: ApiCallOptions): Promise<GetWebhookHttpResponse>;
301
- type GetWebhookHttpResponse = {
302
- data: WebhookResponse;
303
- headers: Headers;
304
- status: 200;
305
- };
306
- type GetWebhookHttpError = {
307
- data: ErrorResponse;
308
- headers: Headers;
309
- status: 400 | 401 | 403 | 404 | 500 | 503;
310
- };
311
- /**
312
- * Patches a webhook to update one or more properties.
313
- *
314
- * @param id The webhook's unique identifier.
315
- * @param body an object with the body content
316
- * @throws PatchWebhookHttpError
317
- */
318
- declare function patchWebhook(id: string, body: WebhookPatch[], options?: ApiCallOptions): Promise<PatchWebhookHttpResponse>;
319
- type PatchWebhookHttpResponse = {
320
- data: void;
321
- headers: Headers;
322
- status: 204;
323
- };
324
- type PatchWebhookHttpError = {
325
- data: ErrorResponse;
326
- headers: Headers;
327
- status: 400 | 401 | 403 | 404 | 500 | 503;
328
- };
329
- /**
330
- * Updates a webhook, any omitted fields will be cleared, returns updated webhook.
331
- *
332
- * @param id The webhook's unique identifier.
333
- * @param body an object with the body content
334
- * @throws UpdateWebhookHttpError
335
- */
336
- declare function updateWebhook(id: string, body: WebhookBase, options?: ApiCallOptions): Promise<UpdateWebhookHttpResponse>;
337
- type UpdateWebhookHttpResponse = {
338
- data: WebhookResponse;
339
- headers: Headers;
340
- status: 200;
341
- };
342
- type UpdateWebhookHttpError = {
343
- data: ErrorResponse;
344
- headers: Headers;
345
- status: 400 | 401 | 403 | 404 | 500 | 503;
346
- };
347
- /**
348
- * Returns deliveries for a specific webhook. Delivery history is stored for 1 week.
349
- *
350
- * @param id The webhook's unique identifier.
351
- * @param query an object with query parameters
352
- * @throws GetWebhookDeliveriesHttpError
353
- */
354
- declare function getWebhookDeliveries(id: string, query: {
355
- /** Filter resources by event-type. */
356
- eventType?: string;
357
- /** Maximum number of deliveries to retrieve. */
358
- limit?: number;
359
- /** Cursor to the next page. */
360
- next?: string;
361
- /** Cursor to the previous page. */
362
- prev?: string;
363
- /** Field to sort by, prefix with -/+ to indicate order. */
364
- sort?: "status" | "+status" | "-status" | "triggeredAt" | "+triggeredAt" | "-triggeredAt";
365
- /** Filter resources by status (success or fail). */
366
- status?: "success" | "fail";
367
- }, options?: ApiCallOptions): Promise<GetWebhookDeliveriesHttpResponse>;
368
- type GetWebhookDeliveriesHttpResponse = {
369
- data: DeliveryList;
370
- headers: Headers;
371
- status: 200;
372
- prev?: (options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
373
- next?: (options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
374
- };
375
- type GetWebhookDeliveriesHttpError = {
376
- data: ErrorResponse;
377
- headers: Headers;
378
- status: 400 | 401 | 403 | 404 | 500 | 503;
379
- };
380
- /**
381
- * Returns details for a specific delivery.
382
- *
383
- * @param id The webhook's unique identifier.
384
- * @param deliveryId The delivery's unique identifier.
385
- * @throws GetWebhookDeliveryHttpError
386
- */
387
- declare function getWebhookDelivery(id: string, deliveryId: string, options?: ApiCallOptions): Promise<GetWebhookDeliveryHttpResponse>;
388
- type GetWebhookDeliveryHttpResponse = {
389
- data: Delivery;
390
- headers: Headers;
391
- status: 200;
392
- };
393
- type GetWebhookDeliveryHttpError = {
394
- data: ErrorResponse;
395
- headers: Headers;
396
- status: 400 | 401 | 403 | 404 | 500 | 503;
397
- };
398
- /**
399
- * Resends the delivery with the same payload.
400
- *
401
- * @param id The webhook's unique identifier.
402
- * @param deliveryId The delivery's unique identifier.
403
- * @throws ResendWebhookDeliveryHttpError
404
- */
405
- declare function resendWebhookDelivery(id: string, deliveryId: string, options?: ApiCallOptions): Promise<ResendWebhookDeliveryHttpResponse>;
406
- type ResendWebhookDeliveryHttpResponse = {
407
- data: Delivery;
408
- headers: Headers;
409
- status: 201;
410
- };
411
- type ResendWebhookDeliveryHttpError = {
412
- data: ErrorResponse;
413
- headers: Headers;
414
- status: 401 | 404 | 500 | 503;
415
- };
416
- /**
417
- * Clears the cache for webhooks api requests.
418
- */
419
- declare function clearCache(): void;
420
- type WebhooksAPI = {
421
- /**
422
- * Retrieves all webhooks entries for a tenant that the user has access to. Users assigned the `TenantAdmin` role can retrieve all webhooks. A user can have up to 150 webhooks at one time.
423
- *
424
- * @param query an object with query parameters
425
- * @throws GetWebhooksHttpError
426
- */
427
- getWebhooks: typeof getWebhooks;
428
- /**
429
- * Creates a new webhook. User must be assigned the `TenantAdmin` role to create `tenant` level webhooks.
430
- *
431
- * @param body an object with the body content
432
- * @throws CreateWebhookHttpError
433
- */
434
- createWebhook: typeof createWebhook;
435
- /**
436
- * Lists event-types that are possible to subscribe to.
437
- *
438
- * @throws GetWebhookEventTypesHttpError
439
- */
440
- getWebhookEventTypes: typeof getWebhookEventTypes;
441
- /**
442
- * Deletes a specific webhook.
443
- *
444
- * @param id The webhook's unique identifier.
445
- * @throws DeleteWebhookHttpError
446
- */
447
- deleteWebhook: typeof deleteWebhook;
448
- /**
449
- * Returns details for a specific webhook.
450
- *
451
- * @param id The webhook's unique identifier.
452
- * @throws GetWebhookHttpError
453
- */
454
- getWebhook: typeof getWebhook;
455
- /**
456
- * Patches a webhook to update one or more properties.
457
- *
458
- * @param id The webhook's unique identifier.
459
- * @param body an object with the body content
460
- * @throws PatchWebhookHttpError
461
- */
462
- patchWebhook: typeof patchWebhook;
463
- /**
464
- * Updates a webhook, any omitted fields will be cleared, returns updated webhook.
465
- *
466
- * @param id The webhook's unique identifier.
467
- * @param body an object with the body content
468
- * @throws UpdateWebhookHttpError
469
- */
470
- updateWebhook: typeof updateWebhook;
471
- /**
472
- * Returns deliveries for a specific webhook. Delivery history is stored for 1 week.
473
- *
474
- * @param id The webhook's unique identifier.
475
- * @param query an object with query parameters
476
- * @throws GetWebhookDeliveriesHttpError
477
- */
478
- getWebhookDeliveries: typeof getWebhookDeliveries;
479
- /**
480
- * Returns details for a specific delivery.
481
- *
482
- * @param id The webhook's unique identifier.
483
- * @param deliveryId The delivery's unique identifier.
484
- * @throws GetWebhookDeliveryHttpError
485
- */
486
- getWebhookDelivery: typeof getWebhookDelivery;
487
- /**
488
- * Resends the delivery with the same payload.
489
- *
490
- * @param id The webhook's unique identifier.
491
- * @param deliveryId The delivery's unique identifier.
492
- * @throws ResendWebhookDeliveryHttpError
493
- */
494
- resendWebhookDelivery: typeof resendWebhookDelivery;
495
- /**
496
- * Clears the cache for webhooks api requests.
497
- */
498
- clearCache: typeof clearCache;
499
- };
500
- /**
501
- * Functions for the webhooks api
502
- */
503
- declare const webhooksExport: WebhooksAPI;
504
- //#endregion
505
- export { WebhookPatch as A, getWebhookDelivery as B, PatchWebhookHttpResponse as C, UpdateWebhookHttpResponse as D, UpdateWebhookHttpError as E, clearCache as F, updateWebhook as G, getWebhooks as H, createWebhook as I, webhooksExport as K, deleteWebhook as L, WebhookResponse as M, WebhookResponseBase as N, WebhookBase as O, WebhooksAPI as P, getWebhook as R, PatchWebhookHttpError as S, ResendWebhookDeliveryHttpResponse as T, patchWebhook as U, getWebhookEventTypes as V, resendWebhookDelivery as W, GetWebhookHttpError as _, Delivery as a, GetWebhooksHttpResponse as b, ErrorResponse as c, GetWebhookDeliveriesHttpError as d, GetWebhookDeliveriesHttpResponse as f, GetWebhookEventTypesHttpResponse as g, GetWebhookEventTypesHttpError as h, DeleteWebhookHttpResponse as i, WebhookPost as j, WebhookList as k, EventType as l, GetWebhookDeliveryHttpResponse as m, CreateWebhookHttpResponse as n, DeliveryList as o, GetWebhookDeliveryHttpError as p, DeleteWebhookHttpError as r, Error as s, CreateWebhookHttpError as t, EventTypes as u, GetWebhookHttpResponse as v, ResendWebhookDeliveryHttpError as w, Link as x, GetWebhooksHttpError as y, getWebhookDeliveries as z };
File without changes