@qlik/api 0.0.14 → 0.0.16

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 (102) hide show
  1. package/api-keys.js +10 -10
  2. package/api-keys.mjs +2 -2
  3. package/apps.d.mts +20 -10
  4. package/apps.d.ts +20 -10
  5. package/apps.js +46 -46
  6. package/apps.mjs +2 -2
  7. package/audits.d.mts +0 -1
  8. package/audits.d.ts +0 -1
  9. package/audits.js +9 -9
  10. package/audits.mjs +2 -2
  11. package/auth.js +3 -3
  12. package/auth.mjs +2 -2
  13. package/automations.js +21 -21
  14. package/automations.mjs +2 -2
  15. package/brands.js +15 -15
  16. package/brands.mjs +2 -2
  17. package/chunks/{SEXEAWEC.js → 2YWCEGTS.js} +3 -3
  18. package/chunks/34ZKUFEA.js +41 -0
  19. package/chunks/{VCYQUP4Y.mjs → 3YV6X7S6.mjs} +1 -1
  20. package/chunks/{ICTODCOL.js → 4WHZ4EIW.js} +2 -2
  21. package/chunks/{M7UTYYGM.mjs → 6AD3HYSF.mjs} +1 -1
  22. package/chunks/{3INB42LZ.mjs → 6WX5AGKQ.mjs} +1 -1
  23. package/chunks/{JYRPLJUL.js → B4VPD3ZT.js} +11 -11
  24. package/chunks/BM4OSDRZ.js +17 -0
  25. package/chunks/{JZOX7DKF.mjs → BYD63JCG.mjs} +43 -41
  26. package/chunks/{H32EGPZN.mjs → DCXUEDOW.mjs} +1 -1
  27. package/chunks/{X474LM7J.mjs → EHAANYDL.mjs} +3 -3
  28. package/chunks/{3SBSHHRV.mjs → HHOVS7QC.mjs} +5 -5
  29. package/chunks/{IJNQAGVX.mjs → HOCTJESP.mjs} +70 -4
  30. package/chunks/{HHMKNG2O.js → MTAQE4WC.js} +75 -9
  31. package/chunks/{CX7TY2FM.mjs → O4EAKEIN.mjs} +1 -1
  32. package/chunks/{WM2VCN4G.js → OPRGGO4C.js} +1 -1
  33. package/chunks/{SMKHFJJF.js → PLOSYUG2.js} +4 -4
  34. package/chunks/{J3ZWASEK.mjs → UKVTBYP6.mjs} +1 -1
  35. package/chunks/{TH75GYUY.js → URIW2U5M.js} +3 -3
  36. package/chunks/{6KX2ETIK.js → WOYJLK4Y.js} +43 -41
  37. package/collections.js +14 -14
  38. package/collections.mjs +2 -2
  39. package/csp-origins.js +9 -9
  40. package/csp-origins.mjs +2 -2
  41. package/data-assets.js +8 -8
  42. package/data-assets.mjs +2 -2
  43. package/data-connections.d.mts +97 -61
  44. package/data-connections.d.ts +97 -61
  45. package/data-connections.js +12 -12
  46. package/data-connections.mjs +2 -2
  47. package/data-credentials.d.mts +3 -2
  48. package/data-credentials.d.ts +3 -2
  49. package/data-credentials.js +7 -7
  50. package/data-credentials.mjs +2 -2
  51. package/data-files.js +15 -15
  52. package/data-files.mjs +2 -2
  53. package/docs/examples/open-without-data.md +40 -0
  54. package/docs/examples.md +1 -0
  55. package/docs/qix.md +21 -2
  56. package/extensions.js +10 -10
  57. package/extensions.mjs +2 -2
  58. package/glossaries.js +27 -27
  59. package/glossaries.mjs +2 -2
  60. package/groups.js +11 -11
  61. package/groups.mjs +2 -2
  62. package/identity-providers.js +11 -11
  63. package/identity-providers.mjs +2 -2
  64. package/index.js +8 -8
  65. package/index.mjs +4 -4
  66. package/items.js +11 -11
  67. package/items.mjs +2 -2
  68. package/licenses.js +12 -12
  69. package/licenses.mjs +2 -2
  70. package/package.json +3 -3
  71. package/qix.d.mts +6 -1
  72. package/qix.d.ts +6 -1
  73. package/qix.js +3 -3
  74. package/qix.mjs +2 -2
  75. package/quotas.js +5 -5
  76. package/quotas.mjs +2 -2
  77. package/reload-tasks.js +8 -8
  78. package/reload-tasks.mjs +2 -2
  79. package/reloads.js +7 -7
  80. package/reloads.mjs +2 -2
  81. package/roles.js +5 -5
  82. package/roles.mjs +2 -2
  83. package/spaces.js +15 -15
  84. package/spaces.mjs +2 -2
  85. package/temp-contents.js +6 -6
  86. package/temp-contents.mjs +2 -2
  87. package/tenants.js +9 -9
  88. package/tenants.mjs +2 -2
  89. package/themes.js +10 -10
  90. package/themes.mjs +2 -2
  91. package/transports.js +9 -9
  92. package/transports.mjs +2 -2
  93. package/users.js +13 -13
  94. package/users.mjs +2 -2
  95. package/web-integrations.js +8 -8
  96. package/web-integrations.mjs +2 -2
  97. package/web-notifications.js +9 -9
  98. package/web-notifications.mjs +2 -2
  99. package/webhooks.js +13 -13
  100. package/webhooks.mjs +2 -2
  101. package/chunks/GMCMKY65.js +0 -41
  102. package/chunks/ME4LNBI3.js +0 -17
