@qlik/api 1.29.0 → 1.30.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 (56) hide show
  1. package/api-keys.js +2 -2
  2. package/apps.d.ts +1 -11
  3. package/apps.js +2 -2
  4. package/audits.js +2 -2
  5. package/auth.js +2 -2
  6. package/automations.d.ts +36 -36
  7. package/automations.js +2 -2
  8. package/brands.js +2 -2
  9. package/chunks/{5MRIMVKS.js → F5UDCCRD.js} +17 -20
  10. package/chunks/{QOOCP2TS.js → FKCZFVJL.js} +1 -1
  11. package/chunks/{NBW6PHZU.js → G6QUM5WQ.js} +27 -6
  12. package/chunks/{5XNSGPGZ.js → IQBP2PKS.js} +1 -1
  13. package/chunks/{2BRBIRM2.js → JIX6RMFP.js} +1 -1
  14. package/chunks/{4D5NADHK.js → OTTC4QSX.js} +1 -1
  15. package/chunks/{WQYEWU54.js → PTDXR7AY.js} +2 -2
  16. package/chunks/{KYCIMQ4L.js → QK4TMJ64.js} +1 -1
  17. package/chunks/{MGXEGSJC.js → QWQLGDMI.js} +2 -2
  18. package/chunks/{2B7YWDQC.js → TXC5XORK.js} +3 -3
  19. package/collections.js +2 -2
  20. package/csp-origins.js +2 -2
  21. package/data-assets.js +2 -2
  22. package/data-connections.d.ts +1 -1
  23. package/data-connections.js +2 -2
  24. package/data-credentials.js +2 -2
  25. package/data-files.js +2 -2
  26. package/extensions.js +2 -2
  27. package/glossaries.d.ts +20 -13
  28. package/glossaries.js +2 -2
  29. package/groups.js +2 -2
  30. package/identity-providers.js +2 -2
  31. package/index.d.ts +6 -2
  32. package/index.js +29 -4
  33. package/items.js +2 -2
  34. package/licenses.js +2 -2
  35. package/oauth-clients.d.ts +516 -0
  36. package/oauth-clients.js +112 -0
  37. package/package.json +3 -2
  38. package/qix.d.ts +3 -3
  39. package/qix.js +2 -2
  40. package/quotas.js +2 -2
  41. package/reload-tasks.js +2 -2
  42. package/reloads.d.ts +2 -0
  43. package/reloads.js +2 -2
  44. package/reports.d.ts +2 -0
  45. package/reports.js +2 -2
  46. package/roles.d.ts +12 -2
  47. package/roles.js +2 -2
  48. package/spaces.js +2 -2
  49. package/temp-contents.js +2 -2
  50. package/tenants.js +2 -2
  51. package/themes.js +2 -2
  52. package/transports.js +2 -2
  53. package/users.js +2 -2
  54. package/web-integrations.js +2 -2
  55. package/web-notifications.js +2 -2
  56. package/webhooks.js +2 -2
