@qlik/api 0.0.15 → 0.1.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.
Files changed (135) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.d.ts +97 -61
  23. package/data-connections.js +29 -29
  24. package/data-credentials.d.ts +3 -2
  25. package/data-credentials.js +19 -19
  26. package/data-files.js +35 -35
  27. package/docs/authentication.md +5 -5
  28. package/docs/examples/fetch-spaces.md +1 -15
  29. package/docs/examples/open-without-data.md +1 -1
  30. package/docs/examples/show-sheet-list.md +1 -1
  31. package/docs/features.md +1 -1
  32. package/extensions.js +25 -25
  33. package/glossaries.js +59 -59
  34. package/groups.d.ts +0 -3
  35. package/groups.js +27 -27
  36. package/identity-providers.js +27 -27
  37. package/index.js +53 -53
  38. package/items.js +27 -27
  39. package/licenses.js +29 -29
  40. package/package.json +36 -232
  41. package/qix.d.ts +1 -1
  42. package/qix.js +10 -10
  43. package/quotas.js +15 -15
  44. package/reload-tasks.js +21 -21
  45. package/reloads.js +19 -19
  46. package/roles.js +15 -15
  47. package/spaces.js +35 -35
  48. package/temp-contents.js +17 -17
  49. package/tenants.js +23 -23
  50. package/themes.js +25 -25
  51. package/transports.js +23 -23
  52. package/users.d.ts +1 -3
  53. package/users.js +31 -31
  54. package/web-integrations.js +21 -21
  55. package/web-notifications.js +23 -23
  56. package/webhooks.js +31 -31
  57. package/api-keys.d.mts +0 -336
  58. package/api-keys.mjs +0 -80
  59. package/apps.d.mts +0 -2431
  60. package/apps.mjs +0 -398
  61. package/audits.d.mts +0 -286
  62. package/audits.mjs +0 -64
  63. package/auth-types-nnUcWhuU.d.mts +0 -98
  64. package/auth.d.mts +0 -26
  65. package/auth.mjs +0 -14
  66. package/automations.d.mts +0 -682
  67. package/automations.mjs +0 -173
  68. package/brands.d.mts +0 -670
  69. package/brands.mjs +0 -123
  70. package/chunks/2YWCEGTS.js +0 -21
  71. package/chunks/34ZKUFEA.js +0 -41
  72. package/chunks/4WHZ4EIW.js +0 -57
  73. package/chunks/B4VPD3ZT.js +0 -574
  74. package/chunks/BM4OSDRZ.js +0 -17
  75. package/chunks/DCXUEDOW.mjs +0 -67
  76. package/chunks/MTAQE4WC.js +0 -10411
  77. package/chunks/PLOSYUG2.js +0 -25
  78. package/chunks/URIW2U5M.js +0 -17
  79. package/chunks/VSY5YIQY.mjs +0 -11
  80. package/chunks/WOYJLK4Y.js +0 -1623
  81. package/collections.d.mts +0 -581
  82. package/collections.mjs +0 -114
  83. package/csp-origins.d.mts +0 -273
  84. package/csp-origins.mjs +0 -69
  85. package/data-assets.d.mts +0 -205
  86. package/data-assets.mjs +0 -66
  87. package/data-connections.d.mts +0 -558
  88. package/data-connections.mjs +0 -103
  89. package/data-credentials.d.mts +0 -203
  90. package/data-credentials.mjs +0 -59
  91. package/data-files.d.mts +0 -562
  92. package/data-files.mjs +0 -123
  93. package/extensions.d.mts +0 -293
  94. package/extensions.mjs +0 -77
  95. package/global.types-5iFvFJvX.d.mts +0 -115
  96. package/glossaries.d.mts +0 -1173
  97. package/glossaries.mjs +0 -237
  98. package/groups.d.mts +0 -434
  99. package/groups.mjs +0 -88
  100. package/identity-providers.d.mts +0 -550
  101. package/identity-providers.mjs +0 -83
  102. package/index.d.mts +0 -142
  103. package/index.mjs +0 -716
  104. package/items.d.mts +0 -535
  105. package/items.mjs +0 -87
  106. package/licenses.d.mts +0 -459
  107. package/licenses.mjs +0 -92
  108. package/qix.d.mts +0 -11629
  109. package/qix.mjs +0 -10
  110. package/quotas.d.mts +0 -112
  111. package/quotas.mjs +0 -32
  112. package/reload-tasks.d.mts +0 -227
  113. package/reload-tasks.mjs +0 -62
  114. package/reloads.d.mts +0 -207
  115. package/reloads.mjs +0 -46
  116. package/roles.d.mts +0 -175
  117. package/roles.mjs +0 -31
  118. package/spaces.d.mts +0 -562
  119. package/spaces.mjs +0 -124
  120. package/temp-contents.d.mts +0 -167
  121. package/temp-contents.mjs +0 -41
  122. package/tenants.d.mts +0 -300
  123. package/tenants.mjs +0 -73
  124. package/themes.d.mts +0 -268
  125. package/themes.mjs +0 -77
  126. package/transports.d.mts +0 -319
  127. package/transports.mjs +0 -65
  128. package/users.d.mts +0 -631
  129. package/users.mjs +0 -104
  130. package/web-integrations.d.mts +0 -274
  131. package/web-integrations.mjs +0 -62
  132. package/web-notifications.d.mts +0 -250
  133. package/web-notifications.mjs +0 -69
  134. package/webhooks.d.mts +0 -445
  135. package/webhooks.mjs +0 -104
