@keboola/api-client 52.0.0 → 54.0.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.
- package/AGENTS.md +33 -6
- package/API-SURFACE.md +5 -1
- package/CHANGELOG.md +39 -0
- package/README.md +1 -1
- package/dist/{admin-Di-MmGFP.cjs → admin-BZ7knTd0.cjs} +18 -2
- package/dist/admin-BZ7knTd0.cjs.map +1 -0
- package/dist/{admin-CbMOsfgs.js → admin-xFfHSZHQ.js} +13 -3
- package/dist/admin-xFfHSZHQ.js.map +1 -0
- package/dist/{componentId-DZP1rBix.js → componentId-Cps6WBy1.js} +1 -2
- package/dist/{componentId-DZP1rBix.js.map → componentId-Cps6WBy1.js.map} +1 -1
- package/dist/{componentId-olp0tltf.cjs → componentId-_tRhEv6W.cjs} +1 -2
- package/dist/{componentId-olp0tltf.cjs.map → componentId-_tRhEv6W.cjs.map} +1 -1
- package/dist/{configurations-WI8H4zLk.cjs → configurations-BM63ep1s.cjs} +2 -2
- package/dist/{configurations-WI8H4zLk.cjs.map → configurations-BM63ep1s.cjs.map} +1 -1
- package/dist/{configurations-Cd6Nsox-.js → configurations-BqvtIQm4.js} +2 -2
- package/dist/{configurations-Cd6Nsox-.js.map → configurations-BqvtIQm4.js.map} +1 -1
- package/dist/constants/index.cjs +4 -3
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +3 -2
- package/dist/{constants-Dqi0ewGv.js → constants-DLPkpnGv.js} +4 -32
- package/dist/{constants-Dqi0ewGv.js.map → constants-DLPkpnGv.js.map} +1 -1
- package/dist/{constants-d0Do9NSN.cjs → constants-Day8CU5i.cjs} +3 -37
- package/dist/{constants-d0Do9NSN.cjs.map → constants-Day8CU5i.cjs.map} +1 -1
- package/dist/domain/permissions/index.cjs +4 -3
- package/dist/domain/permissions/index.d.cts +9 -1
- package/dist/domain/permissions/index.d.ts +9 -1
- package/dist/domain/permissions/index.js +4 -4
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/{index-Df8lZNSH.d.cts → index-B04rWq_0.d.cts} +2 -2
- package/dist/{index-B7el5pJU.d.cts → index-BtvWJBYh.d.cts} +20 -7
- package/dist/{index-B5rELADq.d.cts → index-Cd0naVic.d.cts} +2 -2
- package/dist/{index-CveF5RFQ.d.ts → index-DCfumWzq.d.ts} +2 -2
- package/dist/{index-81wn1jc3.d.cts → index-DX7qciZA.d.cts} +36 -2
- package/dist/{index-Dhyrg5zd.d.ts → index-DbStyQKc.d.ts} +2 -2
- package/dist/{index-C7JcNvbd.d.ts → index-Df30jjpZ.d.ts} +20 -7
- package/dist/{index-JoKfPQND.d.ts → index-DzqHh0lE.d.ts} +36 -2
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/{management-Cz5ut18k.js → management-BAfg8BmK.js} +45 -4
- package/dist/management-BAfg8BmK.js.map +1 -0
- package/dist/{management-CUXgB2rb.cjs → management-BuNIc7Mr.cjs} +45 -4
- package/dist/management-BuNIc7Mr.cjs.map +1 -0
- package/dist/metaObject-CSGF3d-o.js +53 -0
- package/dist/metaObject-CSGF3d-o.js.map +1 -0
- package/dist/metaObject-Ciyow2gr.cjs +64 -0
- package/dist/metaObject-Ciyow2gr.cjs.map +1 -0
- package/dist/metaObject-ClvW342q.d.ts +35 -0
- package/dist/metaObject-D7oudegV.d.cts +35 -0
- package/dist/oauth/index.cjs +2 -1
- package/dist/oauth/index.d.cts +34 -2
- package/dist/oauth/index.d.ts +34 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/types.d.cts +2 -2
- package/dist/oauth/types.d.ts +2 -2
- package/dist/{oauth-CSBChWuf.cjs → oauth-CXcrilOp.cjs} +47 -1
- package/dist/oauth-CXcrilOp.cjs.map +1 -0
- package/dist/{oauth-DOveZKUv.js → oauth-Ci0qeaS2.js} +43 -3
- package/dist/oauth-Ci0qeaS2.js.map +1 -0
- package/dist/{project-Onf-IcPW.cjs → project-BQ2oD6IW.cjs} +2 -2
- package/dist/{project-Onf-IcPW.cjs.map → project-BQ2oD6IW.cjs.map} +1 -1
- package/dist/{project-DmuC0bMK.js → project-aAVAOcmx.js} +2 -2
- package/dist/{project-DmuC0bMK.js.map → project-aAVAOcmx.js.map} +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/queryService-B4h1Ez44.cjs +117 -0
- package/dist/queryService-B4h1Ez44.cjs.map +1 -0
- package/dist/queryService-DE_yE_S4.js +106 -0
- package/dist/queryService-DE_yE_S4.js.map +1 -0
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/readJwtClaims-CMZ3cNC_.js +28 -0
- package/dist/readJwtClaims-CMZ3cNC_.js.map +1 -0
- package/dist/readJwtClaims-SVJgo04x.cjs +33 -0
- package/dist/readJwtClaims-SVJgo04x.cjs.map +1 -0
- package/dist/sdk/configurations/index.cjs +2 -2
- package/dist/sdk/configurations/index.d.cts +2 -2
- package/dist/sdk/configurations/index.d.ts +2 -2
- package/dist/sdk/configurations/index.js +2 -2
- package/dist/sdk/dataAppServer/index.cjs +230 -0
- package/dist/sdk/dataAppServer/index.cjs.map +1 -0
- package/dist/sdk/dataAppServer/index.d.cts +55 -0
- package/dist/sdk/dataAppServer/index.d.ts +55 -0
- package/dist/sdk/dataAppServer/index.js +228 -0
- package/dist/sdk/dataAppServer/index.js.map +1 -0
- package/dist/sdk/developerPortal/index.cjs +3 -15
- package/dist/sdk/developerPortal/index.cjs.map +1 -1
- package/dist/sdk/developerPortal/index.js +3 -15
- package/dist/sdk/developerPortal/index.js.map +1 -1
- package/dist/sdk/queryService/index.cjs +3 -70
- package/dist/sdk/queryService/index.d.cts +2 -2
- package/dist/sdk/queryService/index.d.ts +2 -2
- package/dist/sdk/queryService/index.js +1 -70
- package/dist/sdk/securityPolicy/index.cjs +355 -0
- package/dist/sdk/securityPolicy/index.cjs.map +1 -0
- package/dist/sdk/securityPolicy/index.d.cts +100 -0
- package/dist/sdk/securityPolicy/index.d.ts +100 -0
- package/dist/sdk/securityPolicy/index.js +342 -0
- package/dist/sdk/securityPolicy/index.js.map +1 -0
- package/dist/sdk/securityPolicy/types.cjs +0 -0
- package/dist/sdk/securityPolicy/types.d.cts +2 -0
- package/dist/sdk/securityPolicy/types.d.ts +2 -0
- package/dist/sdk/securityPolicy/types.js +1 -0
- package/dist/sdk/semanticLayer/index.cjs +3 -2
- package/dist/sdk/semanticLayer/index.d.cts +8 -3
- package/dist/sdk/semanticLayer/index.d.ts +8 -3
- package/dist/sdk/semanticLayer/index.js +3 -1
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/{semanticLayer-djom-J78.cjs → semanticLayer-BVpdWKJn.cjs} +19 -52
- package/dist/semanticLayer-BVpdWKJn.cjs.map +1 -0
- package/dist/{semanticLayer-BdPW_wLo.js → semanticLayer-Btj1Qy9O.js} +20 -47
- package/dist/semanticLayer-Btj1Qy9O.js.map +1 -0
- package/dist/serviceIds-Bg1pWiPE.cjs +37 -0
- package/dist/serviceIds-Bg1pWiPE.cjs.map +1 -0
- package/dist/serviceIds-RAVtP4nK.js +32 -0
- package/dist/serviceIds-RAVtP4nK.js.map +1 -0
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/types.d.cts +2 -2
- package/dist/storage/types.d.ts +2 -2
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/{syncActions-DToUhyP3.cjs → syncActions-CR7xvuIv.cjs} +2 -2
- package/dist/{syncActions-DToUhyP3.cjs.map → syncActions-CR7xvuIv.cjs.map} +1 -1
- package/dist/{syncActions-DV_aObTQ.js → syncActions-CU4cIGRf.js} +2 -2
- package/dist/{syncActions-DV_aObTQ.js.map → syncActions-CU4cIGRf.js.map} +1 -1
- package/dist/{types-CLtYOszN.d.cts → types-B7FKoyfy.d.cts} +442 -2
- package/dist/{types-iU1Sc1IM.d.ts → types-BDgOF2WN.d.ts} +6 -29
- package/dist/types-BXKL0wTI.d.cts +85 -0
- package/dist/{types-Ey59ZILC.d.ts → types-COb2O9c1.d.ts} +442 -2
- package/dist/{types-DjWubjvP.d.cts → types-CaBcgsT2.d.cts} +121 -53
- package/dist/{types-BljDxuWG.d.cts → types-DCARsJWs.d.cts} +6 -29
- package/dist/{types-CsVRsObb.d.ts → types-DFcj9YyQ.d.ts} +121 -53
- package/dist/types-DK1bSUNr.d.ts +85 -0
- package/package.json +40 -1
- package/surface/management.md +5 -0
- package/surface/sdk.md +2 -0
- package/dist/admin-CbMOsfgs.js.map +0 -1
- package/dist/admin-Di-MmGFP.cjs.map +0 -1
- package/dist/management-CUXgB2rb.cjs.map +0 -1
- package/dist/management-Cz5ut18k.js.map +0 -1
- package/dist/oauth-CSBChWuf.cjs.map +0 -1
- package/dist/oauth-DOveZKUv.js.map +0 -1
- package/dist/sdk/queryService/index.cjs.map +0 -1
- package/dist/sdk/queryService/index.js.map +0 -1
- package/dist/semanticLayer-BdPW_wLo.js.map +0 -1
- package/dist/semanticLayer-djom-J78.cjs.map +0 -1
|
@@ -210,14 +210,15 @@ type paths = {
|
|
|
210
210
|
* registration is usable):
|
|
211
211
|
*
|
|
212
212
|
* * Repository permissions: Contents → Read-only; Organization permissions: Members →
|
|
213
|
-
* Read-only (the
|
|
213
|
+
* Read-only (the callback needs it to confirm the user connecting owns the GitHub
|
|
214
214
|
* organization).
|
|
215
|
-
* * "Where can this GitHub App be installed?" → Any account
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* `/platform-consumers/github-app/callback
|
|
219
|
-
*
|
|
220
|
-
*
|
|
215
|
+
* * "Where can this GitHub App be installed?" → Any account, for an App that third parties
|
|
216
|
+
* install.
|
|
217
|
+
* * The App's Callback URL list must include this service's
|
|
218
|
+
* `/platform-consumers/github-app/callback`: connecting goes through the App's OAuth web
|
|
219
|
+
* flow with that URL as `redirect_uri`. "Request user authorization (OAuth) during
|
|
220
|
+
* installation" is not needed; when it is on, the redirect GitHub sends right after an
|
|
221
|
+
* install has no `state` and is answered with directions to connect from Keboola.
|
|
221
222
|
* * `clientId` / `clientSecret` come from the same App's page ("Client ID", "Generate a new
|
|
222
223
|
* client secret") — they are not the App ID and private key.
|
|
223
224
|
*
|
|
@@ -265,10 +266,11 @@ type paths = {
|
|
|
265
266
|
cookie?: never;
|
|
266
267
|
};
|
|
267
268
|
/**
|
|
268
|
-
* GitHub App
|
|
269
|
-
* @description Invoked by GitHub, not by API consumers. This is the App's Callback
|
|
270
|
-
* the GitHub side and identical for every
|
|
271
|
-
* segment — the organization is recovered from the install session that `state`
|
|
269
|
+
* GitHub App OAuth callback
|
|
270
|
+
* @description Invoked by GitHub, not by API consumers. This is one of the App's Callback URLs, configured
|
|
271
|
+
* once on the GitHub side and identical for every connection, which is why it carries no
|
|
272
|
+
* organization segment — the organization is recovered from the install session that `state`
|
|
273
|
+
* resolves to.
|
|
272
274
|
*
|
|
273
275
|
* It is the only endpoint that records an installation, and it requires no Keboola credential.
|
|
274
276
|
* Three things authorise it, all of them necessary:
|
|
@@ -276,22 +278,29 @@ type paths = {
|
|
|
276
278
|
* 1. `state` must match the `__Host-orgInstallSession` cookie set when the flow started (the
|
|
277
279
|
* legacy `oauthSessionId` cookie is ignored here);
|
|
278
280
|
* 2. `state` must resolve to an unexpired install session;
|
|
279
|
-
* 3. the
|
|
280
|
-
* the
|
|
281
|
-
* user
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
* collaborator or an ordinary member is not enough.
|
|
281
|
+
* 3. the user who authorized (`code`, exchanged for a user-to-server token) must own the
|
|
282
|
+
* account the bound installation belongs to: an active owner of that organization
|
|
283
|
+
* (`GET /user/memberships/orgs/{login}` → `role: admin`, `state: active`) or, for a
|
|
284
|
+
* personal account, that very user (`GET /user`). Being a collaborator or an ordinary
|
|
285
|
+
* member is not enough. This is why the App needs "Organization members: read".
|
|
285
286
|
*
|
|
286
|
-
*
|
|
287
|
-
* the "Organization members: read" permission. Installation ids are small sequential
|
|
288
|
-
* integers, so without that confirmation anyone able to start an install for an organization
|
|
289
|
-
* they do administer could bind a stranger's installation and mint read tokens on that
|
|
290
|
-
* stranger's private repositories.
|
|
287
|
+
* Which installation is bound:
|
|
291
288
|
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
289
|
+
* * **OAuth web flow** (started by `POST /authorize/organizations/{organizationId}`; only
|
|
290
|
+
* `code` and `state` come back): the App's installations the user can reach
|
|
291
|
+
* (`GET /user/installations`, all pages), narrowed to the `account` given at the start if
|
|
292
|
+
* any, each run through check 3. Exactly one owned installation is connected. None
|
|
293
|
+
* installed is a `400` and none owned a `403`, both naming the App's install page
|
|
294
|
+
* `{webBaseUrl}/apps/{slug}/installations/new`; several owned without `account` is a `400`
|
|
295
|
+
* naming them — start again with `account`.
|
|
296
|
+
* * **No `state`** — GitHub's redirect after an install started on GitHub, for an App that
|
|
297
|
+
* requests user authorization during installation: a `400` saying the connection has to
|
|
298
|
+
* be started from Keboola. Nothing is asked of GitHub or recorded.
|
|
299
|
+
*
|
|
300
|
+
* Any `installation_id` GitHub adds to the query is ignored. Installation ids are small
|
|
301
|
+
* sequential integers: believing one would let anyone able to start a connection for an
|
|
302
|
+
* organization they do administer bind a stranger's installation and mint read tokens on
|
|
303
|
+
* that stranger's private repositories.
|
|
295
304
|
*
|
|
296
305
|
* An organization holds at most one connection per GitHub account and registration. When the
|
|
297
306
|
* account is already connected under a *different* installation id — the App was
|
|
@@ -318,23 +327,30 @@ type paths = {
|
|
|
318
327
|
put?: never;
|
|
319
328
|
/**
|
|
320
329
|
* Connect a GitHub organization
|
|
321
|
-
* @description Starts
|
|
330
|
+
* @description Starts connecting a GitHub organization and redirects to the GitHub App's OAuth web flow,
|
|
331
|
+
* `{webBaseUrl}/login/oauth/authorize?client_id=…&redirect_uri=…&state=…`, where
|
|
332
|
+
* `redirect_uri` is this service's `/platform-consumers/github-app/callback`. GitHub signs
|
|
333
|
+
* the user in, asks them to authorize the App the first time, and returns to the callback,
|
|
334
|
+
* which connects the installation the user owns (or the one on `account`). The App must
|
|
335
|
+
* already be installed on the GitHub organization — by anyone, from anywhere; the callback
|
|
336
|
+
* links the install page if it is not.
|
|
322
337
|
*
|
|
323
|
-
* Submitted by the browser as a form — a top-level navigation
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
338
|
+
* Submitted by the browser as a form — a top-level navigation from the organization's page
|
|
339
|
+
* in the Control Panel — with the caller's Manage API token in the `manageToken` form field,
|
|
340
|
+
* verified by this service with `GET /manage/tokens/verify`. The token must have a user
|
|
341
|
+
* behind it: the Control Panel's session token or a personal Manage token. An application
|
|
342
|
+
* token is refused with `403`; a token Manage API does not know, or reports as expired or
|
|
343
|
+
* disabled, with `401`. Storage API tokens and programmatic `kbc_pat_*` tokens are not
|
|
344
|
+
* accepted. The token establishes only *who* the
|
|
345
|
+
* caller is, and it is never stored.
|
|
328
346
|
*
|
|
329
347
|
* The organization is taken from the URL and the caller must be an administrator of it — `GET /manage/organizations/{id}/users` is
|
|
330
348
|
* Connection's organization administrators listing, so appearing in it is the admin check.
|
|
331
|
-
*
|
|
332
|
-
* across several organizations and the project-to-organization link is invisible in the UI.
|
|
349
|
+
* Super admins who are not listed are refused.
|
|
333
350
|
*
|
|
334
351
|
* The credentials row is created incomplete and only becomes usable once the install
|
|
335
352
|
* callback records the installation. Starting again under the name of an incomplete row (an
|
|
336
|
-
* abandoned tab
|
|
337
|
-
* its session; otherwise the `app:expire-auth-sessions` cron sweeps it after an hour. A name
|
|
353
|
+
* abandoned tab or a refused callback) replaces that row and its session; otherwise the `app:expire-auth-sessions` cron sweeps it after an hour. A name
|
|
338
354
|
* already taken by a completed connection is a `409`.
|
|
339
355
|
*
|
|
340
356
|
* The response sets the session cookie `__Host-orgInstallSession` (Secure, HttpOnly,
|
|
@@ -366,7 +382,8 @@ type paths = {
|
|
|
366
382
|
/**
|
|
367
383
|
* List connected GitHub organizations
|
|
368
384
|
* @description Lists the GitHub accounts this Keboola organization has connected. Connections whose
|
|
369
|
-
* install never completed are omitted.
|
|
385
|
+
* install never completed are omitted. The caller must be an administrator of the
|
|
386
|
+
* organization; see `ManageApiUserToken` for the accepted tokens.
|
|
370
387
|
*/
|
|
371
388
|
get: operations['organizationCredentialsList'];
|
|
372
389
|
put?: never;
|
|
@@ -423,7 +440,8 @@ type paths = {
|
|
|
423
440
|
/**
|
|
424
441
|
* Disconnect a GitHub organization
|
|
425
442
|
* @description Removes the connection on the Keboola side. The App stays installed on GitHub until an
|
|
426
|
-
* owner removes it there.
|
|
443
|
+
* owner removes it there. The caller must be an administrator of the organization; see
|
|
444
|
+
* `ManageApiUserToken` for the accepted tokens.
|
|
427
445
|
*/
|
|
428
446
|
delete: operations['organizationCredentialsDelete'];
|
|
429
447
|
options?: never;
|
|
@@ -555,8 +573,8 @@ type components = {
|
|
|
555
573
|
webHost?: string;
|
|
556
574
|
};
|
|
557
575
|
OrganizationCredentialsInitRequest: {
|
|
558
|
-
/** @description
|
|
559
|
-
|
|
576
|
+
/** @description Manage API token of the caller with a user behind it (the Control Panel's session token or a personal Manage token); identifies who they are */
|
|
577
|
+
manageToken: string;
|
|
560
578
|
/**
|
|
561
579
|
* @description Unique within the organization.
|
|
562
580
|
* @example acme-github
|
|
@@ -564,7 +582,7 @@ type components = {
|
|
|
564
582
|
name: string;
|
|
565
583
|
/**
|
|
566
584
|
* Format: url
|
|
567
|
-
* @description Where
|
|
585
|
+
* @description Where the browser returns after the connection completes. Must be https.
|
|
568
586
|
*/
|
|
569
587
|
returnUrl: string;
|
|
570
588
|
description?: string | null;
|
|
@@ -573,6 +591,11 @@ type components = {
|
|
|
573
591
|
* @example acme.ghe.com
|
|
574
592
|
*/
|
|
575
593
|
host?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* @description The GitHub account (organization or user login, case-insensitive) to connect. Needed only when the caller owns several accounts the GitHub App is installed on; omitted, the callback connects the only one.
|
|
596
|
+
* @example acme
|
|
597
|
+
*/
|
|
598
|
+
account?: string | null;
|
|
576
599
|
};
|
|
577
600
|
OrganizationCredentials: {
|
|
578
601
|
/** Format: uuid */
|
|
@@ -590,8 +613,22 @@ type components = {
|
|
|
590
613
|
*/
|
|
591
614
|
host?: string;
|
|
592
615
|
creator?: {
|
|
616
|
+
/** @description ID of the token the connection was started with. */
|
|
593
617
|
id?: string;
|
|
618
|
+
/** @description Description of that token; for the Control Panel's session token, the user's email. */
|
|
594
619
|
description?: string | null;
|
|
620
|
+
/**
|
|
621
|
+
* @description Which API the token belongs to. Connections are started with a Manage API token; `storage` marks connections started with a Storage API token before that.
|
|
622
|
+
* @enum {string}
|
|
623
|
+
*/
|
|
624
|
+
type?: 'manage' | 'storage';
|
|
625
|
+
/** @description The user behind the Manage API token. A session token expires after about an hour, so this is what still says who connected the organization. Null for `storage`. */
|
|
626
|
+
user?: {
|
|
627
|
+
/** @example 76 */
|
|
628
|
+
id?: string;
|
|
629
|
+
/** @example admin@keboola.com */
|
|
630
|
+
email?: string | null;
|
|
631
|
+
} | null;
|
|
595
632
|
};
|
|
596
633
|
/** Format: date-time */
|
|
597
634
|
created?: string;
|
|
@@ -1247,15 +1284,11 @@ interface operations {
|
|
|
1247
1284
|
};
|
|
1248
1285
|
platformConsumerInstallCallback: {
|
|
1249
1286
|
parameters: {
|
|
1250
|
-
query
|
|
1251
|
-
/** @description
|
|
1252
|
-
installation_id?: string;
|
|
1253
|
-
/** @description Temporary user authorization code. Present only when the App has "Request user authorization (OAuth) during installation" enabled; the callback exchanges it for a user-to-server token and verifies installation ownership with it. */
|
|
1287
|
+
query?: {
|
|
1288
|
+
/** @description Temporary user authorization code; exchanged for a user-to-server token that identifies the user and verifies installation ownership. Missing when the user did not authorize the App (`error=access_denied`). */
|
|
1254
1289
|
code?: string;
|
|
1255
|
-
/** @description
|
|
1256
|
-
|
|
1257
|
-
/** @description Opaque install-session ID issued when the flow started. */
|
|
1258
|
-
state: string;
|
|
1290
|
+
/** @description Opaque install-session ID issued when the flow started. Required; GitHub omits it on the redirect after an install started on GitHub, which is answered with a `400`. */
|
|
1291
|
+
state?: string;
|
|
1259
1292
|
};
|
|
1260
1293
|
header?: never;
|
|
1261
1294
|
path?: never;
|
|
@@ -1270,8 +1303,16 @@ interface operations {
|
|
|
1270
1303
|
};
|
|
1271
1304
|
content?: never;
|
|
1272
1305
|
};
|
|
1273
|
-
|
|
1274
|
-
|
|
1306
|
+
/** @description No `state` (the connection has to be started from Keboola); no matching session cookie or an expired session; no `code`, or GitHub rejected it; the App is not installed on any account the user can reach (or on the requested `account`) — the message links the install page; or the user owns several accounts with the App installed and no `account` was given — the message names them */
|
|
1307
|
+
400: {
|
|
1308
|
+
headers: {
|
|
1309
|
+
[name: string]: unknown;
|
|
1310
|
+
};
|
|
1311
|
+
content: {
|
|
1312
|
+
'application/json': components['schemas']['Error'];
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
/** @description The user owns none of the accounts the App is installed on that they can reach (or not the requested `account`): neither an active owner of the organization nor the personal account itself. The message links the install page, or names an organization enforcing SAML SSO the user's GitHub session is not authorized for. Also when the App lacks "Organization members: read" */
|
|
1275
1316
|
403: {
|
|
1276
1317
|
headers: {
|
|
1277
1318
|
[name: string]: unknown;
|
|
@@ -1289,6 +1330,24 @@ interface operations {
|
|
|
1289
1330
|
'application/json': components['schemas']['Error'];
|
|
1290
1331
|
};
|
|
1291
1332
|
};
|
|
1333
|
+
/** @description GitHub is rate limiting requests; see `Retry-After` */
|
|
1334
|
+
429: {
|
|
1335
|
+
headers: {
|
|
1336
|
+
[name: string]: unknown;
|
|
1337
|
+
};
|
|
1338
|
+
content: {
|
|
1339
|
+
'application/json': components['schemas']['Error'];
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
/** @description GitHub failed or returned a malformed answer */
|
|
1343
|
+
502: {
|
|
1344
|
+
headers: {
|
|
1345
|
+
[name: string]: unknown;
|
|
1346
|
+
};
|
|
1347
|
+
content: {
|
|
1348
|
+
'application/json': components['schemas']['Error'];
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1292
1351
|
};
|
|
1293
1352
|
};
|
|
1294
1353
|
organizationCredentialsInit: {
|
|
@@ -1307,7 +1366,7 @@ interface operations {
|
|
|
1307
1366
|
};
|
|
1308
1367
|
};
|
|
1309
1368
|
responses: {
|
|
1310
|
-
/** @description Redirect to GitHub
|
|
1369
|
+
/** @description Redirect to the GitHub App's OAuth web flow (`/login/oauth/authorize`) */
|
|
1311
1370
|
302: {
|
|
1312
1371
|
headers: {
|
|
1313
1372
|
[name: string]: unknown;
|
|
@@ -1315,6 +1374,7 @@ interface operations {
|
|
|
1315
1374
|
content?: never;
|
|
1316
1375
|
};
|
|
1317
1376
|
400: components['responses']['400_BadRequest'];
|
|
1377
|
+
401: components['responses']['401_Unauthorized'];
|
|
1318
1378
|
403: components['responses']['403_Forbidden'];
|
|
1319
1379
|
/** @description A completed connection with this name already exists in the organization */
|
|
1320
1380
|
409: {
|
|
@@ -1526,5 +1586,13 @@ type CredentialInput = ComponentPath & {
|
|
|
1526
1586
|
type CreateCredentialInput = ComponentPath & Omit<CreateCredentialBody, '#data'> & {
|
|
1527
1587
|
data: Record<string, unknown>;
|
|
1528
1588
|
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1589
|
+
type OrganizationCredentials = OpenapiReturnType<paths['/organizations/{organizationId}/credentials']['get']>[number];
|
|
1590
|
+
type ManageTokenInput = {
|
|
1591
|
+
/** A Manage API token with a user behind it, e.g. the Control Panel's session token. */
|
|
1592
|
+
manageToken: string;
|
|
1593
|
+
};
|
|
1594
|
+
type GetOrganizationCredentialsInput = OpenapiPathType<paths['/organizations/{organizationId}/credentials']['get']> & ManageTokenInput;
|
|
1595
|
+
type DeleteOrganizationCredentialsInput = OpenapiPathType<paths['/organizations/{organizationId}/credentials/{id}']['delete']> & ManageTokenInput;
|
|
1596
|
+
type GetOrganizationConnectFormInput = OpenapiPathType<paths['/authorize/organizations/{organizationId}']['post']> & OpenapiBodyType<paths['/authorize/organizations/{organizationId}']['post']>;
|
|
1597
|
+
export { CredentialInput as a, GetOrganizationConnectFormInput as c, OrganizationCredentials as d, GetCredentialsInput as f, Credential as i, GetOrganizationCredentialsInput as l, CreateCredentialBody as n, CredentialPath as o, CreateCredentialInput as r, DeleteOrganizationCredentialsInput as s, ComponentPath as t, OrganizationConnection as u };
|
|
1598
|
+
//# sourceMappingURL=types-CaBcgsT2.d.cts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { i as CreateMetaObjectInput } from "./types-CIlBSV99.cjs";
|
|
2
2
|
import { n as createMetastoreClient } from "./index-CNJBmCHM.cjs";
|
|
3
|
+
import { n as MetastoreObjectMeta, t as MetastoreObject } from "./metaObject-D7oudegV.cjs";
|
|
3
4
|
/**
|
|
4
5
|
* The closed value sets the metastore accepts on a semantic object.
|
|
5
6
|
*
|
|
@@ -133,34 +134,10 @@ type SemanticChildObjectDataMap = {
|
|
|
133
134
|
type SemanticChildObjectType = keyof SemanticChildObjectDataMap;
|
|
134
135
|
type SemanticObjectType = SemanticChildObjectType | 'semantic-model';
|
|
135
136
|
type SemanticObjectScope = (typeof SEMANTIC_OBJECT_SCOPES)[number];
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
organizationId?: string;
|
|
141
|
-
revision?: number;
|
|
142
|
-
schemaVersion?: string;
|
|
143
|
-
createdAt?: string;
|
|
144
|
-
lastUpdated?: string;
|
|
145
|
-
revisionCreatedAt?: string;
|
|
146
|
-
scope?: SemanticObjectScope;
|
|
147
|
-
sourceProjectId?: number;
|
|
148
|
-
/** The projects a `targeted` object is shared with, read-only. */
|
|
149
|
-
targetProjectIds?: number[];
|
|
150
|
-
/** Set while a `project`-scope object awaits an org-admin decision. Cleared by promoting
|
|
151
|
-
* (PATCH `{scope:"organization"}`) or withdrawing the request. */
|
|
152
|
-
scopeElevationRequestedAt?: string;
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Normalized metastore object as returned by this SDK. Matches the live metastore
|
|
156
|
-
* envelope ({ type, id, attributes: <data payload>, meta: {...} }), which differs
|
|
157
|
-
* from the legacy wrapper types in clients/metastore/repository/types.ts.
|
|
158
|
-
*/
|
|
159
|
-
type SemanticObject<TData> = {
|
|
160
|
-
uuid: string;
|
|
161
|
-
data: TData;
|
|
162
|
-
meta: SemanticObjectMeta;
|
|
163
|
-
};
|
|
137
|
+
/** The metastore envelope's `meta`; shared with every metastore object family. */
|
|
138
|
+
type SemanticObjectMeta = MetastoreObjectMeta;
|
|
139
|
+
/** A semantic-layer object as this SDK returns it, in the shared metastore envelope. */
|
|
140
|
+
type SemanticObject<TData> = MetastoreObject<TData>;
|
|
164
141
|
type CreateSemanticObjectMeta = Omit<CreateMetaObjectInput, 'data' | 'objectType'>;
|
|
165
142
|
/**
|
|
166
143
|
* Meta for a CONTENT update. `scope` is deliberately absent: a scope change is a separate PATCH
|
|
@@ -195,4 +172,4 @@ type SemanticUnreadableObjectRef = {
|
|
|
195
172
|
modelUUID: string | null;
|
|
196
173
|
};
|
|
197
174
|
export { CONSTRAINT_TYPES as A, SemanticRuleExpression as C, UpdateSemanticObjectMeta as D, SemanticValidationQuery as E, SQL_DIALECTS as F, RELATIONSHIP_JOIN_TYPES as M, RULE_OPERATORS as N, CONSTRAINT_SCOPES as O, SEMANTIC_OBJECT_SCOPES as P, SemanticRelationshipJoinType as S, SemanticUnreadableObjectRef as T, SemanticObject as _, SemanticChildObjectType as a, SemanticObjectType as b, SemanticConstraintSeverity as c, SemanticFieldData as d, SemanticFieldRole as f, SemanticModelData as g, SemanticModelChildRef as h, SemanticChildObjectDataMap as i, FIELD_ROLES as j, CONSTRAINT_SEVERITIES as k, SemanticConstraintType as l, SemanticMetricData as m, MetastoreClient as n, SemanticConstraintData as o, SemanticGlossaryData as p, SemanticAiMetadata as r, SemanticConstraintScope as s, CreateSemanticObjectMeta as t, SemanticDatasetData as u, SemanticObjectMeta as v, SemanticRuleOperator as w, SemanticRelationshipData as x, SemanticObjectScope as y };
|
|
198
|
-
//# sourceMappingURL=types-
|
|
175
|
+
//# sourceMappingURL=types-DCARsJWs.d.cts.map
|