@qlik/api 0.0.1 → 0.0.3

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 (156) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +27 -13
  5. package/api-keys.d.ts +27 -13
  6. package/api-keys.js +17 -13
  7. package/api-keys.mjs +12 -8
  8. package/apps.d.mts +580 -165
  9. package/apps.d.ts +580 -165
  10. package/apps.js +111 -44
  11. package/apps.mjs +78 -11
  12. package/audits.d.mts +20 -8
  13. package/audits.d.ts +20 -8
  14. package/audits.js +12 -11
  15. package/audits.mjs +7 -6
  16. package/auth-AWZV4DPP.js +41 -0
  17. package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
  18. package/auth.js +4 -3
  19. package/auth.mjs +3 -2
  20. package/automations.d.mts +56 -20
  21. package/automations.d.ts +56 -20
  22. package/automations.js +32 -25
  23. package/automations.mjs +18 -11
  24. package/brands.d.mts +45 -4
  25. package/brands.d.ts +45 -4
  26. package/brands.js +20 -15
  27. package/brands.mjs +7 -2
  28. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  29. package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
  30. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  31. package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
  32. package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
  33. package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
  34. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  35. package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
  36. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  37. package/chunk-P57PW2II.js +11 -0
  38. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  39. package/chunk-ZFXKCRJC.mjs +11 -0
  40. package/collections.d.mts +52 -18
  41. package/collections.d.ts +52 -18
  42. package/collections.js +28 -14
  43. package/collections.mjs +16 -2
  44. package/csp-origins.d.mts +12 -0
  45. package/csp-origins.d.ts +12 -0
  46. package/csp-origins.js +12 -9
  47. package/csp-origins.mjs +5 -2
  48. package/data-assets.d.mts +10 -0
  49. package/data-assets.d.ts +10 -0
  50. package/data-assets.js +13 -8
  51. package/data-assets.mjs +7 -2
  52. package/data-connections.d.mts +20 -0
  53. package/data-connections.d.ts +20 -0
  54. package/data-connections.js +19 -12
  55. package/data-connections.mjs +9 -2
  56. package/data-credentials.d.mts +10 -0
  57. package/data-credentials.d.ts +10 -0
  58. package/data-credentials.js +10 -7
  59. package/data-credentials.mjs +5 -2
  60. package/data-files.d.mts +114 -29
  61. package/data-files.d.ts +114 -29
  62. package/data-files.js +25 -18
  63. package/data-files.mjs +15 -8
  64. package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
  65. package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
  66. package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
  67. package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
  68. package/extensions.d.mts +26 -2
  69. package/extensions.d.ts +26 -2
  70. package/extensions.js +13 -10
  71. package/extensions.mjs +5 -2
  72. package/glossaries.d.mts +55 -20
  73. package/glossaries.d.ts +55 -20
  74. package/glossaries.js +39 -27
  75. package/glossaries.mjs +14 -2
  76. package/groups.d.mts +29 -13
  77. package/groups.d.ts +29 -13
  78. package/groups.js +19 -14
  79. package/groups.mjs +13 -8
  80. package/identity-providers.d.mts +23 -7
  81. package/identity-providers.d.ts +23 -7
  82. package/identity-providers.js +16 -13
  83. package/identity-providers.mjs +8 -5
  84. package/index.js +150 -112
  85. package/index.mjs +146 -108
  86. package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  87. package/invoke-fetch-UNTAUR7O.js +17 -0
  88. package/items.d.mts +25 -22
  89. package/items.d.ts +25 -22
  90. package/items.js +17 -14
  91. package/items.mjs +11 -8
  92. package/licenses.d.mts +20 -0
  93. package/licenses.d.ts +20 -0
  94. package/licenses.js +17 -12
  95. package/licenses.mjs +7 -2
  96. package/package.json +7 -18
  97. package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
  98. package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
  99. package/qix.d.mts +1066 -1017
  100. package/qix.d.ts +1066 -1017
  101. package/qix.js +4 -3
  102. package/qix.mjs +3 -2
  103. package/quotas.d.mts +4 -0
  104. package/quotas.d.ts +4 -0
  105. package/quotas.js +6 -5
  106. package/quotas.mjs +3 -2
  107. package/reload-tasks.d.mts +2 -0
  108. package/reload-tasks.d.ts +2 -0
  109. package/reload-tasks.js +11 -8
  110. package/reload-tasks.mjs +5 -2
  111. package/reloads.d.mts +20 -11
  112. package/reloads.d.ts +20 -11
  113. package/reloads.js +9 -7
  114. package/reloads.mjs +4 -2
  115. package/roles.d.mts +4 -0
  116. package/roles.d.ts +4 -0
  117. package/roles.js +6 -5
  118. package/roles.mjs +3 -2
  119. package/spaces.d.mts +36 -30
  120. package/spaces.d.ts +36 -30
  121. package/spaces.js +21 -15
  122. package/spaces.mjs +8 -2
  123. package/temp-contents.d.mts +9 -70
  124. package/temp-contents.d.ts +9 -70
  125. package/temp-contents.js +10 -29
  126. package/temp-contents.mjs +5 -24
  127. package/tenants.d.mts +12 -0
  128. package/tenants.d.ts +12 -0
  129. package/tenants.js +14 -9
  130. package/tenants.mjs +7 -2
  131. package/themes.d.mts +26 -2
  132. package/themes.d.ts +26 -2
  133. package/themes.js +13 -10
  134. package/themes.mjs +5 -2
  135. package/transports.d.mts +12 -0
  136. package/transports.d.ts +12 -0
  137. package/transports.js +12 -9
  138. package/transports.mjs +5 -2
  139. package/users.d.mts +48 -29
  140. package/users.d.ts +48 -29
  141. package/users.js +18 -13
  142. package/users.mjs +7 -2
  143. package/web-integrations.d.mts +10 -0
  144. package/web-integrations.d.ts +10 -0
  145. package/web-integrations.js +11 -8
  146. package/web-integrations.mjs +5 -2
  147. package/web-notifications.d.mts +12 -0
  148. package/web-notifications.d.ts +12 -0
  149. package/web-notifications.js +12 -9
  150. package/web-notifications.mjs +5 -2
  151. package/webhooks.d.mts +27 -7
  152. package/webhooks.d.ts +27 -7
  153. package/webhooks.js +17 -13
  154. package/webhooks.mjs +6 -2
  155. package/auth-CSVTXOZX.js +0 -36
  156. package/invoke-fetch-PEI54KZO.js +0 -14