@@ -45,55 +45,12 @@ type BulkResponse = {
45
45
  }[];
46
46
  };
47
47
  /**
48
- * Essential fields of a connection
48
+ * Schema used to create a connection with given connection string (i.e. qConnectStatement) along with other metadata
49
49
  */
50
- type Connection = {
51
- /** Datetime when the connection was created */
52
- created: string;
53
- /** Data source ID */
54
- datasourceID?: string;
55
- links?: Link;
56
- /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
57
- privileges: Privilege[];
58
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
59
- qArchitecture: 0 | 1;
60
- /** Connection string for the data connection */
61
- qConnectStatement: string;
62
- /** String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data-connections/{qID} */
63
- qConnectionSecret?: string;
64
- /** ID of the credential associated with the connection */
65
- qCredentialsID?: string;
66
- /** Name of the credential associated with the connection */
67
- qCredentialsName?: string;
68
- /** Unique identifier (UUID) for the data connection, must be same as qID */
69
- qEngineObjectID: string;
70
- /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
71
- qID: string;
72
- /** Indicates the type of user associated with the data connection */
73
- qLogOn: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
74
- /** Descriptive name of the data connection */
75
- qName: string;
76
- /** Reference key of credential in redis */
77
- qReferenceKey?: string;
78
- /** Indicates whether or not this is a credential-less connection */
79
- qSeparateCredentials: boolean;
80
- /** Type of connection - indicates connection provider type */
81
- qType: string;
82
- /** Encrypted base Qri string */
83
- qri?: string;
84
- /** ID of the space to which the connection belongs */
85
- space?: string;
86
- /** Tenant ID of the connection's creator (Only when extended=true in query) */
87
- tenant?: string;
88
- /** Datetime when the connection was last updated */
89
- updated: string;
90
- /** User ID of the connection's creator */
91
- user: string;
92
- };
93
50
  type ConnectionCreate = {
94
51
  /** ID of the datasource associated with this connection */
95
52
  datasourceID: string;
96
- /** ID of the cloud app that owns this connection */
53
+ /** App ID */
97
54
  owner?: string;
98
55
  /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
99
56
  qArchitecture?: 0 | 1;
@@ -113,7 +70,7 @@ type ConnectionCreate = {
113
70
  qLogOn?: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
114
71
  /** Descriptive name of the data connection */
115
72
  qName: string;
116
- /** Any logon password associated with the data connection */
73
+ /** Any logon password associated with the data connection (connector encoded) */
117
74
  qPassword?: string;
118
75
  /** Indicates whether or not to create a credential-less connection */
119
76
  qSeparateCredentials?: boolean;
@@ -125,6 +82,8 @@ type ConnectionCreate = {
125
82
  qriInRequest?: string;
126
83
  /** ID of the space to which the connection belongs */
127
84
  space?: string;
85
+ /** List of tags attached to the connection (allow max 32 tags) */
86
+ tags?: string[];
128
87
  };
129
88
  /**
130
89
  * Essential fields of a connection
@@ -133,6 +92,7 @@ type ConnectionCreateResponse = {
133
92
  /** Datetime when the connection was created */
134
93
  created?: string;
135
94
  links?: Link;
95
+ /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
136
96
  privileges: Privilege[];
137
97
  /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
138
98
  qArchitecture: 0 | 1;
@@ -163,6 +123,52 @@ type ConnectionCreateResponse = {
163
123
  /** User ID of the connection's creator */
164
124
  user?: string;
165
125
  };
126
+ /**
127
+ * Essential fields of a connection
128
+ */
129
+ type ConnectionGet = {
130
+ /** List of connection parsed from connection string (only available when query parseConnection=true is set) */
131
+ connectionProperties?: unknown;
132
+ /** Datetime when the connection was created */
133
+ created: string;
134
+ /** Data source ID */
135
+ datasourceID?: string;
136
+ links?: Link;
137
+ /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
138
+ privileges: Privilege[];
139
+ /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
140
+ qArchitecture: 0 | 1;
141
+ /** Connection string for the data connection */
142
+ qConnectStatement: string;
143
+ /** String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data-connections/{qID} */
144
+ qConnectionSecret?: string;
145
+ /** ID of the credential associated with the connection */
146
+ qCredentialsID?: string;
147
+ /** Unique identifier (UUID) for the data connection, must be same as qID */
148
+ qEngineObjectID: string;
149
+ /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
150
+ qID: string;
151
+ /** Indicates the type of user associated with the data connection */
152
+ qLogOn: 0 | 1;
153
+ /** Descriptive name of the data connection */
154
+ qName: string;
155
+ /** Indicates whether or not this is a credential-less connection */
156
+ qSeparateCredentials: boolean;
157
+ /** Type of connection, i.e. provider type of underlying connector */
158
+ qType: string;
159
+ /** Encrypted base Qri string */
160
+ qri?: string;
161
+ /** ID of the space to which the connection belongs */
162
+ space?: string;
163
+ /** List of tags attached to the connection */
164
+ tags?: string[];
165
+ /** Tenant ID of the connection's creator */
166
+ tenant: string;
167
+ /** Datetime when the connection was last updated */
168
+ updated: string;
169
+ /** User ID of the connection's creator */
170
+ user: string;
171
+ };
166
172
  type ConnectionUpdate = {
167
173
  /** ID of the datasource associated with this connection */
168
174
  datasourceID?: string;
@@ -196,11 +202,35 @@ type ConnectionUpdate = {
196
202
  space?: string;
197
203
  };
198
204
  type Connections = {
199
- data?: Connection[];
205
+ data?: ConnectionGet[];
200
206
  errors?: Errors;
201
207
  links?: TopLevelLink;
202
208
  meta?: Meta;
203
209
  };
210
+ /**
211
+ * Schema used to create a connection using a list of connection properties for given datasource
212
+ */
213
+ type DcaasConnectionCreate = {
214
+ /** When set to true, only authentication URL will be returned (i.e. no connection will be created) if datasource supports OAuth, and other properties set in the request will ignored. This property will be ignored if the request is not OAuth or datasource doesn't support OAuth */
215
+ authUrlOnly?: boolean;
216
+ /** Connection properties required to create dataconnection for the given datasource, which is defined by the response of 'GET /v1/data-sources/:{datasourceId}/api-specs' */
217
+ connectionProperties: unknown;
218
+ /** ID of the datasource of the connection */
219
+ datasourceID: string;
220
+ /** Descriptive name of the data connection */
221
+ qName: string;
222
+ /** ID of the space in which the connection shall be created. Connection will be created in user's personal space if undefined */
223
+ space?: string;
224
+ /** List of tags attached to the connection (allow max 31 tags) */
225
+ tags?: string[];
226
+ };
227
+ /**
228
+ * Authentication URL response for OAuth datasources (when authUrlOnly is set to true in request)
229
+ */
230
+ type DcaasConnectionCreateAuthResponse = {
231
+ /** Authentication URL used to generate authentication code for datasources supporting OAuth */
232
+ authUrl: string;
233
+ };
204
234
  type Error = {
205
235
  /** Unique internal error code */
206
236
  code?: string;
@@ -215,6 +245,7 @@ type Errors = Error[];
215
245
  type Link = {
216
246
  /** Link to cirrent query */
217
247
  self: {
248
+ /** URL pointing to the resource */
218
249
  href: string;
219
250
  };
220
251
  };
@@ -235,21 +266,24 @@ type PatchRequest = {
235
266
  /**
236
267
  * Access type allowed on associated data connection
237
268
  */
238
- type Privilege = "list" | "update" | "delete" | "read";
269
+ type Privilege = "list" | "update" | "delete" | "read" | "change_owner" | "change_space";
239
270
  type ResponseErrors = {
240
271
  errors?: Errors;
241
272
  };
242
273
  type TopLevelLink = {
243
274
  /** URL link to next page of requested resources (available to paged request only) */
244
275
  next?: {
276
+ /** URL pointing to the next page of resources */
245
277
  href: string;
246
278
  };
247
279
  /** URL link to previous page of requested resources (available to paged request only) */
248
280
  prev?: {
281
+ /** URL pointing to the previous page of resources */
249
282
  href: string;
250
283
  };
251
284
  /** Link to cirrent query */
252
285
  self: {
286
+ /** URL pointing to the resource */
253
287
  href: string;
254
288
  };
255
289
  };
@@ -264,25 +298,25 @@ declare const getDataConnections: (query: {
264
298
  caseinsensitive?: boolean;
265
299
  /** Provides an alternate name to be used for data[] element in GET response. */
266
300
  dataName?: string;
267
- /** Returns extended list of properties when set to true. */
301
+ /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
268
302
  extended?: boolean;
269
303
  /** Filtering resources by properties (filterable properties only) using SCIM filter string. Note the filter string only applies to connections managed by data-connections service, i.e. filtering doesn't apply to DataFile connections. */
270
304
  filter?: string;
271
305
  /** Base Qri (encrypted) will be returned when the query is set to true, default is false */
272
306
  includeQris?: boolean;
273
- /** Number of resources to be returned */
307
+ /** Number of resources to be returned (between 1 and 100) */
274
308
  limit?: number;
275
309
  /** ICU locale ID, used only when caseinsensitive is set to true, default to 'en' if undefined */
276
310
  locale?: string;
277
311
  /** Datafiles connections will not be returned if set to true */
278
312
  noDatafiles?: boolean;
279
- /** Filtering on conneections, return connections owned by the caller if set to true (doesn't apply to datafiles connectionos) */
313
+ /** Filtering on connections, return connections owned by the caller if set to true (doesn't apply to datafiles connections) */
280
314
  ownedByMe?: boolean;
281
315
  /** Filtering on datafile connections by owner (i.e. app) ID. */
282
316
  owner?: string;
283
317
  /** Pagination sursor string, which is generated auotmatically in previous pagination query. */
284
318
  page?: string;
285
- /** Filtering on connections, connections in personal space will be returned if set to true */
319
+ /** Filtering on personal connections, ignored if spaceId is defined in same request */
286
320
  personal?: boolean;
287
321
  /** Name of field sort on for pagination, with prefix with + or - indicating ascending or descending order. When used for data-connections, sort field only applies to non-datafiles connections. Whatever sorting order is, datafiles connections will be returned after all regular connections being returned. */
288
322
  sort?: string;
@@ -304,14 +338,14 @@ type GetDataConnectionsHttpError = {
304
338
  status: number;
305
339
  };
306
340
  /**
307
- * Creates a connection. Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
341
+ * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
308
342
  *
309
343
  * @param body an object with the body content
310
344
  * @throws CreateDataConnectionHttpError
311
345
  */
312
- declare const createDataConnection: (body: ConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
346
+ declare const createDataConnection: (body: ConnectionCreate | DcaasConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
313
347
  type CreateDataConnectionHttpResponse = {
314
- data: ConnectionCreateResponse;
348
+ data: ConnectionCreateResponse | DcaasConnectionCreateAuthResponse;
315
349
  headers: Headers;
316
350
  status: number;
317
351
  };
@@ -395,7 +429,7 @@ type DeleteDataConnectionHttpError = {
395
429
  status: number;
396
430
  };
397
431
  /**
398
- * Gets a connection by connection ID (or by name when type=connectionname is set in query)
432
+ * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
399
433
  *
400
434
  * @param qID Connection ID
401
435
  * @param query an object with query parameters
@@ -406,17 +440,19 @@ declare const getDataConnection: (qID: string, query: {
406
440
  byCredentialName?: boolean;
407
441
  /** Credential ID */
408
442
  credentialId?: string;
409
- /** Returns extended list of properties when set to true. */
443
+ /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
410
444
  extended?: boolean;
411
445
  /** datafiles connections will be returned from cache by default (if data-connections is configured to use cache), this query parameter is used disable this default behavior, e.g. return an update-to-date datafiles connection if the query is set to true */
412
446
  noCache?: boolean;
447
+ /** List of connection properties shall be returned when the query is set to true, default is false */
448
+ parseConnection?: boolean;
413
449
  /** Filtering on connections by space ID */
414
450
  spaceId?: string;
415
451
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
416
452
  type?: "connectionname" | "credentialname";
417
453
  }, options?: ApiCallOptions) => Promise<GetDataConnectionHttpResponse>;
418
454
  type GetDataConnectionHttpResponse = {
419
- data: Connection;
455
+ data: ConnectionGet;
420
456
  headers: Headers;
421
457
  status: number;
422
458
  };
@@ -484,7 +520,7 @@ interface DataConnectionsAPI {
484
520
  */
485
521
  getDataConnections: typeof getDataConnections;
486
522
  /**
487
- * Creates a connection. Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
523
+ * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
488
524
  *
489
525
  * @param body an object with the body content
490
526
  * @throws CreateDataConnectionHttpError
@@ -520,7 +556,7 @@ interface DataConnectionsAPI {
520
556
  */
521
557
  deleteDataConnection: typeof deleteDataConnection;
522
558
  /**
523
- * Gets a connection by connection ID (or by name when type=connectionname is set in query)
559
+ * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
524
560
  *
525
561
  * @param qID Connection ID
526
562
  * @param query an object with query parameters
@@ -555,4 +591,4 @@ interface DataConnectionsAPI {
555
591
  */
556
592
  declare const dataConnectionsExport: DataConnectionsAPI;
557
593
 
558
- export { type ActionDeleteRequest, type ActionDuplicateRequest, type ActionUpdateRequest, type BulkResponse, type Connection, type ConnectionCreate, type ConnectionCreateResponse, type ConnectionUpdate, type Connections, type CreateDataConnectionHttpError, type CreateDataConnectionHttpResponse, type DataConnectionsAPI, type DeleteDataConnectionHttpError, type DeleteDataConnectionHttpResponse, type DeleteDataConnectionsHttpError, type DeleteDataConnectionsHttpResponse, type DuplicateDataAConnectionHttpError, type DuplicateDataAConnectionHttpResponse, type Error, type Errors, type GetDataConnectionHttpError, type GetDataConnectionHttpResponse, type GetDataConnectionsHttpError, type GetDataConnectionsHttpResponse, type Link, type Meta, type PatchDataConnectionHttpError, type PatchDataConnectionHttpResponse, type PatchRequest, type Privilege, type ResponseErrors, type TopLevelLink, type UpdateDataConnectionHttpError, type UpdateDataConnectionHttpResponse, type UpdateDataConnectionsHttpError, type UpdateDataConnectionsHttpResponse, clearCache, createDataConnection, dataConnectionsExport as default, deleteDataConnection, deleteDataConnections, duplicateDataAConnection, getDataConnection, getDataConnections, patchDataConnection, updateDataConnection, updateDataConnections };
594
+ export { type ActionDeleteRequest, type ActionDuplicateRequest, type ActionUpdateRequest, type BulkResponse, type ConnectionCreate, type ConnectionCreateResponse, type ConnectionGet, type ConnectionUpdate, type Connections, type CreateDataConnectionHttpError, type CreateDataConnectionHttpResponse, type DataConnectionsAPI, type DcaasConnectionCreate, type DcaasConnectionCreateAuthResponse, type DeleteDataConnectionHttpError, type DeleteDataConnectionHttpResponse, type DeleteDataConnectionsHttpError, type DeleteDataConnectionsHttpResponse, type DuplicateDataAConnectionHttpError, type DuplicateDataAConnectionHttpResponse, type Error, type Errors, type GetDataConnectionHttpError, type GetDataConnectionHttpResponse, type GetDataConnectionsHttpError, type GetDataConnectionsHttpResponse, type Link, type Meta, type PatchDataConnectionHttpError, type PatchDataConnectionHttpResponse, type PatchRequest, type Privilege, type ResponseErrors, type TopLevelLink, type UpdateDataConnectionHttpError, type UpdateDataConnectionHttpResponse, type UpdateDataConnectionsHttpError, type UpdateDataConnectionsHttpResponse, clearCache, createDataConnection, dataConnectionsExport as default, deleteDataConnection, deleteDataConnections, duplicateDataAConnection, getDataConnection, getDataConnections, patchDataConnection, updateDataConnection, updateDataConnections };
@@ -45,55 +45,12 @@ type BulkResponse = {
45
45
  }[];
46
46
  };
47
47
  /**
48
- * Essential fields of a connection
48
+ * Schema used to create a connection with given connection string (i.e. qConnectStatement) along with other metadata
49
49
  */
50
- type Connection = {
51
- /** Datetime when the connection was created */
52
- created: string;
53
- /** Data source ID */
54
- datasourceID?: string;
55
- links?: Link;
56
- /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
57
- privileges: Privilege[];
58
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
59
- qArchitecture: 0 | 1;
60
- /** Connection string for the data connection */
61
- qConnectStatement: string;
62
- /** String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data-connections/{qID} */
63
- qConnectionSecret?: string;
64
- /** ID of the credential associated with the connection */
65
- qCredentialsID?: string;
66
- /** Name of the credential associated with the connection */
67
- qCredentialsName?: string;
68
- /** Unique identifier (UUID) for the data connection, must be same as qID */
69
- qEngineObjectID: string;
70
- /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
71
- qID: string;
72
- /** Indicates the type of user associated with the data connection */
73
- qLogOn: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
74
- /** Descriptive name of the data connection */
75
- qName: string;
76
- /** Reference key of credential in redis */
77
- qReferenceKey?: string;
78
- /** Indicates whether or not this is a credential-less connection */
79
- qSeparateCredentials: boolean;
80
- /** Type of connection - indicates connection provider type */
81
- qType: string;
82
- /** Encrypted base Qri string */
83
- qri?: string;
84
- /** ID of the space to which the connection belongs */
85
- space?: string;
86
- /** Tenant ID of the connection's creator (Only when extended=true in query) */
87
- tenant?: string;
88
- /** Datetime when the connection was last updated */
89
- updated: string;
90
- /** User ID of the connection's creator */
91
- user: string;
92
- };
93
50
  type ConnectionCreate = {
94
51
  /** ID of the datasource associated with this connection */
95
52
  datasourceID: string;
96
- /** ID of the cloud app that owns this connection */
53
+ /** App ID */
97
54
  owner?: string;
98
55
  /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
99
56
  qArchitecture?: 0 | 1;
@@ -113,7 +70,7 @@ type ConnectionCreate = {
113
70
  qLogOn?: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
114
71
  /** Descriptive name of the data connection */
115
72
  qName: string;
116
- /** Any logon password associated with the data connection */
73
+ /** Any logon password associated with the data connection (connector encoded) */
117
74
  qPassword?: string;
118
75
  /** Indicates whether or not to create a credential-less connection */
119
76
  qSeparateCredentials?: boolean;
@@ -125,6 +82,8 @@ type ConnectionCreate = {
125
82
  qriInRequest?: string;
126
83
  /** ID of the space to which the connection belongs */
127
84
  space?: string;
85
+ /** List of tags attached to the connection (allow max 32 tags) */
86
+ tags?: string[];
128
87
  };
129
88
  /**
130
89
  * Essential fields of a connection
@@ -133,6 +92,7 @@ type ConnectionCreateResponse = {
133
92
  /** Datetime when the connection was created */
134
93
  created?: string;
135
94
  links?: Link;
95
+ /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
136
96
  privileges: Privilege[];
137
97
  /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
138
98
  qArchitecture: 0 | 1;
@@ -163,6 +123,52 @@ type ConnectionCreateResponse = {
163
123
  /** User ID of the connection's creator */
164
124
  user?: string;
165
125
  };
126
+ /**
127
+ * Essential fields of a connection
128
+ */
129
+ type ConnectionGet = {
130
+ /** List of connection parsed from connection string (only available when query parseConnection=true is set) */
131
+ connectionProperties?: unknown;
132
+ /** Datetime when the connection was created */
133
+ created: string;
134
+ /** Data source ID */
135
+ datasourceID?: string;
136
+ links?: Link;
137
+ /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
138
+ privileges: Privilege[];
139
+ /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
140
+ qArchitecture: 0 | 1;
141
+ /** Connection string for the data connection */
142
+ qConnectStatement: string;
143
+ /** String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data-connections/{qID} */
144
+ qConnectionSecret?: string;
145
+ /** ID of the credential associated with the connection */
146
+ qCredentialsID?: string;
147
+ /** Unique identifier (UUID) for the data connection, must be same as qID */
148
+ qEngineObjectID: string;
149
+ /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
150
+ qID: string;
151
+ /** Indicates the type of user associated with the data connection */
152
+ qLogOn: 0 | 1;
153
+ /** Descriptive name of the data connection */
154
+ qName: string;
155
+ /** Indicates whether or not this is a credential-less connection */
156
+ qSeparateCredentials: boolean;
157
+ /** Type of connection, i.e. provider type of underlying connector */
158
+ qType: string;
159
+ /** Encrypted base Qri string */
160
+ qri?: string;
161
+ /** ID of the space to which the connection belongs */
162
+ space?: string;
163
+ /** List of tags attached to the connection */
164
+ tags?: string[];
165
+ /** Tenant ID of the connection's creator */
166
+ tenant: string;
167
+ /** Datetime when the connection was last updated */
168
+ updated: string;
169
+ /** User ID of the connection's creator */
170
+ user: string;
171
+ };
166
172
  type ConnectionUpdate = {
167
173
  /** ID of the datasource associated with this connection */
168
174
  datasourceID?: string;
@@ -196,11 +202,35 @@ type ConnectionUpdate = {
196
202
  space?: string;
197
203
  };
198
204
  type Connections = {
199
- data?: Connection[];
205
+ data?: ConnectionGet[];
200
206
  errors?: Errors;
201
207
  links?: TopLevelLink;
202
208
  meta?: Meta;
203
209
  };
210
+ /**
211
+ * Schema used to create a connection using a list of connection properties for given datasource
212
+ */
213
+ type DcaasConnectionCreate = {
214
+ /** When set to true, only authentication URL will be returned (i.e. no connection will be created) if datasource supports OAuth, and other properties set in the request will ignored. This property will be ignored if the request is not OAuth or datasource doesn't support OAuth */
215
+ authUrlOnly?: boolean;
216
+ /** Connection properties required to create dataconnection for the given datasource, which is defined by the response of 'GET /v1/data-sources/:{datasourceId}/api-specs' */
217
+ connectionProperties: unknown;
218
+ /** ID of the datasource of the connection */
219
+ datasourceID: string;
220
+ /** Descriptive name of the data connection */
221
+ qName: string;
222
+ /** ID of the space in which the connection shall be created. Connection will be created in user's personal space if undefined */
223
+ space?: string;
224
+ /** List of tags attached to the connection (allow max 31 tags) */
225
+ tags?: string[];
226
+ };
227
+ /**
228
+ * Authentication URL response for OAuth datasources (when authUrlOnly is set to true in request)
229
+ */
230
+ type DcaasConnectionCreateAuthResponse = {
231
+ /** Authentication URL used to generate authentication code for datasources supporting OAuth */
232
+ authUrl: string;
233
+ };
204
234
  type Error = {
205
235
  /** Unique internal error code */
206
236
  code?: string;
@@ -215,6 +245,7 @@ type Errors = Error[];
215
245
  type Link = {
216
246
  /** Link to cirrent query */
217
247
  self: {
248
+ /** URL pointing to the resource */
218
249
  href: string;
219
250
  };
220
251
  };
@@ -235,21 +266,24 @@ type PatchRequest = {
235
266
  /**
236
267
  * Access type allowed on associated data connection
237
268
  */
238
- type Privilege = "list" | "update" | "delete" | "read";
269
+ type Privilege = "list" | "update" | "delete" | "read" | "change_owner" | "change_space";
239
270
  type ResponseErrors = {
240
271
  errors?: Errors;
241
272
  };
242
273
  type TopLevelLink = {
243
274
  /** URL link to next page of requested resources (available to paged request only) */
244
275
  next?: {
276
+ /** URL pointing to the next page of resources */
245
277
  href: string;
246
278
  };
247
279
  /** URL link to previous page of requested resources (available to paged request only) */
248
280
  prev?: {
281
+ /** URL pointing to the previous page of resources */
249
282
  href: string;
250
283
  };
251
284
  /** Link to cirrent query */
252
285
  self: {
286
+ /** URL pointing to the resource */
253
287
  href: string;
254
288
  };
255
289
  };
@@ -264,25 +298,25 @@ declare const getDataConnections: (query: {
264
298
  caseinsensitive?: boolean;
265
299
  /** Provides an alternate name to be used for data[] element in GET response. */
266
300
  dataName?: string;
267
- /** Returns extended list of properties when set to true. */
301
+ /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
268
302
  extended?: boolean;
269
303
  /** Filtering resources by properties (filterable properties only) using SCIM filter string. Note the filter string only applies to connections managed by data-connections service, i.e. filtering doesn't apply to DataFile connections. */
270
304
  filter?: string;
271
305
  /** Base Qri (encrypted) will be returned when the query is set to true, default is false */
272
306
  includeQris?: boolean;
273
- /** Number of resources to be returned */
307
+ /** Number of resources to be returned (between 1 and 100) */
274
308
  limit?: number;
275
309
  /** ICU locale ID, used only when caseinsensitive is set to true, default to 'en' if undefined */
276
310
  locale?: string;
277
311
  /** Datafiles connections will not be returned if set to true */
278
312
  noDatafiles?: boolean;
279
- /** Filtering on conneections, return connections owned by the caller if set to true (doesn't apply to datafiles connectionos) */
313
+ /** Filtering on connections, return connections owned by the caller if set to true (doesn't apply to datafiles connections) */
280
314
  ownedByMe?: boolean;
281
315
  /** Filtering on datafile connections by owner (i.e. app) ID. */
282
316
  owner?: string;
283
317
  /** Pagination sursor string, which is generated auotmatically in previous pagination query. */
284
318
  page?: string;
285
- /** Filtering on connections, connections in personal space will be returned if set to true */
319
+ /** Filtering on personal connections, ignored if spaceId is defined in same request */
286
320
  personal?: boolean;
287
321
  /** Name of field sort on for pagination, with prefix with + or - indicating ascending or descending order. When used for data-connections, sort field only applies to non-datafiles connections. Whatever sorting order is, datafiles connections will be returned after all regular connections being returned. */
288
322
  sort?: string;
@@ -304,14 +338,14 @@ type GetDataConnectionsHttpError = {
304
338
  status: number;
305
339
  };
306
340
  /**
307
- * Creates a connection. Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
341
+ * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
308
342
  *
309
343
  * @param body an object with the body content
310
344
  * @throws CreateDataConnectionHttpError
311
345
  */
312
- declare const createDataConnection: (body: ConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
346
+ declare const createDataConnection: (body: ConnectionCreate | DcaasConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
313
347
  type CreateDataConnectionHttpResponse = {
314
- data: ConnectionCreateResponse;
348
+ data: ConnectionCreateResponse | DcaasConnectionCreateAuthResponse;
315
349
  headers: Headers;
316
350
  status: number;
317
351
  };
@@ -395,7 +429,7 @@ type DeleteDataConnectionHttpError = {
395
429
  status: number;
396
430
  };
397
431
  /**
398
- * Gets a connection by connection ID (or by name when type=connectionname is set in query)
432
+ * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
399
433
  *
400
434
  * @param qID Connection ID
401
435
  * @param query an object with query parameters
@@ -406,17 +440,19 @@ declare const getDataConnection: (qID: string, query: {
406
440
  byCredentialName?: boolean;
407
441
  /** Credential ID */
408
442
  credentialId?: string;
409
- /** Returns extended list of properties when set to true. */
443
+ /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
410
444
  extended?: boolean;
411
445
  /** datafiles connections will be returned from cache by default (if data-connections is configured to use cache), this query parameter is used disable this default behavior, e.g. return an update-to-date datafiles connection if the query is set to true */
412
446
  noCache?: boolean;
447
+ /** List of connection properties shall be returned when the query is set to true, default is false */
448
+ parseConnection?: boolean;
413
449
  /** Filtering on connections by space ID */
414
450
  spaceId?: string;
415
451
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
416
452
  type?: "connectionname" | "credentialname";
417
453
  }, options?: ApiCallOptions) => Promise<GetDataConnectionHttpResponse>;
418
454
  type GetDataConnectionHttpResponse = {
419
- data: Connection;
455
+ data: ConnectionGet;
420
456
  headers: Headers;
421
457
  status: number;
422
458
  };
@@ -484,7 +520,7 @@ interface DataConnectionsAPI {
484
520
  */
485
521
  getDataConnections: typeof getDataConnections;
486
522
  /**
487
- * Creates a connection. Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
523
+ * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
488
524
  *
489
525
  * @param body an object with the body content
490
526
  * @throws CreateDataConnectionHttpError
@@ -520,7 +556,7 @@ interface DataConnectionsAPI {
520
556
  */
521
557
  deleteDataConnection: typeof deleteDataConnection;
522
558
  /**
523
- * Gets a connection by connection ID (or by name when type=connectionname is set in query)
559
+ * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
524
560
  *
525
561
  * @param qID Connection ID
526
562
  * @param query an object with query parameters
@@ -555,4 +591,4 @@ interface DataConnectionsAPI {
555
591
  */
556
592
  declare const dataConnectionsExport: DataConnectionsAPI;
557
593
 
558
- export { type ActionDeleteRequest, type ActionDuplicateRequest, type ActionUpdateRequest, type BulkResponse, type Connection, type ConnectionCreate, type ConnectionCreateResponse, type ConnectionUpdate, type Connections, type CreateDataConnectionHttpError, type CreateDataConnectionHttpResponse, type DataConnectionsAPI, type DeleteDataConnectionHttpError, type DeleteDataConnectionHttpResponse, type DeleteDataConnectionsHttpError, type DeleteDataConnectionsHttpResponse, type DuplicateDataAConnectionHttpError, type DuplicateDataAConnectionHttpResponse, type Error, type Errors, type GetDataConnectionHttpError, type GetDataConnectionHttpResponse, type GetDataConnectionsHttpError, type GetDataConnectionsHttpResponse, type Link, type Meta, type PatchDataConnectionHttpError, type PatchDataConnectionHttpResponse, type PatchRequest, type Privilege, type ResponseErrors, type TopLevelLink, type UpdateDataConnectionHttpError, type UpdateDataConnectionHttpResponse, type UpdateDataConnectionsHttpError, type UpdateDataConnectionsHttpResponse, clearCache, createDataConnection, dataConnectionsExport as default, deleteDataConnection, deleteDataConnections, duplicateDataAConnection, getDataConnection, getDataConnections, patchDataConnection, updateDataConnection, updateDataConnections };
594
+ export { type ActionDeleteRequest, type ActionDuplicateRequest, type ActionUpdateRequest, type BulkResponse, type ConnectionCreate, type ConnectionCreateResponse, type ConnectionGet, type ConnectionUpdate, type Connections, type CreateDataConnectionHttpError, type CreateDataConnectionHttpResponse, type DataConnectionsAPI, type DcaasConnectionCreate, type DcaasConnectionCreateAuthResponse, type DeleteDataConnectionHttpError, type DeleteDataConnectionHttpResponse, type DeleteDataConnectionsHttpError, type DeleteDataConnectionsHttpResponse, type DuplicateDataAConnectionHttpError, type DuplicateDataAConnectionHttpResponse, type Error, type Errors, type GetDataConnectionHttpError, type GetDataConnectionHttpResponse, type GetDataConnectionsHttpError, type GetDataConnectionsHttpResponse, type Link, type Meta, type PatchDataConnectionHttpError, type PatchDataConnectionHttpResponse, type PatchRequest, type Privilege, type ResponseErrors, type TopLevelLink, type UpdateDataConnectionHttpError, type UpdateDataConnectionHttpResponse, type UpdateDataConnectionsHttpError, type UpdateDataConnectionsHttpResponse, clearCache, createDataConnection, dataConnectionsExport as default, deleteDataConnection, deleteDataConnections, duplicateDataAConnection, getDataConnection, getDataConnections, patchDataConnection, updateDataConnection, updateDataConnections };