@qlik/api 1.32.0 → 1.33.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 (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{YTT2FEVE.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{LTNGXTXG.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{VVD2DPKQ.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{RCLKKVYB.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +101 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +13 -13
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +100 -52
  91. package/ml.js +379 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/assistants.js CHANGED
@@ -1,209 +1,265 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/assistants.ts
9
- var getAssistants = async (query, options) => invokeFetch("assistants", {
10
- method: "get",
11
- pathTemplate: "/api/v1/assistants",
12
- query,
13
- options
14
- });
15
- var createAssistant = async (body, options) => invokeFetch("assistants", {
16
- method: "post",
17
- pathTemplate: "/api/v1/assistants",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getAssistantFeedback = async (assistantId, options) => invokeFetch("assistants", {
23
- method: "get",
24
- pathTemplate: "/api/v1/assistants/{assistantId}/feedback",
25
- pathVariables: { assistantId },
26
- options
27
- });
28
- var getAssistantSources = async (assistantId, body, options) => invokeFetch("assistants", {
29
- method: "post",
30
- pathTemplate: "/api/v1/assistants/{assistantId}/sources/plaintexts",
31
- pathVariables: { assistantId },
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var getAssistantStarters = async (assistantId, query, options) => invokeFetch("assistants", {
37
- method: "get",
38
- pathTemplate: "/api/v1/assistants/{assistantId}/starters",
39
- pathVariables: { assistantId },
40
- query,
41
- options
42
- });
43
- var createAssistantStarter = async (assistantId, body, options) => invokeFetch("assistants", {
44
- method: "post",
45
- pathTemplate: "/api/v1/assistants/{assistantId}/starters",
46
- pathVariables: { assistantId },
47
- body,
48
- contentType: "application/json",
49
- options
50
- });
51
- var deleteAssistantStarter = async (assistantId, starterId, options) => invokeFetch("assistants", {
52
- method: "delete",
53
- pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
54
- pathVariables: { assistantId, starterId },
55
- options
56
- });
57
- var getAssistantStarter = async (assistantId, starterId, options) => invokeFetch("assistants", {
58
- method: "get",
59
- pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
60
- pathVariables: { assistantId, starterId },
61
- options
62
- });
63
- var updateAssistantStarter = async (assistantId, starterId, body, options) => invokeFetch("assistants", {
64
- method: "put",
65
- pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
66
- pathVariables: { assistantId, starterId },
67
- body,
68
- contentType: "application/json",
69
- options
70
- });
71
- var deleteAssistantStarterFollowup = async (assistantId, starterId, followupId, options) => invokeFetch("assistants", {
72
- method: "delete",
73
- pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}/followups/{followupId}",
74
- pathVariables: { assistantId, starterId, followupId },
75
- options
76
- });
77
- var updateAssistantStarterFollowup = async (assistantId, starterId, followupId, body, options) => invokeFetch("assistants", {
78
- method: "put",
79
- pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}/followups/{followupId}",
80
- pathVariables: { assistantId, starterId, followupId },
81
- body,
82
- contentType: "application/json",
83
- options
84
- });
85
- var getAssistantThreads = async (assistantId, query, options) => invokeFetch("assistants", {
86
- method: "get",
87
- pathTemplate: "/api/v1/assistants/{assistantId}/threads",
88
- pathVariables: { assistantId },
89
- query,
90
- options
91
- });
92
- var createAssistantThread = async (assistantId, body, options) => invokeFetch("assistants", {
93
- method: "post",
94
- pathTemplate: "/api/v1/assistants/{assistantId}/threads",
95
- pathVariables: { assistantId },
96
- body,
97
- contentType: "application/json",
98
- options
99
- });
100
- var invokeAssistantThread = async (assistantId, threadId, body, options) => invokeFetch("assistants", {
101
- method: "post",
102
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/actions/invoke",
103
- pathVariables: { assistantId, threadId },
104
- body,
105
- contentType: "application/json",
106
- options
107
- });
108
- var streamAssistantThread = async (assistantId, threadId, body, options) => invokeFetch("assistants", {
109
- method: "post",
110
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/actions/stream",
111
- pathVariables: { assistantId, threadId },
112
- body,
113
- contentType: "application/json",
114
- options
115
- });
116
- var getAssistantThreadInteractions = async (assistantId, threadId, query, options) => invokeFetch("assistants", {
117
- method: "get",
118
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions",
119
- pathVariables: { assistantId, threadId },
120
- query,
121
- options
122
- });
123
- var createAssistantThreadInteraction = async (assistantId, threadId, body, options) => invokeFetch("assistants", {
124
- method: "post",
125
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions",
126
- pathVariables: { assistantId, threadId },
127
- body,
128
- contentType: "application/json",
129
- options
130
- });
131
- var deleteAssistantThreadInteraction = async (assistantId, threadId, interactionId, options) => invokeFetch("assistants", {
132
- method: "delete",
133
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}",
134
- pathVariables: { assistantId, threadId, interactionId },
135
- options
136
- });
137
- var getAssistantThreadInteraction = async (assistantId, threadId, interactionId, options) => invokeFetch("assistants", {
138
- method: "get",
139
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}",
140
- pathVariables: { assistantId, threadId, interactionId },
141
- options
142
- });
143
- var createAssistantThreadInteractionFeedback = async (assistantId, threadId, interactionId, body, options) => invokeFetch("assistants", {
144
- method: "post",
145
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/feedback",
146
- pathVariables: { assistantId, threadId, interactionId },
147
- body,
148
- contentType: "application/json",
149
- options
150
- });
151
- var patchAssistantThreadInteractionFeedback = async (assistantId, threadId, interactionId, feedbackId, body, options) => invokeFetch("assistants", {
152
- method: "patch",
153
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/feedback/{feedbackId}",
154
- pathVariables: { assistantId, threadId, interactionId, feedbackId },
155
- body,
156
- contentType: "application/json",
157
- options
158
- });
159
- var createAssistantThreadInteractionReview = async (assistantId, threadId, interactionId, body, options) => invokeFetch("assistants", {
160
- method: "post",
161
- pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/reviews",
162
- pathVariables: { assistantId, threadId, interactionId },
163
- body,
164
- contentType: "application/json",
165
- options
166
- });
167
- var deleteAssistantThread = async (assistantid, threadid, options) => invokeFetch("assistants", {
168
- method: "delete",
169
- pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
170
- pathVariables: { assistantid, threadid },
171
- options
172
- });
173
- var getAssistantThread = async (assistantid, threadid, options) => invokeFetch("assistants", {
174
- method: "get",
175
- pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
176
- pathVariables: { assistantid, threadid },
177
- options
178
- });
179
- var patchAssistantThread = async (assistantid, threadid, body, options) => invokeFetch("assistants", {
180
- method: "patch",
181
- pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
182
- pathVariables: { assistantid, threadid },
183
- body,
184
- contentType: "application/json",
185
- options
186
- });
187
- var deleteAssistant = async (id, options) => invokeFetch("assistants", {
188
- method: "delete",
189
- pathTemplate: "/api/v1/assistants/{id}",
190
- pathVariables: { id },
191
- options
192
- });
193
- var getAssistant = async (id, options) => invokeFetch("assistants", {
194
- method: "get",
195
- pathTemplate: "/api/v1/assistants/{id}",
196
- pathVariables: { id },
197
- options
198
- });
199
- var patchAssistant = async (id, body, options) => invokeFetch("assistants", {
200
- method: "patch",
201
- pathTemplate: "/api/v1/assistants/{id}",
202
- pathVariables: { id },
203
- body,
204
- contentType: "application/json",
205
- options
206
- });
9
+ async function getAssistants(query, options) {
10
+ return invokeFetch("assistants", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/assistants",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createAssistant(body, options) {
18
+ return invokeFetch("assistants", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/assistants",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function getAssistantFeedback(assistantId, options) {
27
+ return invokeFetch("assistants", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/assistants/{assistantId}/feedback",
30
+ pathVariables: { assistantId },
31
+ options
32
+ });
33
+ }
34
+ async function getAssistantSources(assistantId, body, options) {
35
+ return invokeFetch("assistants", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/assistants/{assistantId}/sources/plaintexts",
38
+ pathVariables: { assistantId },
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function getAssistantStarters(assistantId, query, options) {
45
+ return invokeFetch("assistants", {
46
+ method: "get",
47
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters",
48
+ pathVariables: { assistantId },
49
+ query,
50
+ options
51
+ });
52
+ }
53
+ async function createAssistantStarter(assistantId, body, options) {
54
+ return invokeFetch("assistants", {
55
+ method: "post",
56
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters",
57
+ pathVariables: { assistantId },
58
+ body,
59
+ contentType: "application/json",
60
+ options
61
+ });
62
+ }
63
+ async function deleteAssistantStarter(assistantId, starterId, options) {
64
+ return invokeFetch("assistants", {
65
+ method: "delete",
66
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
67
+ pathVariables: { assistantId, starterId },
68
+ options
69
+ });
70
+ }
71
+ async function getAssistantStarter(assistantId, starterId, options) {
72
+ return invokeFetch("assistants", {
73
+ method: "get",
74
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
75
+ pathVariables: { assistantId, starterId },
76
+ options
77
+ });
78
+ }
79
+ async function updateAssistantStarter(assistantId, starterId, body, options) {
80
+ return invokeFetch("assistants", {
81
+ method: "put",
82
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}",
83
+ pathVariables: { assistantId, starterId },
84
+ body,
85
+ contentType: "application/json",
86
+ options
87
+ });
88
+ }
89
+ async function deleteAssistantStarterFollowup(assistantId, starterId, followupId, options) {
90
+ return invokeFetch("assistants", {
91
+ method: "delete",
92
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}/followups/{followupId}",
93
+ pathVariables: { assistantId, starterId, followupId },
94
+ options
95
+ });
96
+ }
97
+ async function updateAssistantStarterFollowup(assistantId, starterId, followupId, body, options) {
98
+ return invokeFetch("assistants", {
99
+ method: "put",
100
+ pathTemplate: "/api/v1/assistants/{assistantId}/starters/{starterId}/followups/{followupId}",
101
+ pathVariables: { assistantId, starterId, followupId },
102
+ body,
103
+ contentType: "application/json",
104
+ options
105
+ });
106
+ }
107
+ async function getAssistantThreads(assistantId, query, options) {
108
+ return invokeFetch("assistants", {
109
+ method: "get",
110
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads",
111
+ pathVariables: { assistantId },
112
+ query,
113
+ options
114
+ });
115
+ }
116
+ async function createAssistantThread(assistantId, body, options) {
117
+ return invokeFetch("assistants", {
118
+ method: "post",
119
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads",
120
+ pathVariables: { assistantId },
121
+ body,
122
+ contentType: "application/json",
123
+ options
124
+ });
125
+ }
126
+ async function invokeAssistantThread(assistantId, threadId, body, options) {
127
+ return invokeFetch("assistants", {
128
+ method: "post",
129
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/actions/invoke",
130
+ pathVariables: { assistantId, threadId },
131
+ body,
132
+ contentType: "application/json",
133
+ options
134
+ });
135
+ }
136
+ async function streamAssistantThread(assistantId, threadId, body, options) {
137
+ return invokeFetch("assistants", {
138
+ method: "post",
139
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/actions/stream",
140
+ pathVariables: { assistantId, threadId },
141
+ body,
142
+ contentType: "application/json",
143
+ options
144
+ });
145
+ }
146
+ async function getAssistantThreadInteractions(assistantId, threadId, query, options) {
147
+ return invokeFetch("assistants", {
148
+ method: "get",
149
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions",
150
+ pathVariables: { assistantId, threadId },
151
+ query,
152
+ options
153
+ });
154
+ }
155
+ async function createAssistantThreadInteraction(assistantId, threadId, body, options) {
156
+ return invokeFetch("assistants", {
157
+ method: "post",
158
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions",
159
+ pathVariables: { assistantId, threadId },
160
+ body,
161
+ contentType: "application/json",
162
+ options
163
+ });
164
+ }
165
+ async function deleteAssistantThreadInteraction(assistantId, threadId, interactionId, options) {
166
+ return invokeFetch("assistants", {
167
+ method: "delete",
168
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}",
169
+ pathVariables: { assistantId, threadId, interactionId },
170
+ options
171
+ });
172
+ }
173
+ async function getAssistantThreadInteraction(assistantId, threadId, interactionId, options) {
174
+ return invokeFetch("assistants", {
175
+ method: "get",
176
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}",
177
+ pathVariables: { assistantId, threadId, interactionId },
178
+ options
179
+ });
180
+ }
181
+ async function createAssistantThreadInteractionFeedback(assistantId, threadId, interactionId, body, options) {
182
+ return invokeFetch("assistants", {
183
+ method: "post",
184
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/feedback",
185
+ pathVariables: { assistantId, threadId, interactionId },
186
+ body,
187
+ contentType: "application/json",
188
+ options
189
+ });
190
+ }
191
+ async function patchAssistantThreadInteractionFeedback(assistantId, threadId, interactionId, feedbackId, body, options) {
192
+ return invokeFetch("assistants", {
193
+ method: "patch",
194
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/feedback/{feedbackId}",
195
+ pathVariables: { assistantId, threadId, interactionId, feedbackId },
196
+ body,
197
+ contentType: "application/json",
198
+ options
199
+ });
200
+ }
201
+ async function createAssistantThreadInteractionReview(assistantId, threadId, interactionId, body, options) {
202
+ return invokeFetch("assistants", {
203
+ method: "post",
204
+ pathTemplate: "/api/v1/assistants/{assistantId}/threads/{threadId}/interactions/{interactionId}/reviews",
205
+ pathVariables: { assistantId, threadId, interactionId },
206
+ body,
207
+ contentType: "application/json",
208
+ options
209
+ });
210
+ }
211
+ async function deleteAssistantThread(assistantid, threadid, options) {
212
+ return invokeFetch("assistants", {
213
+ method: "delete",
214
+ pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
215
+ pathVariables: { assistantid, threadid },
216
+ options
217
+ });
218
+ }
219
+ async function getAssistantThread(assistantid, threadid, options) {
220
+ return invokeFetch("assistants", {
221
+ method: "get",
222
+ pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
223
+ pathVariables: { assistantid, threadid },
224
+ options
225
+ });
226
+ }
227
+ async function patchAssistantThread(assistantid, threadid, body, options) {
228
+ return invokeFetch("assistants", {
229
+ method: "patch",
230
+ pathTemplate: "/api/v1/assistants/{assistantid}/threads/{threadid}",
231
+ pathVariables: { assistantid, threadid },
232
+ body,
233
+ contentType: "application/json",
234
+ options
235
+ });
236
+ }
237
+ async function deleteAssistant(id, options) {
238
+ return invokeFetch("assistants", {
239
+ method: "delete",
240
+ pathTemplate: "/api/v1/assistants/{id}",
241
+ pathVariables: { id },
242
+ options
243
+ });
244
+ }
245
+ async function getAssistant(id, options) {
246
+ return invokeFetch("assistants", {
247
+ method: "get",
248
+ pathTemplate: "/api/v1/assistants/{id}",
249
+ pathVariables: { id },
250
+ options
251
+ });
252
+ }
253
+ async function patchAssistant(id, body, options) {
254
+ return invokeFetch("assistants", {
255
+ method: "patch",
256
+ pathTemplate: "/api/v1/assistants/{id}",
257
+ pathVariables: { id },
258
+ body,
259
+ contentType: "application/json",
260
+ options
261
+ });
262
+ }
207
263
  function clearCache() {
208
264
  return clearApiCache("assistants");
209
265
  }
package/audits.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type ArchiveItem = {
5
5
  /** The type that content is encoded in, always "application/json". */
@@ -116,7 +116,7 @@ type Href = {
116
116
  * @param query an object with query parameters
117
117
  * @throws GetAuditsHttpError
118
118
  */
119
- declare const getAudits: (query: {
119
+ declare function getAudits(query: {
120
120
  /** The start/end time interval formatted in ISO 8601 to search by eventTime. For example, "?eventTime=2021-07-14T18:41:15.00Z/2021-07-14T18:41:15.99Z". */
121
121
  eventTime?: string;
122
122
  /** The case-sensitive string used to search by eventType. Retrieve a list of possible eventTypes with `/v1/audits/types`. */
@@ -135,7 +135,7 @@ declare const getAudits: (query: {
135
135
  source?: string;
136
136
  /** The case-sensitive string used to search by userId. */
137
137
  userId?: string;
138
- }, options?: ApiCallOptions) => Promise<GetAuditsHttpResponse>;
138
+ }, options?: ApiCallOptions): Promise<GetAuditsHttpResponse>;
139
139
  type GetAuditsHttpResponse = {
140
140
  data: GetResult;
141
141
  headers: Headers;
@@ -154,10 +154,10 @@ type GetAuditsHttpError = {
154
154
  * @param query an object with query parameters
155
155
  * @throws GetArchivedAuditsHttpError
156
156
  */
157
- declare const getArchivedAudits: (query: {
157
+ declare function getArchivedAudits(query: {
158
158
  /** Date to be used as filter and criteria during extraction. */
159
159
  date: string;
160
- }, options?: ApiCallOptions) => Promise<GetArchivedAuditsHttpResponse>;
160
+ }, options?: ApiCallOptions): Promise<GetArchivedAuditsHttpResponse>;
161
161
  type GetArchivedAuditsHttpResponse = {
162
162
  data: GetArchiveResult;
163
163
  headers: Headers;
@@ -173,7 +173,7 @@ type GetArchivedAuditsHttpError = {
173
173
  *
174
174
  * @throws GetAuditsSettingsHttpError
175
175
  */
176
- declare const getAuditsSettings: (options?: ApiCallOptions) => Promise<GetAuditsSettingsHttpResponse>;
176
+ declare function getAuditsSettings(options?: ApiCallOptions): Promise<GetAuditsSettingsHttpResponse>;
177
177
  type GetAuditsSettingsHttpResponse = {
178
178
  data: GetSettingsResult;
179
179
  headers: Headers;
@@ -189,7 +189,7 @@ type GetAuditsSettingsHttpError = {
189
189
  *
190
190
  * @throws GetAuditSourcesHttpError
191
191
  */
192
- declare const getAuditSources: (options?: ApiCallOptions) => Promise<GetAuditSourcesHttpResponse>;
192
+ declare function getAuditSources(options?: ApiCallOptions): Promise<GetAuditSourcesHttpResponse>;
193
193
  type GetAuditSourcesHttpResponse = {
194
194
  data: GetObjectsResult;
195
195
  headers: Headers;
@@ -207,7 +207,7 @@ type GetAuditSourcesHttpError = {
207
207
  *
208
208
  * @throws GetAuditTypesHttpError
209
209
  */
210
- declare const getAuditTypes: (options?: ApiCallOptions) => Promise<GetAuditTypesHttpResponse>;
210
+ declare function getAuditTypes(options?: ApiCallOptions): Promise<GetAuditTypesHttpResponse>;
211
211
  type GetAuditTypesHttpResponse = {
212
212
  data: GetObjectsResult;
213
213
  headers: Headers;
@@ -226,7 +226,7 @@ type GetAuditTypesHttpError = {
226
226
  * @param id The audit item's unique identifier.
227
227
  * @throws GetAuditHttpError
228
228
  */
229
- declare const getAudit: (id: string, options?: ApiCallOptions) => Promise<GetAuditHttpResponse>;
229
+ declare function getAudit(id: string, options?: ApiCallOptions): Promise<GetAuditHttpResponse>;
230
230
  type GetAuditHttpResponse = {
231
231
  data: GetByIDResult;
232
232
  headers: Headers;
package/audits.js CHANGED
@@ -1,44 +1,56 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/audits.ts
9
- var getAudits = async (query, options) => invokeFetch("audits", {
10
- method: "get",
11
- pathTemplate: "/api/v1/audits",
12
- query,
13
- options
14
- });
15
- var getArchivedAudits = async (query, options) => invokeFetch("audits", {
16
- method: "get",
17
- pathTemplate: "/api/v1/audits/archive",
18
- query,
19
- options
20
- });
21
- var getAuditsSettings = async (options) => invokeFetch("audits", {
22
- method: "get",
23
- pathTemplate: "/api/v1/audits/settings",
24
- options
25
- });
26
- var getAuditSources = async (options) => invokeFetch("audits", {
27
- method: "get",
28
- pathTemplate: "/api/v1/audits/sources",
29
- options
30
- });
31
- var getAuditTypes = async (options) => invokeFetch("audits", {
32
- method: "get",
33
- pathTemplate: "/api/v1/audits/types",
34
- options
35
- });
36
- var getAudit = async (id, options) => invokeFetch("audits", {
37
- method: "get",
38
- pathTemplate: "/api/v1/audits/{id}",
39
- pathVariables: { id },
40
- options
41
- });
9
+ async function getAudits(query, options) {
10
+ return invokeFetch("audits", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/audits",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function getArchivedAudits(query, options) {
18
+ return invokeFetch("audits", {
19
+ method: "get",
20
+ pathTemplate: "/api/v1/audits/archive",
21
+ query,
22
+ options
23
+ });
24
+ }
25
+ async function getAuditsSettings(options) {
26
+ return invokeFetch("audits", {
27
+ method: "get",
28
+ pathTemplate: "/api/v1/audits/settings",
29
+ options
30
+ });
31
+ }
32
+ async function getAuditSources(options) {
33
+ return invokeFetch("audits", {
34
+ method: "get",
35
+ pathTemplate: "/api/v1/audits/sources",
36
+ options
37
+ });
38
+ }
39
+ async function getAuditTypes(options) {
40
+ return invokeFetch("audits", {
41
+ method: "get",
42
+ pathTemplate: "/api/v1/audits/types",
43
+ options
44
+ });
45
+ }
46
+ async function getAudit(id, options) {
47
+ return invokeFetch("audits", {
48
+ method: "get",
49
+ pathTemplate: "/api/v1/audits/{id}",
50
+ pathVariables: { id },
51
+ options
52
+ });
53
+ }
42
54
  function clearCache() {
43
55
  return clearApiCache("audits");
44
56
  }