@@ -0,0 +1,516 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
+ import './auth-types-PkN9CAF_.js';
3
+
4
+ /**
5
+ * Hints of any client application secrets
6
+ */
7
+ type ClientSecrets = {
8
+ /** The timestamp for when the client-secret record was created. */
9
+ createdAt?: string;
10
+ /** The identifier for the user that created the client-secret record. */
11
+ createdBy?: string;
12
+ /** Hint of a client application secret */
13
+ hint: string;
14
+ }[];
15
+ /**
16
+ * Response schema for reading a connection config
17
+ */
18
+ type ConnectionConfigReadResponse = {
19
+ /** Consent method */
20
+ readonly consentMethod: string;
21
+ /** OAuth client has been deleted by owning tenant, only applies for published clients. */
22
+ readonly deletedByOwner?: boolean;
23
+ /** Status */
24
+ readonly status?: string;
25
+ };
26
+ type Error = {
27
+ /** The unique code for the error */
28
+ code: string;
29
+ /** Additional details about the error */
30
+ detail?: string;
31
+ /** A summary of the error */
32
+ title: string;
33
+ };
34
+ type ErrorResponse = {
35
+ errors?: Error[];
36
+ };
37
+ type Link = {
38
+ /** URL that defines the resource */
39
+ href: string;
40
+ };
41
+ type Links = {
42
+ next?: Link;
43
+ prev?: Link;
44
+ self?: Link;
45
+ };
46
+ /**
47
+ * Schema for a OAuth client when listing as an admin user
48
+ */
49
+ type OAuthClientAdminListItem = {
50
+ /** List of allowed origins for client */
51
+ allowedOrigins?: string[];
52
+ /** Client application id */
53
+ readonly clientId: string;
54
+ /** Response schema for reading a connection config */
55
+ connectionConfig?: ConnectionConfigReadResponse;
56
+ /** List of allowed redirect URIs for login */
57
+ redirectUris?: string[];
58
+ } & OAuthClientBase;
59
+ /**
60
+ * Response schema for listing OAuth clients as an admin user
61
+ */
62
+ type OAuthClientAdminListResponse = {
63
+ data: OAuthClientAdminListItem[];
64
+ links: Links;
65
+ /** Total number of oauth clients, included only if `totalResults` query parameter is set to true. */
66
+ totalResults?: number;
67
+ };
68
+ /**
69
+ * Response schema for reading an OAuth client as an admin user
70
+ */
71
+ type OAuthClientAdminReadResponse = {
72
+ /** List of allowed origins for client */
73
+ allowedOrigins?: string[];
74
+ /** Client application id */
75
+ readonly clientId: string;
76
+ /** Hints of any client application secrets */
77
+ readonly clientSecrets?: ClientSecrets;
78
+ /** List of allowed redirect URIs for login */
79
+ redirectUris?: string[];
80
+ } & OAuthClientBase;
81
+ /**
82
+ * Base schema for OAuth client requests and responses
83
+ */
84
+ type OAuthClientBase = {
85
+ /** Allowed grant types, only for use with appType: 'web' */
86
+ allowedGrantTypes?: ("client_credentials" | "urn:qlik:oauth:user-impersonation")[];
87
+ /** List of allowed scopes for this client. For a full list of scopes see [qlik.dev/authenticate/oauth/scopes/](https://qlik.dev/authenticate/oauth/scopes/). */
88
+ allowedScopes?: string[];
89
+ /** Application type */
90
+ appType: "web" | "native" | "spa" | "anonymous-embed";
91
+ /** Client application name */
92
+ clientName: string;
93
+ /** URI for homepage of client */
94
+ clientUri?: string;
95
+ /** The timestamp for when the oauth-clients record was created. */
96
+ createdAt: string;
97
+ /** The timestamp for when the oauth-clients record was deleted. */
98
+ deletedAt?: string;
99
+ /** Client description */
100
+ description?: string;
101
+ /** Is set if client disabled */
102
+ readonly disableTag?: string;
103
+ /** URI for logo of client */
104
+ logoUri?: string;
105
+ /** The timestamp which is set, if the client is published. */
106
+ publishedAt?: string;
107
+ /** The timestamp for when the oauth-clients record was updated. */
108
+ updatedAt?: string;
109
+ };
110
+ /**
111
+ * Request schema for OAuth client creation
112
+ */
113
+ type OAuthClientCreateRequest = {
114
+ /** Allowed grant types, only for use with appType: 'web' */
115
+ allowedGrantTypes?: ("client_credentials" | "urn:qlik:oauth:user-impersonation")[];
116
+ /** List of allowed origins for this client, only available with SPA application type */
117
+ allowedOrigins?: string[];
118
+ /** List of allowed scopes for this client. For a full list of scopes see [qlik.dev/authenticate/oauth/scopes/](https://qlik.dev/authenticate/oauth/scopes/). */
119
+ allowedScopes?: string[];
120
+ /** Application type */
121
+ appType: "web" | "native" | "spa" | "anonymous-embed";
122
+ /** Client application name */
123
+ clientName: string;
124
+ /** URI for homepage of client */
125
+ clientUri?: string;
126
+ /** Client description */
127
+ description?: string;
128
+ /** URI for logo of client */
129
+ logoUri?: string;
130
+ /** List of allowed redirect URIs for login */
131
+ redirectUris?: string[];
132
+ };
133
+ /**
134
+ * Response schema for OAuth client creation
135
+ */
136
+ type OAuthClientCreateResponse = {
137
+ /** List of allowed redirect URIs for login */
138
+ allowedOrigins?: string[];
139
+ /** Client application id */
140
+ readonly clientId: string;
141
+ /** Client application secret */
142
+ readonly clientSecret: string;
143
+ /** List of allowed redirect URIs for login */
144
+ redirectUris?: string[];
145
+ } & OAuthClientBase;
146
+ /**
147
+ * Response schema for listing OAuth clients
148
+ */
149
+ type OAuthClientListResponse = {
150
+ data: OAuthClientReadResponse[];
151
+ links: Links;
152
+ };
153
+ /**
154
+ * Response schema for successfully publishing an OAuth client
155
+ */
156
+ type OAuthClientPublishResponse = {
157
+ /** The timestamp which is set, if the client is published. */
158
+ publishedAt: string;
159
+ };
160
+ /**
161
+ * Response schema for reading an OAuth client
162
+ */
163
+ type OAuthClientReadResponse = {
164
+ /** Client application id */
165
+ readonly clientId: string;
166
+ } & OAuthClientBase;
167
+ /**
168
+ * Response schema for creating an OAuth client application secret
169
+ */
170
+ type OAuthClientSecretResponse = {
171
+ /** Client application id */
172
+ readonly clientId: string;
173
+ /** Client application secret */
174
+ readonly clientSecret: string;
175
+ /** The timestamp for when the client-secret record was created. */
176
+ createdAt?: string;
177
+ /** The identifier for the user that created the client-secret record. */
178
+ createdBy?: string;
179
+ /** Client application hint */
180
+ readonly hint: string;
181
+ };
182
+ /**
183
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902
184
+ */
185
+ type OAuthClientUpdate = {
186
+ /** The operation to be performed */
187
+ op: "add" | "remove" | "replace";
188
+ /** The path for the given resource field to patch */
189
+ path: "/allowedOrigins" | "/clientName" | "/clientUri" | "/description" | "/logoUri" | "/redirectUris" | "/allowedScopes" | "/allowedGrantTypes";
190
+ /** The value to be used for this operation. */
191
+ value?: string | string[];
192
+ };
193
+ /**
194
+ * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902
195
+ */
196
+ type OAuthConnectionConfigUpdate = {
197
+ /** The operation to be performed */
198
+ op: "replace";
199
+ /** The path for the given resource field to patch */
200
+ path: "/consentMethod";
201
+ /** The value to be used for this operation. */
202
+ value: "required" | "trusted";
203
+ };
204
+ /**
205
+ * Retrieve all OAuth clients.
206
+ * @example
207
+ * getOAuthClients(
208
+ * {
209
+ * filter: "appType eq \"spa\" and clientId eq \"b3ee66d6f21d1611efa89a425f656f6f\"",
210
+ * totalResults: true
211
+ * }
212
+ * )
213
+ *
214
+ * @param query an object with query parameters
215
+ * @throws GetOAuthClientsHttpError
216
+ */
217
+ declare const getOAuthClients: (query: {
218
+ /** The filter query that should be used to filter the list of oauth clients. The filter syntax is defined in RFC 7644. Valid attributes for filtering are `clientId`, `clientName`, `appType`, and `tenantId`. */
219
+ filter?: string;
220
+ /** The number of OAuth client entries to retrieve. */
221
+ limit?: number;
222
+ /** The next page cursor */
223
+ next?: string;
224
+ /** The previous page cursor */
225
+ prev?: string;
226
+ /** The attribute to sort by, beginning with + for ascending and - for descending. Valid attributes for sorting are clientId, clientName, appType, tenantId, createdAt, updatedAt. */
227
+ sort?: string;
228
+ /** Boolean query parameter that determines if the total count of results should be included in the response. If true, the response includes the total number of results in the `totalResults` field. If false or not included in the query, `totalResults` will be excluded from the response. */
229
+ totalResults?: boolean;
230
+ }, options?: ApiCallOptions) => Promise<GetOAuthClientsHttpResponse>;
231
+ type GetOAuthClientsHttpResponse = {
232
+ data: OAuthClientAdminListResponse | OAuthClientListResponse;
233
+ headers: Headers;
234
+ status: 200;
235
+ };
236
+ type GetOAuthClientsHttpError = {
237
+ data: ErrorResponse;
238
+ headers: Headers;
239
+ status: 401 | 403 | 500 | 503;
240
+ };
241
+ /**
242
+ * Create a new OAuth client. Requires `TenantAdmin` role when created in-tenant. `appType` cannot be changed after creation. Consent method and published state can be changed after creation. For supported `appType`, use `PATCH /oauth-clients/{id}/connection-configs/me` to change consent method, and `POST /oauth-clients/{id}/actions/publish` to change the client to published after creation.
243
+ *
244
+ * @param body an object with the body content
245
+ * @throws CreateOAuthClientHttpError
246
+ */
247
+ declare const createOAuthClient: (body: OAuthClientCreateRequest, options?: ApiCallOptions) => Promise<CreateOAuthClientHttpResponse>;
248
+ type CreateOAuthClientHttpResponse = {
249
+ data: OAuthClientCreateResponse;
250
+ headers: Headers;
251
+ status: 201;
252
+ };
253
+ type CreateOAuthClientHttpError = {
254
+ data: ErrorResponse;
255
+ headers: Headers;
256
+ status: 400 | 401 | 403 | 500 | 503;
257
+ };
258
+ /**
259
+ * Delete the specified OAuth client.
260
+ *
261
+ * @param id The unique identifier for the OAuth client
262
+ * @throws DeleteOAuthClientHttpError
263
+ */
264
+ declare const deleteOAuthClient: (id: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientHttpResponse>;
265
+ type DeleteOAuthClientHttpResponse = {
266
+ data: void;
267
+ headers: Headers;
268
+ status: 204;
269
+ };
270
+ type DeleteOAuthClientHttpError = {
271
+ data: ErrorResponse;
272
+ headers: Headers;
273
+ status: 400 | 401 | 403 | 404 | 500 | 503;
274
+ };
275
+ /**
276
+ * Retrieves the specified OAuth client.
277
+ *
278
+ * @param id The unique identifier for the OAuth client
279
+ * @throws GetOAuthClientHttpError
280
+ */
281
+ declare const getOAuthClient: (id: string, options?: ApiCallOptions) => Promise<GetOAuthClientHttpResponse>;
282
+ type GetOAuthClientHttpResponse = {
283
+ data: OAuthClientAdminReadResponse | OAuthClientReadResponse;
284
+ headers: Headers;
285
+ status: 200;
286
+ };
287
+ type GetOAuthClientHttpError = {
288
+ data: ErrorResponse;
289
+ headers: Headers;
290
+ status: 400 | 401 | 403 | 404 | 500 | 503;
291
+ };
292
+ /**
293
+ * Updates the specified OAuth client.
294
+ *
295
+ * @param id The unique identifier for the OAuth client
296
+ * @param body an object with the body content
297
+ * @throws PatchOAuthClientHttpError
298
+ */
299
+ declare const patchOAuthClient: (id: string, body: OAuthClientUpdate[], options?: ApiCallOptions) => Promise<PatchOAuthClientHttpResponse>;
300
+ type PatchOAuthClientHttpResponse = {
301
+ data: void;
302
+ headers: Headers;
303
+ status: 204;
304
+ };
305
+ type PatchOAuthClientHttpError = {
306
+ data: ErrorResponse;
307
+ headers: Headers;
308
+ status: 400 | 401 | 403 | 404 | 500 | 503;
309
+ };
310
+ /**
311
+ * Publishes the specified OAuth client. By default, OAuth clients are bound to the tenant that created it. Publishing shares the client and makes it available to all other tenants within a region. Third-party applications connecting to Qlik Cloud can then have the same client ID for all Qlik Cloud tenants.
312
+ *
313
+ * @param id The unique identifier for the OAuth client
314
+ * @throws PublishOAuthClientHttpError
315
+ */
316
+ declare const publishOAuthClient: (id: string, options?: ApiCallOptions) => Promise<PublishOAuthClientHttpResponse>;
317
+ type PublishOAuthClientHttpResponse = {
318
+ data: OAuthClientPublishResponse;
319
+ headers: Headers;
320
+ status: 201;
321
+ };
322
+ type PublishOAuthClientHttpError = {
323
+ data: ErrorResponse;
324
+ headers: Headers;
325
+ status: 400 | 401 | 403 | 404 | 500 | 503;
326
+ };
327
+ /**
328
+ * Create a new client secret for the specified OAuth client. An OAuth client can have a maximum of 5 client secrets at one time.
329
+ *
330
+ * @param id The unique identifier for the OAuth client
331
+ * @throws CreateOAuthClientSecretHttpError
332
+ */
333
+ declare const createOAuthClientSecret: (id: string, options?: ApiCallOptions) => Promise<CreateOAuthClientSecretHttpResponse>;
334
+ type CreateOAuthClientSecretHttpResponse = {
335
+ data: OAuthClientSecretResponse;
336
+ headers: Headers;
337
+ status: 201;
338
+ };
339
+ type CreateOAuthClientSecretHttpError = {
340
+ data: ErrorResponse;
341
+ headers: Headers;
342
+ status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
343
+ };
344
+ /**
345
+ * Deletes a specific client secret for an OAuth client.
346
+ *
347
+ * @param id The unique identifier for the OAuth client
348
+ * @param hint The unique identifier for the OAuth secret
349
+ * @throws DeleteOAuthClientSecretHttpError
350
+ */
351
+ declare const deleteOAuthClientSecret: (id: string, hint: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientSecretHttpResponse>;
352
+ type DeleteOAuthClientSecretHttpResponse = {
353
+ data: void;
354
+ headers: Headers;
355
+ status: 204;
356
+ };
357
+ type DeleteOAuthClientSecretHttpError = {
358
+ data: ErrorResponse;
359
+ headers: Headers;
360
+ status: 400 | 401 | 403 | 404 | 500 | 503;
361
+ };
362
+ /**
363
+ * Deletes the connection config for the calling tenant, related to the supplied client id.
364
+ *
365
+ * @param id The unique identifier for the OAuth client
366
+ * @throws DeleteOAuthClientConnectionConfigHttpError
367
+ */
368
+ declare const deleteOAuthClientConnectionConfig: (id: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientConnectionConfigHttpResponse>;
369
+ type DeleteOAuthClientConnectionConfigHttpResponse = {
370
+ data: void;
371
+ headers: Headers;
372
+ status: 204;
373
+ };
374
+ type DeleteOAuthClientConnectionConfigHttpError = {
375
+ data: ErrorResponse;
376
+ headers: Headers;
377
+ status: 400 | 401 | 403 | 404 | 500 | 503;
378
+ };
379
+ /**
380
+ * Get configuration for consent method and status.
381
+ *
382
+ * @param id The unique identifier for an OAuth client
383
+ * @throws GetOAuthClientConnectionConfigHttpError
384
+ */
385
+ declare const getOAuthClientConnectionConfig: (id: string, options?: ApiCallOptions) => Promise<GetOAuthClientConnectionConfigHttpResponse>;
386
+ type GetOAuthClientConnectionConfigHttpResponse = {
387
+ data: ConnectionConfigReadResponse;
388
+ headers: Headers;
389
+ status: 200;
390
+ };
391
+ type GetOAuthClientConnectionConfigHttpError = {
392
+ data: ErrorResponse;
393
+ headers: Headers;
394
+ status: 400 | 401 | 403 | 404 | 500 | 503;
395
+ };
396
+ /**
397
+ * Updates the consent method for the specified OAuth client.
398
+ *
399
+ * @param id The unique identifier for the OAuth client
400
+ * @param body an object with the body content
401
+ * @throws PatchOAuthClientConnectionConfigHttpError
402
+ */
403
+ declare const patchOAuthClientConnectionConfig: (id: string, body: OAuthConnectionConfigUpdate[], options?: ApiCallOptions) => Promise<PatchOAuthClientConnectionConfigHttpResponse>;
404
+ type PatchOAuthClientConnectionConfigHttpResponse = {
405
+ data: void;
406
+ headers: Headers;
407
+ status: 204;
408
+ };
409
+ type PatchOAuthClientConnectionConfigHttpError = {
410
+ data: ErrorResponse;
411
+ headers: Headers;
412
+ status: 400 | 401 | 403 | 404 | 500 | 503;
413
+ };
414
+ /**
415
+ * Clears the cache for oauth-clients api requests.
416
+ */
417
+ declare function clearCache(): void;
418
+ interface OauthClientsAPI {
419
+ /**
420
+ * Retrieve all OAuth clients.
421
+ * @example
422
+ * getOAuthClients(
423
+ * {
424
+ * filter: "appType eq \"spa\" and clientId eq \"b3ee66d6f21d1611efa89a425f656f6f\"",
425
+ * totalResults: true
426
+ * }
427
+ * )
428
+ *
429
+ * @param query an object with query parameters
430
+ * @throws GetOAuthClientsHttpError
431
+ */
432
+ getOAuthClients: typeof getOAuthClients;
433
+ /**
434
+ * Create a new OAuth client. Requires `TenantAdmin` role when created in-tenant. `appType` cannot be changed after creation. Consent method and published state can be changed after creation. For supported `appType`, use `PATCH /oauth-clients/{id}/connection-configs/me` to change consent method, and `POST /oauth-clients/{id}/actions/publish` to change the client to published after creation.
435
+ *
436
+ * @param body an object with the body content
437
+ * @throws CreateOAuthClientHttpError
438
+ */
439
+ createOAuthClient: typeof createOAuthClient;
440
+ /**
441
+ * Delete the specified OAuth client.
442
+ *
443
+ * @param id The unique identifier for the OAuth client
444
+ * @throws DeleteOAuthClientHttpError
445
+ */
446
+ deleteOAuthClient: typeof deleteOAuthClient;
447
+ /**
448
+ * Retrieves the specified OAuth client.
449
+ *
450
+ * @param id The unique identifier for the OAuth client
451
+ * @throws GetOAuthClientHttpError
452
+ */
453
+ getOAuthClient: typeof getOAuthClient;
454
+ /**
455
+ * Updates the specified OAuth client.
456
+ *
457
+ * @param id The unique identifier for the OAuth client
458
+ * @param body an object with the body content
459
+ * @throws PatchOAuthClientHttpError
460
+ */
461
+ patchOAuthClient: typeof patchOAuthClient;
462
+ /**
463
+ * Publishes the specified OAuth client. By default, OAuth clients are bound to the tenant that created it. Publishing shares the client and makes it available to all other tenants within a region. Third-party applications connecting to Qlik Cloud can then have the same client ID for all Qlik Cloud tenants.
464
+ *
465
+ * @param id The unique identifier for the OAuth client
466
+ * @throws PublishOAuthClientHttpError
467
+ */
468
+ publishOAuthClient: typeof publishOAuthClient;
469
+ /**
470
+ * Create a new client secret for the specified OAuth client. An OAuth client can have a maximum of 5 client secrets at one time.
471
+ *
472
+ * @param id The unique identifier for the OAuth client
473
+ * @throws CreateOAuthClientSecretHttpError
474
+ */
475
+ createOAuthClientSecret: typeof createOAuthClientSecret;
476
+ /**
477
+ * Deletes a specific client secret for an OAuth client.
478
+ *
479
+ * @param id The unique identifier for the OAuth client
480
+ * @param hint The unique identifier for the OAuth secret
481
+ * @throws DeleteOAuthClientSecretHttpError
482
+ */
483
+ deleteOAuthClientSecret: typeof deleteOAuthClientSecret;
484
+ /**
485
+ * Deletes the connection config for the calling tenant, related to the supplied client id.
486
+ *
487
+ * @param id The unique identifier for the OAuth client
488
+ * @throws DeleteOAuthClientConnectionConfigHttpError
489
+ */
490
+ deleteOAuthClientConnectionConfig: typeof deleteOAuthClientConnectionConfig;
491
+ /**
492
+ * Get configuration for consent method and status.
493
+ *
494
+ * @param id The unique identifier for an OAuth client
495
+ * @throws GetOAuthClientConnectionConfigHttpError
496
+ */
497
+ getOAuthClientConnectionConfig: typeof getOAuthClientConnectionConfig;
498
+ /**
499
+ * Updates the consent method for the specified OAuth client.
500
+ *
501
+ * @param id The unique identifier for the OAuth client
502
+ * @param body an object with the body content
503
+ * @throws PatchOAuthClientConnectionConfigHttpError
504
+ */
505
+ patchOAuthClientConnectionConfig: typeof patchOAuthClientConnectionConfig;
506
+ /**
507
+ * Clears the cache for oauth-clients api requests.
508
+ */
509
+ clearCache: typeof clearCache;
510
+ }
511
+ /**
512
+ * Functions for the oauth-clients api
513
+ */
514
+ declare const oauthClientsExport: OauthClientsAPI;
515
+
516
+ export { type ClientSecrets, type ConnectionConfigReadResponse, type CreateOAuthClientHttpError, type CreateOAuthClientHttpResponse, type CreateOAuthClientSecretHttpError, type CreateOAuthClientSecretHttpResponse, type DeleteOAuthClientConnectionConfigHttpError, type DeleteOAuthClientConnectionConfigHttpResponse, type DeleteOAuthClientHttpError, type DeleteOAuthClientHttpResponse, type DeleteOAuthClientSecretHttpError, type DeleteOAuthClientSecretHttpResponse, type Error, type ErrorResponse, type GetOAuthClientConnectionConfigHttpError, type GetOAuthClientConnectionConfigHttpResponse, type GetOAuthClientHttpError, type GetOAuthClientHttpResponse, type GetOAuthClientsHttpError, type GetOAuthClientsHttpResponse, type Link, type Links, type OAuthClientAdminListItem, type OAuthClientAdminListResponse, type OAuthClientAdminReadResponse, type OAuthClientBase, type OAuthClientCreateRequest, type OAuthClientCreateResponse, type OAuthClientListResponse, type OAuthClientPublishResponse, type OAuthClientReadResponse, type OAuthClientSecretResponse, type OAuthClientUpdate, type OAuthConnectionConfigUpdate, type OauthClientsAPI, type PatchOAuthClientConnectionConfigHttpError, type PatchOAuthClientConnectionConfigHttpResponse, type PatchOAuthClientHttpError, type PatchOAuthClientHttpResponse, type PublishOAuthClientHttpError, type PublishOAuthClientHttpResponse, clearCache, createOAuthClient, createOAuthClientSecret, oauthClientsExport as default, deleteOAuthClient, deleteOAuthClientConnectionConfig, deleteOAuthClientSecret, getOAuthClient, getOAuthClientConnectionConfig, getOAuthClients, patchOAuthClient, patchOAuthClientConnectionConfig, publishOAuthClient };
@@ -0,0 +1,112 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/PTDXR7AY.js";
5
+ import "./chunks/TXC5XORK.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/oauth-clients.ts
9
+ var getOAuthClients = async (query, options) => invokeFetch("oauth-clients", {
10
+ method: "get",
11
+ pathTemplate: "/api/v1/oauth-clients",
12
+ query,
13
+ options
14
+ });
15
+ var createOAuthClient = async (body, options) => invokeFetch("oauth-clients", {
16
+ method: "post",
17
+ pathTemplate: "/api/v1/oauth-clients",
18
+ body,
19
+ contentType: "application/json",
20
+ options
21
+ });
22
+ var deleteOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
23
+ method: "delete",
24
+ pathTemplate: "/api/v1/oauth-clients/{id}",
25
+ pathVariables: { id },
26
+ options
27
+ });
28
+ var getOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/oauth-clients/{id}",
31
+ pathVariables: { id },
32
+ options
33
+ });
34
+ var patchOAuthClient = async (id, body, options) => invokeFetch("oauth-clients", {
35
+ method: "patch",
36
+ pathTemplate: "/api/v1/oauth-clients/{id}",
37
+ pathVariables: { id },
38
+ body,
39
+ contentType: "application/json",
40
+ options
41
+ });
42
+ var publishOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
43
+ method: "post",
44
+ pathTemplate: "/api/v1/oauth-clients/{id}/actions/publish",
45
+ pathVariables: { id },
46
+ options
47
+ });
48
+ var createOAuthClientSecret = async (id, options) => invokeFetch("oauth-clients", {
49
+ method: "post",
50
+ pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets",
51
+ pathVariables: { id },
52
+ options
53
+ });
54
+ var deleteOAuthClientSecret = async (id, hint, options) => invokeFetch("oauth-clients", {
55
+ method: "delete",
56
+ pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets/{hint}",
57
+ pathVariables: { id, hint },
58
+ options
59
+ });
60
+ var deleteOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
61
+ method: "delete",
62
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
63
+ pathVariables: { id },
64
+ options
65
+ });
66
+ var getOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
67
+ method: "get",
68
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
69
+ pathVariables: { id },
70
+ options
71
+ });
72
+ var patchOAuthClientConnectionConfig = async (id, body, options) => invokeFetch("oauth-clients", {
73
+ method: "patch",
74
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
75
+ pathVariables: { id },
76
+ body,
77
+ contentType: "application/json",
78
+ options
79
+ });
80
+ function clearCache() {
81
+ return clearApiCache("oauth-clients");
82
+ }
83
+ var oauthClientsExport = {
84
+ getOAuthClients,
85
+ createOAuthClient,
86
+ deleteOAuthClient,
87
+ getOAuthClient,
88
+ patchOAuthClient,
89
+ publishOAuthClient,
90
+ createOAuthClientSecret,
91
+ deleteOAuthClientSecret,
92
+ deleteOAuthClientConnectionConfig,
93
+ getOAuthClientConnectionConfig,
94
+ patchOAuthClientConnectionConfig,
95
+ clearCache
96
+ };
97
+ var oauth_clients_default = oauthClientsExport;
98
+ export {
99
+ clearCache,
100
+ createOAuthClient,
101
+ createOAuthClientSecret,
102
+ oauth_clients_default as default,
103
+ deleteOAuthClient,
104
+ deleteOAuthClientConnectionConfig,
105
+ deleteOAuthClientSecret,
106
+ getOAuthClient,
107
+ getOAuthClientConnectionConfig,
108
+ getOAuthClients,
109
+ patchOAuthClient,
110
+ patchOAuthClientConnectionConfig,
111
+ publishOAuthClient
112
+ };
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "nanoid": "^5.0.9",
17
17
  "ws": "^8.18.1"
18
18
  },
19
- "packageManager": "pnpm@10.4.1",
19
+ "packageManager": "pnpm@10.7.0",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },
@@ -39,6 +39,7 @@
39
39
  "./identity-providers": "./identity-providers.js",
40
40
  "./items": "./items.js",
41
41
  "./licenses": "./licenses.js",
42
+ "./oauth-clients": "./oauth-clients.js",
42
43
  "./quotas": "./quotas.js",
43
44
  "./reload-tasks": "./reload-tasks.js",
44
45
  "./reloads": "./reloads.js",
@@ -56,5 +57,5 @@
56
57
  "./qix": "./qix.js",
57
58
  "./auth": "./auth.js"
58
59
  },
59
- "version": "1.29.0"
60
+ "version": "1.30.0"
60
61
  }