@@ -43,6 +43,7 @@ type DetailResponse = {
43
43
  };
44
44
  /**
45
45
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
46
+ *
46
47
  * @param query an object with query parameters
47
48
  * @param body an object with the body content
48
49
  * @throws UploadTempFileHttpError
@@ -51,10 +52,9 @@ declare const uploadTempFile: (query: {
51
52
  /** The name of the file to upload. */
52
53
  filename?: string;
53
54
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
54
- // It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).'
55
- // */
55
+ * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
56
56
  ttl?: number;
57
- }, body: unknown, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
57
+ }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
58
58
  type UploadTempFileHttpResponse = {
59
59
  data: void;
60
60
  headers: Headers;
@@ -65,51 +65,9 @@ type UploadTempFileHttpError = {
65
65
  headers: Headers;
66
66
  status: number;
67
67
  };
68
- /**
69
- * Request used to create a new upload resource.
70
- * See [tus.io](http://tus.io) for details.
71
- *
72
- * @throws CreateTusHttpError
73
- */
74
- declare const createTus: (options?: ApiCallOptions) => Promise<CreateTusHttpResponse>;
75
- type CreateTusHttpResponse = {
76
- data: void;
77
- headers: Headers;
78
- status: number;
79
- };
80
- type CreateTusHttpError = {
81
- data: Errors;
82
- headers: Headers;
83
- status: number;
84
- };
85
- /**
86
- * Request used to apply the bytes contained in the message at a given offset. Note that the tus server only
87
- * accepts that the Content-Type response header is set to "application/offset+octet-stream".
88
- * See [tus.io](http://tus.io) for details.
89
- *
90
- * Note that the server may return `423 Locked` on this request. This happens if the client attempts to perform
91
- * concurrent access to the resource, for example, if attempting to do a `HEAD` request during an ongoing `PATCH` request.
92
- * It can also occur in situations where the connection is unexpectedly dropped between the client and the server
93
- * and the client attempts to make a new request when the server is still busy processing the upload. When this
94
- * happens, the client shall, after some period of time, try to resume the upload again.
95
- *
96
- * @param id The ID used to uniquely identify the upload.
97
- * @param body an object with the body content
98
- * @throws PatchTusHttpError
99
- */
100
- declare const patchTus: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchTusHttpResponse>;
101
- type PatchTusHttpResponse = {
102
- data: void;
103
- headers: Headers;
104
- status: number;
105
- };
106
- type PatchTusHttpError = {
107
- data: Errors;
108
- headers: Headers;
109
- status: number;
110
- };
111
68
  /**
112
69
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
70
+ *
113
71
  * @param id The temporary contents ID.
114
72
  * @param query an object with query parameters
115
73
  * @throws DownloadTempFileHttpError
@@ -141,6 +99,7 @@ type DownloadTempFileHttpError = {
141
99
  };
142
100
  /**
143
101
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
102
+ *
144
103
  * @param id The temporary contents ID.
145
104
  * @throws GetTempFileDetailsHttpError
146
105
  */
@@ -168,36 +127,15 @@ declare function clearCache(): void;
168
127
  interface TempContentsAPI {
169
128
  /**
170
129
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
130
+ *
171
131
  * @param query an object with query parameters
172
132
  * @param body an object with the body content
173
133
  * @throws UploadTempFileHttpError
174
134
  */
175
135
  uploadTempFile: typeof uploadTempFile;
176
- /**
177
- * Request used to create a new upload resource.
178
- * See [tus.io](http://tus.io) for details.
179
- *
180
- * @throws CreateTusHttpError
181
- */
182
- createTus: typeof createTus;
183
- /**
184
- * Request used to apply the bytes contained in the message at a given offset. Note that the tus server only
185
- * accepts that the Content-Type response header is set to "application/offset+octet-stream".
186
- * See [tus.io](http://tus.io) for details.
187
- *
188
- * Note that the server may return `423 Locked` on this request. This happens if the client attempts to perform
189
- * concurrent access to the resource, for example, if attempting to do a `HEAD` request during an ongoing `PATCH` request.
190
- * It can also occur in situations where the connection is unexpectedly dropped between the client and the server
191
- * and the client attempts to make a new request when the server is still busy processing the upload. When this
192
- * happens, the client shall, after some period of time, try to resume the upload again.
193
- *
194
- * @param id The ID used to uniquely identify the upload.
195
- * @param body an object with the body content
196
- * @throws PatchTusHttpError
197
- */
198
- patchTus: typeof patchTus;
199
136
  /**
200
137
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
138
+ *
201
139
  * @param id The temporary contents ID.
202
140
  * @param query an object with query parameters
203
141
  * @throws DownloadTempFileHttpError
@@ -205,6 +143,7 @@ interface TempContentsAPI {
205
143
  downloadTempFile: typeof downloadTempFile;
206
144
  /**
207
145
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
146
+ *
208
147
  * @param id The temporary contents ID.
209
148
  * @throws GetTempFileDetailsHttpError
210
149
  */
@@ -219,4 +158,4 @@ interface TempContentsAPI {
219
158
  */
220
159
  declare const tempContentsExport: TempContentsAPI;
221
160
 
222
- export { type CreateTusHttpError, type CreateTusHttpResponse, type DetailResponse, type DownloadTempFile200HttpResponse, type DownloadTempFile204HttpResponse, type DownloadTempFile206HttpResponse, type DownloadTempFileHttpError, type DownloadTempFileHttpResponse, type Error, type Errors, type GetTempFileDetails200HttpResponse, type GetTempFileDetails204HttpResponse, type GetTempFileDetailsHttpError, type GetTempFileDetailsHttpResponse, type PatchTusHttpError, type PatchTusHttpResponse, type TempContentsAPI, type UploadTempFileHttpError, type UploadTempFileHttpResponse, clearCache, createTus, tempContentsExport as default, downloadTempFile, getTempFileDetails, patchTus, uploadTempFile };
161
+ export { type DetailResponse, type DownloadTempFile200HttpResponse, type DownloadTempFile204HttpResponse, type DownloadTempFile206HttpResponse, type DownloadTempFileHttpError, type DownloadTempFileHttpResponse, type Error, type Errors, type GetTempFileDetails200HttpResponse, type GetTempFileDetails204HttpResponse, type GetTempFileDetailsHttpError, type GetTempFileDetailsHttpResponse, type TempContentsAPI, type UploadTempFileHttpError, type UploadTempFileHttpResponse, clearCache, tempContentsExport as default, downloadTempFile, getTempFileDetails, uploadTempFile };
@@ -43,6 +43,7 @@ type DetailResponse = {
43
43
  };
44
44
  /**
45
45
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
46
+ *
46
47
  * @param query an object with query parameters
47
48
  * @param body an object with the body content
48
49
  * @throws UploadTempFileHttpError
@@ -51,10 +52,9 @@ declare const uploadTempFile: (query: {
51
52
  /** The name of the file to upload. */
52
53
  filename?: string;
53
54
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
54
- // It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).'
55
- // */
55
+ * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
56
56
  ttl?: number;
57
- }, body: unknown, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
57
+ }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
58
58
  type UploadTempFileHttpResponse = {
59
59
  data: void;
60
60
  headers: Headers;
@@ -65,51 +65,9 @@ type UploadTempFileHttpError = {
65
65
  headers: Headers;
66
66
  status: number;
67
67
  };
68
- /**
69
- * Request used to create a new upload resource.
70
- * See [tus.io](http://tus.io) for details.
71
- *
72
- * @throws CreateTusHttpError
73
- */
74
- declare const createTus: (options?: ApiCallOptions) => Promise<CreateTusHttpResponse>;
75
- type CreateTusHttpResponse = {
76
- data: void;
77
- headers: Headers;
78
- status: number;
79
- };
80
- type CreateTusHttpError = {
81
- data: Errors;
82
- headers: Headers;
83
- status: number;
84
- };
85
- /**
86
- * Request used to apply the bytes contained in the message at a given offset. Note that the tus server only
87
- * accepts that the Content-Type response header is set to "application/offset+octet-stream".
88
- * See [tus.io](http://tus.io) for details.
89
- *
90
- * Note that the server may return `423 Locked` on this request. This happens if the client attempts to perform
91
- * concurrent access to the resource, for example, if attempting to do a `HEAD` request during an ongoing `PATCH` request.
92
- * It can also occur in situations where the connection is unexpectedly dropped between the client and the server
93
- * and the client attempts to make a new request when the server is still busy processing the upload. When this
94
- * happens, the client shall, after some period of time, try to resume the upload again.
95
- *
96
- * @param id The ID used to uniquely identify the upload.
97
- * @param body an object with the body content
98
- * @throws PatchTusHttpError
99
- */
100
- declare const patchTus: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchTusHttpResponse>;
101
- type PatchTusHttpResponse = {
102
- data: void;
103
- headers: Headers;
104
- status: number;
105
- };
106
- type PatchTusHttpError = {
107
- data: Errors;
108
- headers: Headers;
109
- status: number;
110
- };
111
68
  /**
112
69
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
70
+ *
113
71
  * @param id The temporary contents ID.
114
72
  * @param query an object with query parameters
115
73
  * @throws DownloadTempFileHttpError
@@ -141,6 +99,7 @@ type DownloadTempFileHttpError = {
141
99
  };
142
100
  /**
143
101
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
102
+ *
144
103
  * @param id The temporary contents ID.
145
104
  * @throws GetTempFileDetailsHttpError
146
105
  */
@@ -168,36 +127,15 @@ declare function clearCache(): void;
168
127
  interface TempContentsAPI {
169
128
  /**
170
129
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
130
+ *
171
131
  * @param query an object with query parameters
172
132
  * @param body an object with the body content
173
133
  * @throws UploadTempFileHttpError
174
134
  */
175
135
  uploadTempFile: typeof uploadTempFile;
176
- /**
177
- * Request used to create a new upload resource.
178
- * See [tus.io](http://tus.io) for details.
179
- *
180
- * @throws CreateTusHttpError
181
- */
182
- createTus: typeof createTus;
183
- /**
184
- * Request used to apply the bytes contained in the message at a given offset. Note that the tus server only
185
- * accepts that the Content-Type response header is set to "application/offset+octet-stream".
186
- * See [tus.io](http://tus.io) for details.
187
- *
188
- * Note that the server may return `423 Locked` on this request. This happens if the client attempts to perform
189
- * concurrent access to the resource, for example, if attempting to do a `HEAD` request during an ongoing `PATCH` request.
190
- * It can also occur in situations where the connection is unexpectedly dropped between the client and the server
191
- * and the client attempts to make a new request when the server is still busy processing the upload. When this
192
- * happens, the client shall, after some period of time, try to resume the upload again.
193
- *
194
- * @param id The ID used to uniquely identify the upload.
195
- * @param body an object with the body content
196
- * @throws PatchTusHttpError
197
- */
198
- patchTus: typeof patchTus;
199
136
  /**
200
137
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
138
+ *
201
139
  * @param id The temporary contents ID.
202
140
  * @param query an object with query parameters
203
141
  * @throws DownloadTempFileHttpError
@@ -205,6 +143,7 @@ interface TempContentsAPI {
205
143
  downloadTempFile: typeof downloadTempFile;
206
144
  /**
207
145
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
146
+ *
208
147
  * @param id The temporary contents ID.
209
148
  * @throws GetTempFileDetailsHttpError
210
149
  */
@@ -219,4 +158,4 @@ interface TempContentsAPI {
219
158
  */
220
159
  declare const tempContentsExport: TempContentsAPI;
221
160
 
222
- export { type CreateTusHttpError, type CreateTusHttpResponse, type DetailResponse, type DownloadTempFile200HttpResponse, type DownloadTempFile204HttpResponse, type DownloadTempFile206HttpResponse, type DownloadTempFileHttpError, type DownloadTempFileHttpResponse, type Error, type Errors, type GetTempFileDetails200HttpResponse, type GetTempFileDetails204HttpResponse, type GetTempFileDetailsHttpError, type GetTempFileDetailsHttpResponse, type PatchTusHttpError, type PatchTusHttpResponse, type TempContentsAPI, type UploadTempFileHttpError, type UploadTempFileHttpResponse, clearCache, createTus, tempContentsExport as default, downloadTempFile, getTempFileDetails, patchTus, uploadTempFile };
161
+ export { type DetailResponse, type DownloadTempFile200HttpResponse, type DownloadTempFile204HttpResponse, type DownloadTempFile206HttpResponse, type DownloadTempFileHttpError, type DownloadTempFileHttpResponse, type Error, type Errors, type GetTempFileDetails200HttpResponse, type GetTempFileDetails204HttpResponse, type GetTempFileDetailsHttpError, type GetTempFileDetailsHttpResponse, type TempContentsAPI, type UploadTempFileHttpError, type UploadTempFileHttpResponse, clearCache, tempContentsExport as default, downloadTempFile, getTempFileDetails, uploadTempFile };
package/temp-contents.js CHANGED
@@ -1,53 +1,36 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/temp-contents.ts
8
- var uploadTempFile = async (query, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "temp-contents", {
9
+ var uploadTempFile = async (query, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "temp-contents", {
9
10
  method: "post",
10
11
  pathTemplate: "/api/v1/temp-contents",
11
12
  query,
12
13
  body,
14
+ contentType: "application/octet-stream",
13
15
  options
14
16
  });
15
- var createTus = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "temp-contents", {
16
- method: "post",
17
- pathTemplate: "/api/v1/temp-contents/files",
18
- options
19
- });
20
- var patchTus = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "temp-contents", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/temp-contents/files/{id}",
23
- pathVariables: { id },
24
- body,
25
- options
26
- });
27
- var downloadTempFile = async (id, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "temp-contents", {
17
+ var downloadTempFile = async (id, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "temp-contents", {
28
18
  method: "get",
29
19
  pathTemplate: "/api/v1/temp-contents/{id}",
30
20
  pathVariables: { id },
31
21
  query,
32
22
  options
33
23
  });
34
- var getTempFileDetails = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "temp-contents", {
24
+ var getTempFileDetails = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "temp-contents", {
35
25
  method: "get",
36
26
  pathTemplate: "/api/v1/temp-contents/{id}/details",
37
27
  pathVariables: { id },
38
28
  options
39
29
  });
40
30
  function clearCache() {
41
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "temp-contents");
31
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "temp-contents");
42
32
  }
43
- var tempContentsExport = {
44
- uploadTempFile,
45
- createTus,
46
- patchTus,
47
- downloadTempFile,
48
- getTempFileDetails,
49
- clearCache
50
- };
33
+ var tempContentsExport = { uploadTempFile, downloadTempFile, getTempFileDetails, clearCache };
51
34
  var temp_contents_default = tempContentsExport;
52
35
 
53
36
 
@@ -55,6 +38,4 @@ var temp_contents_default = tempContentsExport;
55
38
 
56
39
 
57
40
 
58
-
59
-
60
- exports.clearCache = clearCache; exports.createTus = createTus; exports.default = temp_contents_default; exports.downloadTempFile = downloadTempFile; exports.getTempFileDetails = getTempFileDetails; exports.patchTus = patchTus; exports.uploadTempFile = uploadTempFile;
41
+ exports.clearCache = clearCache; exports.default = temp_contents_default; exports.downloadTempFile = downloadTempFile; exports.getTempFileDetails = getTempFileDetails; exports.uploadTempFile = uploadTempFile;
package/temp-contents.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/temp-contents.ts
8
9
  var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
@@ -10,18 +11,7 @@ var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents"
10
11
  pathTemplate: "/api/v1/temp-contents",
11
12
  query,
12
13
  body,
13
- options
14
- });
15
- var createTus = async (options) => invokeFetch("temp-contents", {
16
- method: "post",
17
- pathTemplate: "/api/v1/temp-contents/files",
18
- options
19
- });
20
- var patchTus = async (id, body, options) => invokeFetch("temp-contents", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/temp-contents/files/{id}",
23
- pathVariables: { id },
24
- body,
14
+ contentType: "application/octet-stream",
25
15
  options
26
16
  });