@@ -1,69 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/web-notifications.ts
9
- var getNotifications = async (query, options) => invokeFetch("web-notifications", {
10
- method: "get",
11
- pathTemplate: "/api/v1/web-notifications",
12
- query,
13
- options
14
- });
15
- var deleteNotifications = async (options) => invokeFetch("web-notifications", {
16
- method: "delete",
17
- pathTemplate: "/api/v1/web-notifications/all",
18
- options
19
- });
20
- var patchNotifications = async (body, options) => invokeFetch("web-notifications", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/web-notifications/all",
23
- body,
24
- contentType: "application/json",
25
- options
26
- });
27
- var deleteNotification = async (notificationId, options) => invokeFetch("web-notifications", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
30
- pathVariables: { notificationId },
31
- options
32
- });
33
- var getNotification = async (notificationId, options) => invokeFetch("web-notifications", {
34
- method: "get",
35
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
36
- pathVariables: { notificationId },
37
- options
38
- });
39
- var patchNotification = async (notificationId, body, options) => invokeFetch("web-notifications", {
40
- method: "patch",
41
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
42
- pathVariables: { notificationId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- function clearCache() {
48
- return clearApiCache("web-notifications");
49
- }
50
- var webNotificationsExport = {
51
- getNotifications,
52
- deleteNotifications,
53
- patchNotifications,
54
- deleteNotification,
55
- getNotification,
56
- patchNotification,
57
- clearCache
58
- };
59
- var web_notifications_default = webNotificationsExport;
60
- export {
61
- clearCache,
62
- web_notifications_default as default,
63
- deleteNotification,
64
- deleteNotifications,
65
- getNotification,
66
- getNotifications,
67
- patchNotification,
68
- patchNotifications
69
- };
package/webhooks.d.mts DELETED
@@ -1,445 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
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?: {
10
- /** The sent body/payload of the delivery */
11
- body?: unknown;
12
- /** Headers sent for this delivery */
13
- headers?: unknown;
14
- /** URL used for this delivery */
15
- url?: string;
16
- };
17
- response?: {
18
- /** The received body of the delivery */
19
- body?: string;
20
- /** Headers received for this delivery */
21
- headers?: unknown;
22
- /** The HTTP status code of the response */
23
- statusCode?: number;
24
- };
25
- /** The status of delivery */
26
- status: "success" | "fail";
27
- /** The status message of the delivery */
28
- statusMessage?: string;
29
- /** The UTC timestamp when the delivery was triggered */
30
- triggeredAt: string;
31
- /** The unique webhook identifier that the delivery is for */
32
- webhookId: string;
33
- };
34
- type DeliveryList = {
35
- data?: Delivery[];
36
- links?: {
37
- next?: Link;
38
- prev?: Link;
39
- self?: Link;
40
- };
41
- };
42
- type Error = {
43
- /** The unique code for the error */
44
- code: string;
45
- /** May be used to provide additional details */
46
- detail?: string;
47
- /** A summary of what went wrong */
48
- title: string;
49
- };
50
- type ErrorResponse = {
51
- errors?: Error[];
52
- /** A way to trace the source of the error. */
53
- traceId?: string;
54
- };
55
- type EventType = {
56
- /** Description of the event type */
57
- description?: string;
58
- /** Specifies which levels that are supported for this event type */
59
- levels?: string[];
60
- /** Name of the event type */
61
- name?: string;
62
- /** Title of the event type */
63
- title?: string;
64
- };
65
- type EventTypes = {
66
- data?: EventType[];
67
- };
68
- type Link = {
69
- /** URL to a resource request */
70
- href: string;
71
- };
72
- type WebhookBase = {
73
- /** The UTC timestamp when the webhook was created */
74
- readonly createdAt?: string;
75
- /** The id of the user that created the webhook */
76
- readonly createdByUserId?: string;
77
- /** The reason for creating the webhook */
78
- description?: string;
79
- /** The reason for the webhook to be disabled */
80
- readonly disabledReason?: string;
81
- /** The unique code for the reason */
82
- readonly disabledReasonCode?: string;
83
- /** Whether the webhook is active and sending requests */
84
- enabled?: boolean;
85
- /** Types of events for which the webhook should trigger. */
86
- eventTypes?: string[];
87
- /** Filter that should match for a webhook to be triggered.
88
- * 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.
89
- * Supported attribute operators are 'eq' and 'ne'.
90
- * Supported logical operators are 'and' and 'or'.
91
- * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes
92
- * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
93
- filter?: string;
94
- /** Additional headers in the post request */
95
- headers?: unknown;
96
- /** The webhook's unique identifier */
97
- readonly id?: string;
98
- /** 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. */
99
- level?: "tenant" | "user";
100
- /** The name for the webhook */
101
- name: string;
102
- /** The id of the user that owns the webhook, only applicable for user level webhooks */
103
- ownerId?: string;
104
- /** String used as secret for calculating HMAC hash sent as header */
105
- secret?: string;
106
- /** The UTC timestamp when the webhook was last updated */
107
- readonly updatedAt?: string;
108
- /** The id of the user that last updated the webhook */
109
- readonly updatedByUserId?: string;
110
- /** Target URL for webhook HTTPS requests */
111
- url: string;
112
- };
113
- type WebhookList = {
114
- data?: WebhookResponse[];
115
- links?: {
116
- next?: Link;
117
- prev?: Link;
118
- self?: Link;
119
- };
120
- };
121
- /**
122
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902
123
- */
124
- type WebhookPatch = {
125
- /** The operation to be performed */
126
- op: "add" | "remove" | "replace";
127
- /** The path for the given resource field to patch */
128
- path: "/name" | "/description" | "/url" | "/eventTypes" | "/headers" | "/enabled" | "/secret";
129
- /** The value to be used for this operation. */
130
- value?: boolean | number | unknown | string;
131
- };
132
- type WebhookPost = WebhookBase & {
133
- /** Indicates from where the webhook was created and its purpose */
134
- origin?: "api" | "automations" | "management-console";
135
- };
136
- type WebhookResponse = WebhookBase & {
137
- /** Indicates from where the webhook was created and its purpose */
138
- readonly origin?: "api" | "automations" | "management-console";
139
- };
140
- /**
141
- * Retrieves all webhooks entries for a tenant
142
- *
143
- * @param query an object with query parameters
144
- * @throws GetWebhooksHttpError
145
- */
146
- declare const getWebhooks: (query: {
147
- /** Filter resources by user that created it */
148
- createdByUserId?: string;
149
- /** Filter resources by enabled true/false */
150
- enabled?: boolean;
151
- /** Filter resources by event-type */
152
- eventType?: string;
153
- /** Filter resources by level that user has access to (either user or level) */
154
- level?: string;
155
- /** Maximum number of webhooks to retrieve */
156
- limit?: number;
157
- /** Filter resources by name (wildcard and case insensitive) */
158
- name?: string;
159
- /** Cursor to the next page */
160
- next?: string;
161
- /** Filter resources by user that owns it, only applicable for user level webhooks */
162
- ownerId?: string;
163
- /** Cursor to previous next page */
164
- prev?: string;
165
- /** Field to sort by, prefix with -/+ to indicate order */
166
- sort?: "name" | "+name" | "-name" | "url" | "+url" | "-url" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
167
- /** Filter resources by user that last updated the webhook */
168
- updatedByUserId?: string;
169
- /** Filter resources by url (wildcard and case insensitive) */
170
- url?: string;
171
- }, options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
172
- type GetWebhooksHttpResponse = {
173
- data: WebhookList;
174
- headers: Headers;
175
- status: number;
176
- prev?: (options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
177
- next?: (options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
178
- };
179
- type GetWebhooksHttpError = {
180
- data: ErrorResponse;
181
- headers: Headers;
182
- status: number;
183
- };
184
- /**
185
- * Creates a new webhook
186
- *
187
- * @param body an object with the body content
188
- * @throws CreateWebhookHttpError
189
- */
190
- declare const createWebhook: (body: WebhookPost, options?: ApiCallOptions) => Promise<CreateWebhookHttpResponse>;
191
- type CreateWebhookHttpResponse = {
192
- data: WebhookResponse;
193
- headers: Headers;
194
- status: number;
195
- };
196
- type CreateWebhookHttpError = {
197
- data: ErrorResponse;
198
- headers: Headers;
199
- status: number;
200
- };
201
- /**
202
- * List of event-types that are possible to subscribe to.
203
- *
204
- * @throws GetWebhookEventTypesHttpError
205
- */
206
- declare const getWebhookEventTypes: (options?: ApiCallOptions) => Promise<GetWebhookEventTypesHttpResponse>;
207
- type GetWebhookEventTypesHttpResponse = {
208
- data: EventTypes;
209
- headers: Headers;
210
- status: number;
211
- };
212
- type GetWebhookEventTypesHttpError = {
213
- data: ErrorResponse;
214
- headers: Headers;
215
- status: number;
216
- };
217
- /**
218
- * Deletes a specific webhook
219
- *
220
- * @param id The webhook's unique identifier.
221
- * @throws DeleteWebhookHttpError
222
- */
223
- declare const deleteWebhook: (id: string, options?: ApiCallOptions) => Promise<DeleteWebhookHttpResponse>;
224
- type DeleteWebhookHttpResponse = {
225
- data: void;
226
- headers: Headers;
227
- status: number;
228
- };
229
- type DeleteWebhookHttpError = {
230
- data: ErrorResponse;
231
- headers: Headers;
232
- status: number;
233
- };
234
- /**
235
- * Returns details for a specific webhook
236
- *
237
- * @param id The webhook's unique identifier.
238
- * @throws GetWebhookHttpError
239
- */
240
- declare const getWebhook: (id: string, options?: ApiCallOptions) => Promise<GetWebhookHttpResponse>;
241
- type GetWebhookHttpResponse = {
242
- data: WebhookResponse;
243
- headers: Headers;
244
- status: number;
245
- };
246
- type GetWebhookHttpError = {
247
- data: ErrorResponse;
248
- headers: Headers;
249
- status: number;
250
- };
251
- /**
252
- * Patches a webhook
253
- *
254
- * @param id The webhook's unique identifier.
255
- * @param body an object with the body content
256
- * @throws PatchWebhookHttpError
257
- */
258
- declare const patchWebhook: (id: string, body: WebhookPatch[], options?: ApiCallOptions) => Promise<PatchWebhookHttpResponse>;
259
- type PatchWebhookHttpResponse = {
260
- data: void;
261
- headers: Headers;
262
- status: number;
263
- };
264
- type PatchWebhookHttpError = {
265
- data: ErrorResponse;
266
- headers: Headers;
267
- status: number;
268
- };
269
- /**
270
- * Updates a webhook
271
- *
272
- * @param id The webhook's unique identifier.
273
- * @param body an object with the body content
274
- * @throws UpdateWebhookHttpError
275
- */
276
- declare const updateWebhook: (id: string, body: WebhookBase, options?: ApiCallOptions) => Promise<UpdateWebhookHttpResponse>;
277
- type UpdateWebhookHttpResponse = {
278
- data: WebhookResponse;
279
- headers: Headers;
280
- status: number;
281
- };
282
- type UpdateWebhookHttpError = {
283
- data: ErrorResponse;
284
- headers: Headers;
285
- status: number;
286
- };
287
- /**
288
- * Returns deliveries for a specific webhook
289
- *
290
- * @param id The webhook's unique identifier.
291
- * @param query an object with query parameters
292
- * @throws GetWebhookDeliveriesHttpError
293
- */
294
- declare const getWebhookDeliveries: (id: string, query: {
295
- /** Filter resources by event-type */
296
- eventType?: string;
297
- /** Maximum number of deliveries to retrieve */
298
- limit?: number;
299
- /** Cursor to the next page */
300
- next?: string;
301
- /** Cursor to previous next page */
302
- prev?: string;
303
- /** Field to sort by, prefix with -/+ to indicate order */
304
- sort?: "status" | "+status" | "-status" | "triggeredAt" | "+triggeredAt" | "-triggeredAt";
305
- /** Filter resources by status (success or fail) */
306
- status?: "success" | "fail";
307
- }, options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
308
- type GetWebhookDeliveriesHttpResponse = {
309
- data: DeliveryList;
310
- headers: Headers;
311
- status: number;
312
- prev?: (options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
313
- next?: (options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
314
- };
315
- type GetWebhookDeliveriesHttpError = {
316
- data: ErrorResponse;
317
- headers: Headers;
318
- status: number;
319
- };
320
- /**
321
- * Returns details for a specific delivery
322
- *
323
- * @param id The webhook's unique identifier.
324
- * @param deliveryId The delivery's unique identifier.
325
- * @throws GetWebhookDeliveryHttpError
326
- */
327
- declare const getWebhookDelivery: (id: string, deliveryId: string, options?: ApiCallOptions) => Promise<GetWebhookDeliveryHttpResponse>;
328
- type GetWebhookDeliveryHttpResponse = {
329
- data: Delivery;
330
- headers: Headers;
331
- status: number;
332
- };
333
- type GetWebhookDeliveryHttpError = {
334
- data: ErrorResponse;
335
- headers: Headers;
336
- status: number;
337
- };
338
- /**
339
- * Resend the delivery with the same payload
340
- *
341
- * @param id The webhook's unique identifier.
342
- * @param deliveryId The delivery's unique identifier.
343
- * @throws ResendWebhookDeliveryHttpError
344
- */
345
- declare const resendWebhookDelivery: (id: string, deliveryId: string, options?: ApiCallOptions) => Promise<ResendWebhookDeliveryHttpResponse>;
346
- type ResendWebhookDeliveryHttpResponse = {
347
- data: Delivery;
348
- headers: Headers;
349
- status: number;
350
- };
351
- type ResendWebhookDeliveryHttpError = {
352
- data: ErrorResponse;
353
- headers: Headers;
354
- status: number;
355
- };
356
- /**
357
- * Clears the cache for webhooks api requests.
358
- */
359
- declare function clearCache(): void;
360
- interface WebhooksAPI {
361
- /**
362
- * Retrieves all webhooks entries for a tenant
363
- *
364
- * @param query an object with query parameters
365
- * @throws GetWebhooksHttpError
366
- */
367
- getWebhooks: typeof getWebhooks;
368
- /**
369
- * Creates a new webhook
370
- *
371
- * @param body an object with the body content
372
- * @throws CreateWebhookHttpError
373
- */
374
- createWebhook: typeof createWebhook;
375
- /**
376
- * List of event-types that are possible to subscribe to.
377
- *
378
- * @throws GetWebhookEventTypesHttpError
379
- */
380
- getWebhookEventTypes: typeof getWebhookEventTypes;
381
- /**
382
- * Deletes a specific webhook
383
- *
384
- * @param id The webhook's unique identifier.
385
- * @throws DeleteWebhookHttpError
386
- */
387
- deleteWebhook: typeof deleteWebhook;
388
- /**
389
- * Returns details for a specific webhook
390
- *
391
- * @param id The webhook's unique identifier.
392
- * @throws GetWebhookHttpError
393
- */
394
- getWebhook: typeof getWebhook;
395
- /**
396
- * Patches a webhook
397
- *
398
- * @param id The webhook's unique identifier.
399
- * @param body an object with the body content
400
- * @throws PatchWebhookHttpError
401
- */
402
- patchWebhook: typeof patchWebhook;
403
- /**
404
- * Updates a webhook
405
- *
406
- * @param id The webhook's unique identifier.
407
- * @param body an object with the body content
408
- * @throws UpdateWebhookHttpError
409
- */
410
- updateWebhook: typeof updateWebhook;
411
- /**
412
- * Returns deliveries for a specific webhook
413
- *
414
- * @param id The webhook's unique identifier.
415
- * @param query an object with query parameters
416
- * @throws GetWebhookDeliveriesHttpError
417
- */
418
- getWebhookDeliveries: typeof getWebhookDeliveries;
419
- /**
420
- * Returns details for a specific delivery
421
- *
422
- * @param id The webhook's unique identifier.
423
- * @param deliveryId The delivery's unique identifier.
424
- * @throws GetWebhookDeliveryHttpError
425
- */
426
- getWebhookDelivery: typeof getWebhookDelivery;
427
- /**
428
- * Resend the delivery with the same payload
429
- *
430
- * @param id The webhook's unique identifier.
431
- * @param deliveryId The delivery's unique identifier.
432
- * @throws ResendWebhookDeliveryHttpError
433
- */
434
- resendWebhookDelivery: typeof resendWebhookDelivery;
435
- /**
436
- * Clears the cache for webhooks api requests.
437
- */
438
- clearCache: typeof clearCache;
439
- }
440
- /**
441
- * Functions for the webhooks api
442
- */
443
- declare const webhooksExport: WebhooksAPI;
444
-
445
- export { type CreateWebhookHttpError, type CreateWebhookHttpResponse, type DeleteWebhookHttpError, type DeleteWebhookHttpResponse, type Delivery, type DeliveryList, type Error, type ErrorResponse, type EventType, type EventTypes, type GetWebhookDeliveriesHttpError, type GetWebhookDeliveriesHttpResponse, type GetWebhookDeliveryHttpError, type GetWebhookDeliveryHttpResponse, type GetWebhookEventTypesHttpError, type GetWebhookEventTypesHttpResponse, type GetWebhookHttpError, type GetWebhookHttpResponse, type GetWebhooksHttpError, type GetWebhooksHttpResponse, type Link, type PatchWebhookHttpError, type PatchWebhookHttpResponse, type ResendWebhookDeliveryHttpError, type ResendWebhookDeliveryHttpResponse, type UpdateWebhookHttpError, type UpdateWebhookHttpResponse, type WebhookBase, type WebhookList, type WebhookPatch, type WebhookPost, type WebhookResponse, type WebhooksAPI, clearCache, createWebhook, webhooksExport as default, deleteWebhook, getWebhook, getWebhookDeliveries, getWebhookDelivery, getWebhookEventTypes, getWebhooks, patchWebhook, resendWebhookDelivery, updateWebhook };
package/webhooks.mjs DELETED
@@ -1,104 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/webhooks.ts
9
- var getWebhooks = async (query, options) => invokeFetch("webhooks", {
10
- method: "get",
11
- pathTemplate: "/api/v1/webhooks",
12
- query,
13
- options
14
- });
15
- var createWebhook = async (body, options) => invokeFetch("webhooks", {
16
- method: "post",
17
- pathTemplate: "/api/v1/webhooks",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getWebhookEventTypes = async (options) => invokeFetch("webhooks", {
23
- method: "get",
24
- pathTemplate: "/api/v1/webhooks/event-types",
25
- options
26
- });
27
- var deleteWebhook = async (id, options) => invokeFetch("webhooks", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/webhooks/{id}",
30
- pathVariables: { id },
31
- options
32
- });
33
- var getWebhook = async (id, options) => invokeFetch("webhooks", {
34
- method: "get",
35
- pathTemplate: "/api/v1/webhooks/{id}",
36
- pathVariables: { id },
37
- options
38
- });
39
- var patchWebhook = async (id, body, options) => invokeFetch("webhooks", {
40
- method: "patch",
41
- pathTemplate: "/api/v1/webhooks/{id}",
42
- pathVariables: { id },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- var updateWebhook = async (id, body, options) => invokeFetch("webhooks", {
48
- method: "put",
49
- pathTemplate: "/api/v1/webhooks/{id}",
50
- pathVariables: { id },
51
- body,
52
- contentType: "application/json",
53
- options
54
- });
55
- var getWebhookDeliveries = async (id, query, options) => invokeFetch("webhooks", {
56
- method: "get",
57
- pathTemplate: "/api/v1/webhooks/{id}/deliveries",
58
- pathVariables: { id },
59
- query,
60
- options
61
- });
62
- var getWebhookDelivery = async (id, deliveryId, options) => invokeFetch("webhooks", {
63
- method: "get",
64
- pathTemplate: "/api/v1/webhooks/{id}/deliveries/{deliveryId}",
65
- pathVariables: { id, deliveryId },
66
- options
67
- });
68
- var resendWebhookDelivery = async (id, deliveryId, options) => invokeFetch("webhooks", {
69
- method: "post",
70
- pathTemplate: "/api/v1/webhooks/{id}/deliveries/{deliveryId}/actions/resend",
71
- pathVariables: { id, deliveryId },
72
- options
73
- });
74
- function clearCache() {
75
- return clearApiCache("webhooks");
76
- }
77
- var webhooksExport = {
78
- getWebhooks,
79
- createWebhook,
80
- getWebhookEventTypes,
81
- deleteWebhook,
82
- getWebhook,
83
- patchWebhook,
84
- updateWebhook,
85
- getWebhookDeliveries,
86
- getWebhookDelivery,
87
- resendWebhookDelivery,
88
- clearCache
89
- };
90
- var webhooks_default = webhooksExport;
91
- export {
92
- clearCache,
93
- createWebhook,
94
- webhooks_default as default,
95
- deleteWebhook,
96
- getWebhook,
97
- getWebhookDeliveries,
98
- getWebhookDelivery,
99
- getWebhookEventTypes,
100
- getWebhooks,
101
- patchWebhook,
102
- resendWebhookDelivery,
103
- updateWebhook
104
- };