@qlik/api 1.32.0 → 1.34.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 +13 -12
  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 +29 -29
  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/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  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 +102 -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 +16 -14
  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 +238 -60
  91. package/ml.js +391 -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 +27 -23
  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/conditions.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 APISettings = {
5
5
  /** Whether API endpoints for condition manager are enabled */
@@ -380,7 +380,7 @@ type SingleErrorResponse = {
380
380
  * @param body an object with the body content
381
381
  * @throws CreateConditionHttpError
382
382
  */
383
- declare const createCondition: (body: ConditionCreateRequest, options?: ApiCallOptions) => Promise<CreateConditionHttpResponse>;
383
+ declare function createCondition(body: ConditionCreateRequest, options?: ApiCallOptions): Promise<CreateConditionHttpResponse>;
384
384
  type CreateConditionHttpResponse = {
385
385
  data: ConditionResponse;
386
386
  headers: Headers;
@@ -397,7 +397,7 @@ type CreateConditionHttpError = {
397
397
  * @param body an object with the body content
398
398
  * @throws CreateConditionPreviewHttpError
399
399
  */
400
- declare const createConditionPreview: (body: ConditionCreateRequest, options?: ApiCallOptions) => Promise<CreateConditionPreviewHttpResponse>;
400
+ declare function createConditionPreview(body: ConditionCreateRequest, options?: ApiCallOptions): Promise<CreateConditionPreviewHttpResponse>;
401
401
  type CreateConditionPreviewHttpResponse = {
402
402
  data: PreviewResponse;
403
403
  headers: Headers;
@@ -414,7 +414,7 @@ type CreateConditionPreviewHttpError = {
414
414
  * @param id The id of the condition
415
415
  * @throws GetConditionPreviewHttpError
416
416
  */
417
- declare const getConditionPreview: (id: string, options?: ApiCallOptions) => Promise<GetConditionPreviewHttpResponse>;
417
+ declare function getConditionPreview(id: string, options?: ApiCallOptions): Promise<GetConditionPreviewHttpResponse>;
418
418
  type GetConditionPreviewHttpResponse = {
419
419
  data: PreviewStatusResponse;
420
420
  headers: Headers;
@@ -430,7 +430,7 @@ type GetConditionPreviewHttpError = {
430
430
  *
431
431
  * @throws GetConditionsSettingsHttpError
432
432
  */
433
- declare const getConditionsSettings: (options?: ApiCallOptions) => Promise<GetConditionsSettingsHttpResponse>;
433
+ declare function getConditionsSettings(options?: ApiCallOptions): Promise<GetConditionsSettingsHttpResponse>;
434
434
  type GetConditionsSettingsHttpResponse = {
435
435
  data: APISettings;
436
436
  headers: Headers;
@@ -447,7 +447,7 @@ type GetConditionsSettingsHttpError = {
447
447
  * @param body an object with the body content
448
448
  * @throws SetConditionsSettingsHttpError
449
449
  */
450
- declare const setConditionsSettings: (body: APISettingsUpload, options?: ApiCallOptions) => Promise<SetConditionsSettingsHttpResponse>;
450
+ declare function setConditionsSettings(body: APISettingsUpload, options?: ApiCallOptions): Promise<SetConditionsSettingsHttpResponse>;
451
451
  type SetConditionsSettingsHttpResponse = {
452
452
  data: void;
453
453
  headers: Headers;
@@ -464,7 +464,7 @@ type SetConditionsSettingsHttpError = {
464
464
  * @param id The id of the condition
465
465
  * @throws DeleteConditionHttpError
466
466
  */
467
- declare const deleteCondition: (id: string, options?: ApiCallOptions) => Promise<DeleteConditionHttpResponse>;
467
+ declare function deleteCondition(id: string, options?: ApiCallOptions): Promise<DeleteConditionHttpResponse>;
468
468
  type DeleteConditionHttpResponse = {
469
469
  data: void;
470
470
  headers: Headers;
@@ -481,7 +481,7 @@ type DeleteConditionHttpError = {
481
481
  * @param id The id of the condition
482
482
  * @throws GetConditionHttpError
483
483
  */
484
- declare const getCondition: (id: string, options?: ApiCallOptions) => Promise<GetConditionHttpResponse>;
484
+ declare function getCondition(id: string, options?: ApiCallOptions): Promise<GetConditionHttpResponse>;
485
485
  type GetConditionHttpResponse = {
486
486
  data: Condition;
487
487
  headers: Headers;
@@ -499,7 +499,7 @@ type GetConditionHttpError = {
499
499
  * @param body an object with the body content
500
500
  * @throws PatchConditionHttpError
501
501
  */
502
- declare const patchCondition: (id: string, body: ConditionPatch, options?: ApiCallOptions) => Promise<PatchConditionHttpResponse>;
502
+ declare function patchCondition(id: string, body: ConditionPatch, options?: ApiCallOptions): Promise<PatchConditionHttpResponse>;
503
503
  type PatchConditionHttpResponse = {
504
504
  data: void;
505
505
  headers: Headers;
@@ -517,7 +517,7 @@ type PatchConditionHttpError = {
517
517
  * @param body an object with the body content
518
518
  * @throws CreateConditionEvaluationHttpError
519
519
  */
520
- declare const createConditionEvaluation: (id: string, body: CreateEvaluationRequest, options?: ApiCallOptions) => Promise<CreateConditionEvaluationHttpResponse>;
520
+ declare function createConditionEvaluation(id: string, body: CreateEvaluationRequest, options?: ApiCallOptions): Promise<CreateConditionEvaluationHttpResponse>;
521
521
  type CreateConditionEvaluationHttpResponse = {
522
522
  data: CreateEvaluationResponse;
523
523
  headers: Headers;
@@ -535,7 +535,7 @@ type CreateConditionEvaluationHttpError = {
535
535
  * @param evaluationId The id of the evaluation
536
536
  * @throws DeleteConditionEvaluationHttpError
537
537
  */
538
- declare const deleteConditionEvaluation: (id: string, evaluationId: string, options?: ApiCallOptions) => Promise<DeleteConditionEvaluationHttpResponse>;
538
+ declare function deleteConditionEvaluation(id: string, evaluationId: string, options?: ApiCallOptions): Promise<DeleteConditionEvaluationHttpResponse>;
539
539
  type DeleteConditionEvaluationHttpResponse = {
540
540
  data: void;
541
541
  headers: Headers;
@@ -553,7 +553,7 @@ type DeleteConditionEvaluationHttpError = {
553
553
  * @param evaluationId The id of the evaluation
554
554
  * @throws GetConditionEvaluationHttpError
555
555
  */
556
- declare const getConditionEvaluation: (id: string, evaluationId: string, options?: ApiCallOptions) => Promise<GetConditionEvaluationHttpResponse>;
556
+ declare function getConditionEvaluation(id: string, evaluationId: string, options?: ApiCallOptions): Promise<GetConditionEvaluationHttpResponse>;
557
557
  type GetConditionEvaluationHttpResponse = {
558
558
  data: GetEvaluationResponse;
559
559
  headers: Headers;
package/conditions.js CHANGED
@@ -1,83 +1,105 @@
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/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/conditions.ts
9
- var createCondition = async (body, options) => invokeFetch("conditions", {
10
- method: "post",
11
- pathTemplate: "/api/v1/conditions",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var createConditionPreview = async (body, options) => invokeFetch("conditions", {
17
- method: "post",
18
- pathTemplate: "/api/v1/conditions/previews",
19
- body,
20
- contentType: "application/json",
21
- options
22
- });
23
- var getConditionPreview = async (id, options) => invokeFetch("conditions", {
24
- method: "get",
25
- pathTemplate: "/api/v1/conditions/previews/{id}",
26
- pathVariables: { id },
27
- options
28
- });
29
- var getConditionsSettings = async (options) => invokeFetch("conditions", {
30
- method: "get",
31
- pathTemplate: "/api/v1/conditions/settings",
32
- options
33
- });
34
- var setConditionsSettings = async (body, options) => invokeFetch("conditions", {
35
- method: "put",
36
- pathTemplate: "/api/v1/conditions/settings",
37
- body,
38
- contentType: "application/json",
39
- options
40
- });
41
- var deleteCondition = async (id, options) => invokeFetch("conditions", {
42
- method: "delete",
43
- pathTemplate: "/api/v1/conditions/{id}",
44
- pathVariables: { id },
45
- options
46
- });
47
- var getCondition = async (id, options) => invokeFetch("conditions", {
48
- method: "get",
49
- pathTemplate: "/api/v1/conditions/{id}",
50
- pathVariables: { id },
51
- options
52
- });
53
- var patchCondition = async (id, body, options) => invokeFetch("conditions", {
54
- method: "patch",
55
- pathTemplate: "/api/v1/conditions/{id}",
56
- pathVariables: { id },
57
- body,
58
- contentType: "application/json",
59
- options
60
- });
61
- var createConditionEvaluation = async (id, body, options) => invokeFetch("conditions", {
62
- method: "post",
63
- pathTemplate: "/api/v1/conditions/{id}/evaluations",
64
- pathVariables: { id },
65
- body,
66
- contentType: "application/json",
67
- options
68
- });
69
- var deleteConditionEvaluation = async (id, evaluationId, options) => invokeFetch("conditions", {
70
- method: "delete",
71
- pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
72
- pathVariables: { id, evaluationId },
73
- options
74
- });
75
- var getConditionEvaluation = async (id, evaluationId, options) => invokeFetch("conditions", {
76
- method: "get",
77
- pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
78
- pathVariables: { id, evaluationId },
79
- options
80
- });
9
+ async function createCondition(body, options) {
10
+ return invokeFetch("conditions", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/conditions",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function createConditionPreview(body, options) {
19
+ return invokeFetch("conditions", {
20
+ method: "post",
21
+ pathTemplate: "/api/v1/conditions/previews",
22
+ body,
23
+ contentType: "application/json",
24
+ options
25
+ });
26
+ }
27
+ async function getConditionPreview(id, options) {
28
+ return invokeFetch("conditions", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/conditions/previews/{id}",
31
+ pathVariables: { id },
32
+ options
33
+ });
34
+ }
35
+ async function getConditionsSettings(options) {
36
+ return invokeFetch("conditions", {
37
+ method: "get",
38
+ pathTemplate: "/api/v1/conditions/settings",
39
+ options
40
+ });
41
+ }
42
+ async function setConditionsSettings(body, options) {
43
+ return invokeFetch("conditions", {
44
+ method: "put",
45
+ pathTemplate: "/api/v1/conditions/settings",
46
+ body,
47
+ contentType: "application/json",
48
+ options
49
+ });
50
+ }
51
+ async function deleteCondition(id, options) {
52
+ return invokeFetch("conditions", {
53
+ method: "delete",
54
+ pathTemplate: "/api/v1/conditions/{id}",
55
+ pathVariables: { id },
56
+ options
57
+ });
58
+ }
59
+ async function getCondition(id, options) {
60
+ return invokeFetch("conditions", {
61
+ method: "get",
62
+ pathTemplate: "/api/v1/conditions/{id}",
63
+ pathVariables: { id },
64
+ options
65
+ });
66
+ }
67
+ async function patchCondition(id, body, options) {
68
+ return invokeFetch("conditions", {
69
+ method: "patch",
70
+ pathTemplate: "/api/v1/conditions/{id}",
71
+ pathVariables: { id },
72
+ body,
73
+ contentType: "application/json",
74
+ options
75
+ });
76
+ }
77
+ async function createConditionEvaluation(id, body, options) {
78
+ return invokeFetch("conditions", {
79
+ method: "post",
80
+ pathTemplate: "/api/v1/conditions/{id}/evaluations",
81
+ pathVariables: { id },
82
+ body,
83
+ contentType: "application/json",
84
+ options
85
+ });
86
+ }
87
+ async function deleteConditionEvaluation(id, evaluationId, options) {
88
+ return invokeFetch("conditions", {
89
+ method: "delete",
90
+ pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
91
+ pathVariables: { id, evaluationId },
92
+ options
93
+ });
94
+ }
95
+ async function getConditionEvaluation(id, evaluationId, options) {
96
+ return invokeFetch("conditions", {
97
+ method: "get",
98
+ pathTemplate: "/api/v1/conditions/{id}/evaluations/{evaluationId}",
99
+ pathVariables: { id, evaluationId },
100
+ options
101
+ });
102
+ }
81
103
  function clearCache() {
82
104
  return clearApiCache("conditions");
83
105
  }
package/consumption.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 Enforcement = {
5
5
  /** Resource action type to be blocked */
@@ -125,7 +125,7 @@ type StandardListResponseProps = {
125
125
  * @param query an object with query parameters
126
126
  * @throws GetConsumptionExecutionsHttpError
127
127
  */
128
- declare const getConsumptionExecutions: (query: {
128
+ declare function getConsumptionExecutions(query: {
129
129
  actionToBlock?: string;
130
130
  /** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax.
131
131
  *
@@ -144,7 +144,7 @@ declare const getConsumptionExecutions: (query: {
144
144
  /** Specifies which periods to include regardless of the period type, start and end specified */
145
145
  periodsToInclude?: ("current" | "previous")[];
146
146
  sort?: ("periodstart" | "-periodstart" | "+periodstart" | "periodend" | "-periodend" | "+periodend")[];
147
- }, options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
147
+ }, options?: ApiCallOptions): Promise<GetConsumptionExecutionsHttpResponse>;
148
148
  type GetConsumptionExecutionsHttpResponse = {
149
149
  data: ExecutionsByTenantList;
150
150
  headers: Headers;
package/consumption.js CHANGED
@@ -1,17 +1,19 @@
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/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/consumption.ts
9
- var getConsumptionExecutions = async (query, options) => invokeFetch("consumption", {
10
- method: "get",
11
- pathTemplate: "/api/v1/consumption/executions",
12
- query,
13
- options
14
- });
9
+ async function getConsumptionExecutions(query, options) {
10
+ return invokeFetch("consumption", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/consumption/executions",
13
+ query,
14
+ options
15
+ });
16
+ }
15
17
  function clearCache() {
16
18
  return clearApiCache("consumption");
17
19
  }
package/csp-origins.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 CSPEntry = {
5
5
  /** The CSP entry's unique identifier. */
@@ -76,7 +76,7 @@ type Link = {
76
76
  * @param query an object with query parameters
77
77
  * @throws GetCSPEntriesHttpError
78
78
  */
79
- declare const getCSPEntries: (query: {
79
+ declare function getCSPEntries(query: {
80
80
  /** Filter resources by directive 'childSrc', true/false. */
81
81
  childSrc?: boolean;
82
82
  /** Filter resources by directive 'connectSrc', true/false. */
@@ -115,7 +115,7 @@ declare const getCSPEntries: (query: {
115
115
  styleSrc?: boolean;
116
116
  /** Filter resources by directive 'workerSrc', true/false. */
117
117
  workerSrc?: boolean;
118
- }, options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
118
+ }, options?: ApiCallOptions): Promise<GetCSPEntriesHttpResponse>;
119
119
  type GetCSPEntriesHttpResponse = {
120
120
  data: CSPEntryList;
121
121
  headers: Headers;
@@ -134,7 +134,7 @@ type GetCSPEntriesHttpError = {
134
134
  * @param body an object with the body content
135
135
  * @throws CreateCSPEntryHttpError
136
136
  */
137
- declare const createCSPEntry: (body: CSPEntryContent, options?: ApiCallOptions) => Promise<CreateCSPEntryHttpResponse>;
137
+ declare function createCSPEntry(body: CSPEntryContent, options?: ApiCallOptions): Promise<CreateCSPEntryHttpResponse>;
138
138
  type CreateCSPEntryHttpResponse = {
139
139
  data: CSPEntry;
140
140
  headers: Headers;
@@ -150,7 +150,7 @@ type CreateCSPEntryHttpError = {
150
150
  *
151
151
  * @throws GetCSPHeaderHttpError
152
152
  */
153
- declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
153
+ declare function getCSPHeader(options?: ApiCallOptions): Promise<GetCSPHeaderHttpResponse>;
154
154
  type GetCSPHeaderHttpResponse = {
155
155
  data: CSPHeader;
156
156
  headers: Headers;
@@ -167,7 +167,7 @@ type GetCSPHeaderHttpError = {
167
167
  * @param id The CSP entry's unique identifier.
168
168
  * @throws DeleteCSPEntryHttpError
169
169
  */
170
- declare const deleteCSPEntry: (id: string, options?: ApiCallOptions) => Promise<DeleteCSPEntryHttpResponse>;
170
+ declare function deleteCSPEntry(id: string, options?: ApiCallOptions): Promise<DeleteCSPEntryHttpResponse>;
171
171
  type DeleteCSPEntryHttpResponse = {
172
172
  data: void;
173
173
  headers: Headers;
@@ -184,7 +184,7 @@ type DeleteCSPEntryHttpError = {
184
184
  * @param id The CSP entry's unique identifier.
185
185
  * @throws GetCSPEntryHttpError
186
186
  */
187
- declare const getCSPEntry: (id: string, options?: ApiCallOptions) => Promise<GetCSPEntryHttpResponse>;
187
+ declare function getCSPEntry(id: string, options?: ApiCallOptions): Promise<GetCSPEntryHttpResponse>;
188
188
  type GetCSPEntryHttpResponse = {
189
189
  data: CSPEntry;
190
190
  headers: Headers;
@@ -202,7 +202,7 @@ type GetCSPEntryHttpError = {
202
202
  * @param body an object with the body content
203
203
  * @throws UpdateCSPEntryHttpError
204
204
  */
205
- declare const updateCSPEntry: (id: string, body: CSPEntryContent, options?: ApiCallOptions) => Promise<UpdateCSPEntryHttpResponse>;
205
+ declare function updateCSPEntry(id: string, body: CSPEntryContent, options?: ApiCallOptions): Promise<UpdateCSPEntryHttpResponse>;
206
206
  type UpdateCSPEntryHttpResponse = {
207
207
  data: CSPEntry;
208
208
  headers: Headers;
package/csp-origins.js CHANGED
@@ -1,49 +1,61 @@
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/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/csp-origins.ts
9
- var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
10
- method: "get",
11
- pathTemplate: "/api/v1/csp-origins",
12
- query,
13
- options
14
- });
15
- var createCSPEntry = async (body, options) => invokeFetch("csp-origins", {
16
- method: "post",
17
- pathTemplate: "/api/v1/csp-origins",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getCSPHeader = async (options) => invokeFetch("csp-origins", {
23
- method: "get",
24
- pathTemplate: "/api/v1/csp-origins/actions/generate-header",
25
- options
26
- });
27
- var deleteCSPEntry = async (id, options) => invokeFetch("csp-origins", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/csp-origins/{id}",
30
- pathVariables: { id },
31
- options
32
- });
33
- var getCSPEntry = async (id, options) => invokeFetch("csp-origins", {
34
- method: "get",
35
- pathTemplate: "/api/v1/csp-origins/{id}",
36
- pathVariables: { id },
37
- options
38
- });
39
- var updateCSPEntry = async (id, body, options) => invokeFetch("csp-origins", {
40
- method: "put",
41
- pathTemplate: "/api/v1/csp-origins/{id}",
42
- pathVariables: { id },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
9
+ async function getCSPEntries(query, options) {
10
+ return invokeFetch("csp-origins", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/csp-origins",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createCSPEntry(body, options) {
18
+ return invokeFetch("csp-origins", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/csp-origins",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function getCSPHeader(options) {
27
+ return invokeFetch("csp-origins", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/csp-origins/actions/generate-header",
30
+ options
31
+ });
32
+ }
33
+ async function deleteCSPEntry(id, options) {
34
+ return invokeFetch("csp-origins", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/csp-origins/{id}",
37
+ pathVariables: { id },
38
+ options
39
+ });
40
+ }
41
+ async function getCSPEntry(id, options) {
42
+ return invokeFetch("csp-origins", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/csp-origins/{id}",
45
+ pathVariables: { id },
46
+ options
47
+ });
48
+ }
49
+ async function updateCSPEntry(id, body, options) {
50
+ return invokeFetch("csp-origins", {
51
+ method: "put",
52
+ pathTemplate: "/api/v1/csp-origins/{id}",
53
+ pathVariables: { id },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
47
59
  function clearCache() {
48
60
  return clearApiCache("csp-origins");
49
61
  }
package/csrf-token.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
  /**
5
5
  * An error object.
@@ -27,7 +27,7 @@ type Errors = {
27
27
  *
28
28
  * @throws GetCsrfTokenHttpError
29
29
  */
30
- declare const getCsrfToken: (options?: ApiCallOptions) => Promise<GetCsrfTokenHttpResponse>;
30
+ declare function getCsrfToken(options?: ApiCallOptions): Promise<GetCsrfTokenHttpResponse>;
31
31
  type GetCsrfTokenHttpResponse = {
32
32
  data: void;
33
33
  headers: Headers;
package/csrf-token.js CHANGED
@@ -1,16 +1,18 @@
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/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/csrf-token.ts
9
- var getCsrfToken = async (options) => invokeFetch("csrf-token", {
10
- method: "get",
11
- pathTemplate: "/api/v1/csrf-token",
12
- options
13
- });
9
+ async function getCsrfToken(options) {
10
+ return invokeFetch("csrf-token", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/csrf-token",
13
+ options
14
+ });
15
+ }
14
16
  function clearCache() {
15
17
  return clearApiCache("csrf-token");
16
18
  }