27
17
  var downloadTempFile = async (id, query, options) => invokeFetch("temp-contents", {
@@ -40,21 +30,12 @@ var getTempFileDetails = async (id, options) => invokeFetch("temp-contents", {
40
30
  function clearCache() {
41
31
  return clearApiCache("temp-contents");
42
32
  }
43
- var tempContentsExport = {
44
- uploadTempFile,
45
- createTus,
46
- patchTus,
47
- downloadTempFile,
48
- getTempFileDetails,
49
- clearCache
50
- };
33
+ var tempContentsExport = { uploadTempFile, downloadTempFile, getTempFileDetails, clearCache };
51
34
  var temp_contents_default = tempContentsExport;
52
35
  export {
53
36
  clearCache,
54
- createTus,
55
37
  temp_contents_default as default,
56
38
  downloadTempFile,
57
39
  getTempFileDetails,
58
- patchTus,
59
40
  uploadTempFile
60
41
  };
package/tenants.d.mts CHANGED
@@ -103,6 +103,7 @@ type TenantPatchSchema = {
103
103
  }[];
104
104
  /**
105
105
  * Creates a Tenant
106
+ *
106
107
  * @param body an object with the body content
107
108
  * @throws CreateTenantHttpError
108
109
  */
@@ -119,6 +120,7 @@ type CreateTenantHttpError = {
119
120
  };
120
121
  /**
121
122
  * Redirects to current tenant.
123
+ *
122
124
  * @throws GetMyTenantHttpError
123
125
  */
124
126
  declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
@@ -134,6 +136,7 @@ type GetMyTenantHttpError = {
134
136
  };
135
137
  /**
136
138
  * Retrieve a single tenant by id.
139
+ *
137
140
  * @param tenantId The id of the tenant to retrieve
138
141
  * @throws GetTenantHttpError
139
142
  */
@@ -150,6 +153,7 @@ type GetTenantHttpError = {
150
153
  };
151
154
  /**
152
155
  * Update a tenant by id.
156
+ *
153
157
  * @param tenantId The id of the tenant to update
154
158
  * @param body an object with the body content
155
159
  * @throws PatchTenantHttpError
@@ -188,6 +192,7 @@ type PatchTenantdefaultHttpError = {
188
192
  type PatchTenantHttpError = PatchTenant400HttpError | PatchTenant403HttpError | PatchTenant404HttpError | PatchTenant429HttpError | PatchTenantdefaultHttpError;
189
193
  /**
190
194
  * Deactivates a tenant.
195
+ *
191
196
  * @param tenantId The id of the tenant to deactivate
192
197
  * @param body an object with the body content
193
198
  * @throws DeactivateTenantHttpError
@@ -205,6 +210,7 @@ type DeactivateTenantHttpError = {
205
210
  };
206
211
  /**
207
212
  * Reactivates a disabled tenant.
213
+ *
208
214
  * @param tenantId The id of the tenant to reactivate
209
215
  * @param body an object with the body content
210
216
  * @throws ReactivateTenantHttpError
@@ -227,23 +233,27 @@ declare function clearCache(): void;
227
233
  interface TenantsAPI {
228
234
  /**
229
235
  * Creates a Tenant
236
+ *
230
237
  * @param body an object with the body content
231
238
  * @throws CreateTenantHttpError
232
239
  */
233
240
  createTenant: typeof createTenant;
234
241
  /**
235
242
  * Redirects to current tenant.
243
+ *
236
244
  * @throws GetMyTenantHttpError
237
245
  */
238
246
  getMyTenant: typeof getMyTenant;
239
247
  /**
240
248
  * Retrieve a single tenant by id.
249
+ *
241
250
  * @param tenantId The id of the tenant to retrieve
242
251
  * @throws GetTenantHttpError
243
252
  */
244
253
  getTenant: typeof getTenant;
245
254
  /**
246
255
  * Update a tenant by id.
256
+ *
247
257
  * @param tenantId The id of the tenant to update
248
258
  * @param body an object with the body content
249
259
  * @throws PatchTenantHttpError
@@ -251,6 +261,7 @@ interface TenantsAPI {
251
261
  patchTenant: typeof patchTenant;
252
262
  /**
253
263
  * Deactivates a tenant.
264
+ *
254
265
  * @param tenantId The id of the tenant to deactivate
255
266
  * @param body an object with the body content
256
267
  * @throws DeactivateTenantHttpError
@@ -258,6 +269,7 @@ interface TenantsAPI {
258
269
  deactivateTenant: typeof deactivateTenant;
259
270
  /**
260
271
  * Reactivates a disabled tenant.
272
+ *
261
273
  * @param tenantId The id of the tenant to reactivate
262
274
  * @param body an object with the body content
263
275
  * @throws ReactivateTenantHttpError
package/tenants.d.ts CHANGED
@@ -103,6 +103,7 @@ type TenantPatchSchema = {
103
103
  }[];
104
104
  /**
105
105
  * Creates a Tenant
106
+ *
106
107
  * @param body an object with the body content
107
108
  * @throws CreateTenantHttpError
108
109
  */
@@ -119,6 +120,7 @@ type CreateTenantHttpError = {
119
120
  };
120
121
  /**
121
122
  * Redirects to current tenant.
123
+ *
122
124
  * @throws GetMyTenantHttpError
123
125
  */
124
126
  declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
@@ -134,6 +136,7 @@ type GetMyTenantHttpError = {
134
136
  };
135
137
  /**
136
138
  * Retrieve a single tenant by id.
139
+ *
137
140
  * @param tenantId The id of the tenant to retrieve
138
141
  * @throws GetTenantHttpError
139
142
  */
@@ -150,6 +153,7 @@ type GetTenantHttpError = {
150
153
  };
151
154
  /**
152
155
  * Update a tenant by id.
156
+ *
153
157
  * @param tenantId The id of the tenant to update
154
158
  * @param body an object with the body content
155
159
  * @throws PatchTenantHttpError
@@ -188,6 +192,7 @@ type PatchTenantdefaultHttpError = {
188
192
  type PatchTenantHttpError = PatchTenant400HttpError | PatchTenant403HttpError | PatchTenant404HttpError | PatchTenant429HttpError | PatchTenantdefaultHttpError;
189
193
  /**
190
194
  * Deactivates a tenant.
195
+ *
191
196
  * @param tenantId The id of the tenant to deactivate
192
197
  * @param body an object with the body content
193
198
  * @throws DeactivateTenantHttpError
@@ -205,6 +210,7 @@ type DeactivateTenantHttpError = {
205
210
  };
206
211
  /**
207
212
  * Reactivates a disabled tenant.
213
+ *
208
214
  * @param tenantId The id of the tenant to reactivate
209
215
  * @param body an object with the body content
210
216
  * @throws ReactivateTenantHttpError
@@ -227,23 +233,27 @@ declare function clearCache(): void;
227
233
  interface TenantsAPI {
228
234
  /**
229
235
  * Creates a Tenant
236
+ *
230
237
  * @param body an object with the body content
231
238
  * @throws CreateTenantHttpError
232
239
  */
233
240
  createTenant: typeof createTenant;
234
241
  /**
235
242
  * Redirects to current tenant.
243
+ *
236
244
  * @throws GetMyTenantHttpError
237
245
  */
238
246
  getMyTenant: typeof getMyTenant;
239
247
  /**
240
248
  * Retrieve a single tenant by id.
249
+ *
241
250
  * @param tenantId The id of the tenant to retrieve
242
251
  * @throws GetTenantHttpError
243
252
  */
244
253
  getTenant: typeof getTenant;
245
254
  /**
246
255
  * Update a tenant by id.
256
+ *
247
257
  * @param tenantId The id of the tenant to update
248
258
  * @param body an object with the body content
249
259
  * @throws PatchTenantHttpError
@@ -251,6 +261,7 @@ interface TenantsAPI {
251
261
  patchTenant: typeof patchTenant;
252
262
  /**
253
263
  * Deactivates a tenant.
264
+ *
254
265
  * @param tenantId The id of the tenant to deactivate
255
266
  * @param body an object with the body content
256
267
  * @throws DeactivateTenantHttpError
@@ -258,6 +269,7 @@ interface TenantsAPI {
258
269
  deactivateTenant: typeof deactivateTenant;
259
270
  /**
260
271
  * Reactivates a disabled tenant.
272
+ *
261
273
  * @param tenantId The id of the tenant to reactivate
262
274
  * @param body an object with the body content
263
275
  * @throws ReactivateTenantHttpError
package/tenants.js CHANGED
@@ -1,50 +1,55 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/tenants.ts
8
- var createTenant = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
9
+ var createTenant = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
9
10
  method: "post",
10
11
  pathTemplate: "/api/v1/tenants",
11
12
  body,
13
+ contentType: "application/json",
12
14
  options
13
15
  });
14
- var getMyTenant = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
16
+ var getMyTenant = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
15
17
  method: "get",
16
18
  pathTemplate: "/api/v1/tenants/me",
17
19
  options
18
20
  });
19
- var getTenant = async (tenantId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
21
+ var getTenant = async (tenantId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
20
22
  method: "get",
21
23
  pathTemplate: "/api/v1/tenants/{tenantId}",
22
24
  pathVariables: { tenantId },
23
25
  options
24
26
  });
25
- var patchTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
27
+ var patchTenant = async (tenantId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
26
28
  method: "patch",
27
29
  pathTemplate: "/api/v1/tenants/{tenantId}",
28
30
  pathVariables: { tenantId },
29
31
  body,
32
+ contentType: "application/json",
30
33
  options
31
34
  });
32
- var deactivateTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
35
+ var deactivateTenant = async (tenantId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
33
36
  method: "post",
34
37
  pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
35
38
  pathVariables: { tenantId },
36
39
  body,
40
+ contentType: "application/json",
37
41
  options
38
42
  });
39
- var reactivateTenant = async (tenantId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "tenants", {
43
+ var reactivateTenant = async (tenantId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "tenants", {
40
44
  method: "post",
41
45
  pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
42
46
  pathVariables: { tenantId },
43
47
  body,
48
+ contentType: "application/json",
44
49
  options
45
50
  });
46
51
  function clearCache() {
47
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "tenants");
52
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "tenants");
48
53
  }
49
54
  var tenantsExport = {
50
55
  createTenant,
package/tenants.mjs CHANGED
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/tenants.ts
8
9
  var createTenant = async (body, options) => invokeFetch("tenants", {
9
10
  method: "post",
10
11
  pathTemplate: "/api/v1/tenants",
11
12
  body,
13
+ contentType: "application/json",
12
14
  options
13
15
  });
14
16
  var getMyTenant = async (options) => invokeFetch("tenants", {
@@ -27,6 +29,7 @@ var patchTenant = async (tenantId, body, options) => invokeFetch("tenants", {
27
29
  pathTemplate: "/api/v1/tenants/{tenantId}",
28
30
  pathVariables: { tenantId },
29
31
  body,
32
+ contentType: "application/json",
30
33
  options
31
34
  });
32
35
  var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
@@ -34,6 +37,7 @@ var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants",
34
37
  pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
35
38
  pathVariables: { tenantId },
36
39
  body,
40
+ contentType: "application/json",
37
41
  options
38
42
  });
39
43
  var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
@@ -41,6 +45,7 @@ var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants",
41
45
  pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
42
46
  pathVariables: { tenantId },
43
47
  body,
48
+ contentType: "application/json",
44
49
  options
45
50
  });
46
51
  function clearCache() {