@keboola/api-client 5.0.0 → 7.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/dist/ai/index.cjs +4 -4
- package/dist/ai/index.d.cts +23 -1
- package/dist/ai/index.d.ts +23 -1
- package/dist/ai/index.js +3 -3
- package/dist/ai/types.d.cts +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/assets/index.cjs +4 -4
- package/dist/assets/index.js +3 -3
- package/dist/chat/index.cjs +4 -4
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-7JOV7PXU.js → chunk-2Q75RQ3X.js} +4 -4
- package/dist/{chunk-7JOV7PXU.js.map → chunk-2Q75RQ3X.js.map} +1 -1
- package/dist/{chunk-7PPUK4HS.js → chunk-4HORTOGH.js} +4 -4
- package/dist/{chunk-7PPUK4HS.js.map → chunk-4HORTOGH.js.map} +1 -1
- package/dist/chunk-4KJRGFNV.cjs +54 -0
- package/dist/chunk-4KJRGFNV.cjs.map +1 -0
- package/dist/{chunk-T7UDL2KI.cjs → chunk-4S3EKVQT.cjs} +9 -9
- package/dist/{chunk-T7UDL2KI.cjs.map → chunk-4S3EKVQT.cjs.map} +1 -1
- package/dist/{chunk-4FU45NEU.js → chunk-54N7LIDM.js} +5 -5
- package/dist/chunk-54N7LIDM.js.map +1 -0
- package/dist/{chunk-MUQ7TAWH.js → chunk-5S4HIHZA.js} +17 -5
- package/dist/chunk-5S4HIHZA.js.map +1 -0
- package/dist/{chunk-WOGG723K.cjs → chunk-5XKPYMQL.cjs} +8 -5
- package/dist/chunk-5XKPYMQL.cjs.map +1 -0
- package/dist/{chunk-S7HIK7XY.js → chunk-5YTV36EI.js} +4 -4
- package/dist/{chunk-S7HIK7XY.js.map → chunk-5YTV36EI.js.map} +1 -1
- package/dist/{chunk-XRHAE4SD.js → chunk-6S4JS7OJ.js} +3 -3
- package/dist/{chunk-XRHAE4SD.js.map → chunk-6S4JS7OJ.js.map} +1 -1
- package/dist/{chunk-DOUFVJJF.cjs → chunk-AK4ZHM77.cjs} +6 -6
- package/dist/{chunk-DOUFVJJF.cjs.map → chunk-AK4ZHM77.cjs.map} +1 -1
- package/dist/chunk-BBRS2HLH.cjs +46 -0
- package/dist/chunk-BBRS2HLH.cjs.map +1 -0
- package/dist/chunk-BZO2GTJP.js +44 -0
- package/dist/chunk-BZO2GTJP.js.map +1 -0
- package/dist/{chunk-AB6LHU2Z.cjs → chunk-CFRR7QPR.cjs} +12 -12
- package/dist/chunk-CFRR7QPR.cjs.map +1 -0
- package/dist/{chunk-XHQZ4TF7.cjs → chunk-CONUMVLZ.cjs} +7 -7
- package/dist/{chunk-XHQZ4TF7.cjs.map → chunk-CONUMVLZ.cjs.map} +1 -1
- package/dist/{chunk-XI6R76X3.js → chunk-D2SWTZFS.js} +3 -3
- package/dist/{chunk-XI6R76X3.js.map → chunk-D2SWTZFS.js.map} +1 -1
- package/dist/{chunk-5XADEX3R.js → chunk-EEG7YZUY.js} +4 -4
- package/dist/{chunk-5XADEX3R.js.map → chunk-EEG7YZUY.js.map} +1 -1
- package/dist/{chunk-KT4MFNBC.cjs → chunk-FB3E7VS6.cjs} +6 -6
- package/dist/{chunk-KT4MFNBC.cjs.map → chunk-FB3E7VS6.cjs.map} +1 -1
- package/dist/{chunk-OJJ3QLZP.js → chunk-H5DZOHH7.js} +4 -4
- package/dist/{chunk-OJJ3QLZP.js.map → chunk-H5DZOHH7.js.map} +1 -1
- package/dist/{chunk-3CIPWA33.cjs → chunk-IDYRJ4K3.cjs} +4 -4
- package/dist/{chunk-3CIPWA33.cjs.map → chunk-IDYRJ4K3.cjs.map} +1 -1
- package/dist/{chunk-UT3GUUCO.js → chunk-J5JUQRPD.js} +4 -4
- package/dist/{chunk-UT3GUUCO.js.map → chunk-J5JUQRPD.js.map} +1 -1
- package/dist/{chunk-P4CQFG3X.cjs → chunk-J7EQLDUU.cjs} +9 -9
- package/dist/{chunk-P4CQFG3X.cjs.map → chunk-J7EQLDUU.cjs.map} +1 -1
- package/dist/{chunk-KKZP4DUR.cjs → chunk-KCGEV4ZA.cjs} +6 -6
- package/dist/{chunk-KKZP4DUR.cjs.map → chunk-KCGEV4ZA.cjs.map} +1 -1
- package/dist/chunk-MQ554O4E.js +52 -0
- package/dist/chunk-MQ554O4E.js.map +1 -0
- package/dist/chunk-MRHQJNWF.cjs +8 -0
- package/dist/chunk-MRHQJNWF.cjs.map +1 -0
- package/dist/chunk-MSI6FVGG.js +6 -0
- package/dist/chunk-MSI6FVGG.js.map +1 -0
- package/dist/{chunk-2NLVV2MF.js → chunk-N37PZ2MB.js} +3 -3
- package/dist/{chunk-2NLVV2MF.js.map → chunk-N37PZ2MB.js.map} +1 -1
- package/dist/{chunk-OAQGC32L.cjs → chunk-NEN4NIYA.cjs} +26 -14
- package/dist/{chunk-MUQ7TAWH.js.map → chunk-NEN4NIYA.cjs.map} +1 -1
- package/dist/{chunk-V32CB5U2.cjs → chunk-NFGQHJVB.cjs} +6 -6
- package/dist/{chunk-V32CB5U2.cjs.map → chunk-NFGQHJVB.cjs.map} +1 -1
- package/dist/{chunk-RF64RAHW.cjs → chunk-OVGB3W3A.cjs} +19 -7
- package/dist/chunk-OVGB3W3A.cjs.map +1 -0
- package/dist/{chunk-VZROPAWL.cjs → chunk-PWA6XFXA.cjs} +6 -6
- package/dist/{chunk-VZROPAWL.cjs.map → chunk-PWA6XFXA.cjs.map} +1 -1
- package/dist/{chunk-4NUA46VD.js → chunk-QEQAZPWM.js} +4 -4
- package/dist/{chunk-4NUA46VD.js.map → chunk-QEQAZPWM.js.map} +1 -1
- package/dist/chunk-R7MQGDLC.cjs +61 -0
- package/dist/chunk-R7MQGDLC.cjs.map +1 -0
- package/dist/{chunk-7UQVB2SQ.cjs → chunk-RPKKOIYG.cjs} +7 -7
- package/dist/{chunk-7UQVB2SQ.cjs.map → chunk-RPKKOIYG.cjs.map} +1 -1
- package/dist/{chunk-2EWL5BAZ.cjs → chunk-S4PI2LUQ.cjs} +4 -4
- package/dist/{chunk-2EWL5BAZ.cjs.map → chunk-S4PI2LUQ.cjs.map} +1 -1
- package/dist/chunk-SI5TFV5M.js +54 -0
- package/dist/chunk-SI5TFV5M.js.map +1 -0
- package/dist/chunk-TD2PFSP6.js +248 -0
- package/dist/chunk-TD2PFSP6.js.map +1 -0
- package/dist/{chunk-CFR2CKM6.cjs → chunk-TXDMA4CT.cjs} +6 -6
- package/dist/{chunk-CFR2CKM6.cjs.map → chunk-TXDMA4CT.cjs.map} +1 -1
- package/dist/chunk-UYZTOVYS.cjs +252 -0
- package/dist/chunk-UYZTOVYS.cjs.map +1 -0
- package/dist/{chunk-4IBEYSSA.js → chunk-V2MQG3FZ.js} +17 -5
- package/dist/chunk-V2MQG3FZ.js.map +1 -0
- package/dist/{chunk-JKXQFEY7.js → chunk-VFZVLZC6.js} +4 -4
- package/dist/{chunk-JKXQFEY7.js.map → chunk-VFZVLZC6.js.map} +1 -1
- package/dist/chunk-VKHQ6BWE.cjs +30 -0
- package/dist/{chunk-GOC5UODV.cjs.map → chunk-VKHQ6BWE.cjs.map} +1 -1
- package/dist/{chunk-2CTHLPTU.js → chunk-VUVBYSYM.js} +4 -4
- package/dist/{chunk-2CTHLPTU.js.map → chunk-VUVBYSYM.js.map} +1 -1
- package/dist/{chunk-DGWPC6VR.cjs → chunk-W3AFDHXQ.cjs} +7 -7
- package/dist/{chunk-DGWPC6VR.cjs.map → chunk-W3AFDHXQ.cjs.map} +1 -1
- package/dist/{chunk-65YXOZDQ.js → chunk-WILFTDTS.js} +7 -4
- package/dist/chunk-WILFTDTS.js.map +1 -0
- package/dist/{chunk-RPNL672Y.cjs → chunk-XLFQJDYZ.cjs} +4 -4
- package/dist/{chunk-RPNL672Y.cjs.map → chunk-XLFQJDYZ.cjs.map} +1 -1
- package/dist/{chunk-Y3RILILK.js → chunk-Y26EBVMH.js} +4 -4
- package/dist/{chunk-Y3RILILK.js.map → chunk-Y26EBVMH.js.map} +1 -1
- package/dist/{chunk-WLS43HX4.cjs → chunk-YGAWVMHH.cjs} +6 -6
- package/dist/{chunk-WLS43HX4.cjs.map → chunk-YGAWVMHH.cjs.map} +1 -1
- package/dist/{chunk-EDDRN2CO.js → chunk-YIWAUNKU.js} +4 -4
- package/dist/{chunk-EDDRN2CO.js.map → chunk-YIWAUNKU.js.map} +1 -1
- package/dist/{chunk-6DPZQRNC.js → chunk-YLK5KBXD.js} +4 -4
- package/dist/{chunk-6DPZQRNC.js.map → chunk-YLK5KBXD.js.map} +1 -1
- package/dist/{chunk-YH52X52J.js → chunk-ZPSPCPDQ.js} +4 -4
- package/dist/{chunk-YH52X52J.js.map → chunk-ZPSPCPDQ.js.map} +1 -1
- package/dist/dataScience/index.cjs +6 -5
- package/dist/dataScience/index.js +4 -3
- package/dist/domain/permissions/index.cjs +5 -5
- package/dist/domain/permissions/index.d.cts +2 -2
- package/dist/domain/permissions/index.d.ts +2 -2
- package/dist/domain/permissions/index.js +1 -1
- package/dist/editor/index.cjs +4 -4
- package/dist/editor/index.js +3 -3
- package/dist/encryption/index.cjs +4 -4
- package/dist/encryption/index.d.cts +4 -1
- package/dist/encryption/index.d.ts +4 -1
- package/dist/encryption/index.js +3 -3
- package/dist/encryption/types.d.cts +62 -3
- package/dist/encryption/types.d.ts +62 -3
- package/dist/import/index.cjs +4 -4
- package/dist/import/index.js +3 -3
- package/dist/{index-KHRrA2IR.d.cts → index-DzhQuag5.d.cts} +4 -4
- package/dist/{index-BEE_qeId.d.ts → index-G9ZyDi7K.d.ts} +4 -4
- package/dist/index.cjs +133 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3018 -15
- package/dist/index.d.ts +3018 -15
- package/dist/index.js +71 -32
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +6 -6
- package/dist/management/index.d.cts +36 -0
- package/dist/management/index.d.ts +36 -0
- package/dist/management/index.js +4 -4
- package/dist/management/types.d.cts +5 -1
- package/dist/management/types.d.ts +5 -1
- package/dist/metastore/index.cjs +4 -4
- package/dist/metastore/index.js +3 -3
- package/dist/notifications/index.cjs +14 -0
- package/dist/notifications/index.cjs.map +1 -0
- package/dist/notifications/index.d.cts +46 -0
- package/dist/notifications/index.d.ts +46 -0
- package/dist/notifications/index.js +5 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/types.cjs +4 -0
- package/dist/notifications/types.cjs.map +1 -0
- package/dist/notifications/types.d.cts +2 -0
- package/dist/notifications/types.d.ts +2 -0
- package/dist/notifications/types.js +3 -0
- package/dist/notifications/types.js.map +1 -0
- package/dist/oauth/index.cjs +4 -4
- package/dist/oauth/index.js +3 -3
- package/dist/{project-C4K5Dzoy.d.cts → project-C_m_tOgy.d.cts} +1 -1
- package/dist/{project-COwNmNoc.d.ts → project-DQLliCsX.d.ts} +1 -1
- package/dist/queryService/index.cjs +4 -4
- package/dist/queryService/index.js +3 -3
- package/dist/queue/index.cjs +4 -4
- package/dist/queue/index.js +3 -3
- package/dist/registry-Xwk-vCjf.d.cts +417 -0
- package/dist/registry-Xwk-vCjf.d.ts +417 -0
- package/dist/scheduler/index.cjs +14 -0
- package/dist/scheduler/index.cjs.map +1 -0
- package/dist/scheduler/index.d.cts +75 -0
- package/dist/scheduler/index.d.ts +75 -0
- package/dist/scheduler/index.js +5 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/types.cjs +4 -0
- package/dist/scheduler/types.cjs.map +1 -0
- package/dist/scheduler/types.d.cts +372 -0
- package/dist/scheduler/types.d.ts +372 -0
- package/dist/scheduler/types.js +3 -0
- package/dist/scheduler/types.js.map +1 -0
- package/dist/sdk/configurations/index.cjs +8 -8
- package/dist/sdk/configurations/index.cjs.map +1 -1
- package/dist/sdk/configurations/index.d.cts +1256 -10
- package/dist/sdk/configurations/index.d.ts +1256 -10
- package/dist/sdk/configurations/index.js +3 -9
- package/dist/sdk/configurations/index.js.map +1 -1
- package/dist/sdk/storage/index.d.cts +3 -3
- package/dist/sdk/storage/index.d.ts +3 -3
- package/dist/sdk/vault/index.d.cts +2 -1
- package/dist/sdk/vault/index.d.ts +2 -1
- package/dist/status/index.cjs +4 -4
- package/dist/status/index.js +3 -3
- package/dist/storage/index.cjs +4 -4
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +3 -3
- package/dist/storage/types.d.cts +17 -17
- package/dist/storage/types.d.ts +17 -17
- package/dist/{storageSdk--0Hh4UCE.d.ts → storageSdk-TDISOoqX.d.ts} +1 -1
- package/dist/{storageSdk-DJz6WcW3.d.cts → storageSdk-VlBWkuF3.d.cts} +1 -1
- package/dist/stream/index.cjs +4 -4
- package/dist/stream/index.js +3 -3
- package/dist/syncActions/index.cjs +4 -4
- package/dist/syncActions/index.js +3 -3
- package/dist/telemetry/index.cjs +4 -4
- package/dist/telemetry/index.js +3 -3
- package/dist/{types-Dfw6a58i.d.ts → types-BG8yQyYt.d.ts} +3 -2
- package/dist/types-BVldT2vs.d.cts +404 -0
- package/dist/types-CS8MYc2k.d.ts +404 -0
- package/dist/{types-Brx8PoEB.d.cts → types-CfEvz7zi.d.cts} +2 -1
- package/dist/{types-DiC2wKsx.d.cts → types-CvHPHNH0.d.cts} +4 -1
- package/dist/{types-DFbHRDdR.d.ts → types-D3Kkh6yW.d.ts} +4 -1
- package/dist/{types-DcL25GqY.d.cts → types-DJbXfC2q.d.cts} +3 -2
- package/dist/{types-D4CDCW-Y.d.ts → types-sxxmo6h9.d.ts} +2 -1
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.js +3 -3
- package/dist/verify/index.cjs +4 -4
- package/dist/verify/index.d.cts +1 -1
- package/dist/verify/index.d.ts +1 -1
- package/dist/verify/index.js +3 -3
- package/package.json +53 -1
- package/dist/chunk-4FU45NEU.js.map +0 -1
- package/dist/chunk-4I6TJWBG.cjs +0 -38
- package/dist/chunk-4I6TJWBG.cjs.map +0 -1
- package/dist/chunk-4IBEYSSA.js.map +0 -1
- package/dist/chunk-65YXOZDQ.js.map +0 -1
- package/dist/chunk-AB6LHU2Z.cjs.map +0 -1
- package/dist/chunk-FL54VJ35.js +0 -32
- package/dist/chunk-FL54VJ35.js.map +0 -1
- package/dist/chunk-GOC5UODV.cjs +0 -30
- package/dist/chunk-OAQGC32L.cjs.map +0 -1
- package/dist/chunk-RF64RAHW.cjs.map +0 -1
- package/dist/chunk-WOGG723K.cjs.map +0 -1
|
@@ -1,8 +1,67 @@
|
|
|
1
|
+
import { P as ProjectId } from '../types-DJbXfC2q.cjs';
|
|
2
|
+
import '../types-jKnx7Tm_.cjs';
|
|
3
|
+
|
|
4
|
+
type BranchType = 'default' | 'dev';
|
|
5
|
+
type EncryptParamsByScope = {
|
|
6
|
+
/** `KBC::ComponentSecure::` — any config of the component, in any project. */
|
|
7
|
+
ComponentSecure: {
|
|
8
|
+
componentId: string;
|
|
9
|
+
};
|
|
10
|
+
/** `KBC::ProjectSecure::` — the component within one project. */
|
|
11
|
+
ProjectSecure: {
|
|
12
|
+
componentId: string;
|
|
13
|
+
projectId: ProjectId;
|
|
14
|
+
};
|
|
15
|
+
/** `KBC::ConfigSecure::` — one specific configuration. */
|
|
16
|
+
ConfigSecure: {
|
|
17
|
+
componentId: string;
|
|
18
|
+
projectId: ProjectId;
|
|
19
|
+
configId: string;
|
|
20
|
+
};
|
|
21
|
+
/** `KBC::ProjectWideSecure::` — anywhere in one project (component-agnostic). */
|
|
22
|
+
ProjectWideSecure: {
|
|
23
|
+
projectId: ProjectId;
|
|
24
|
+
};
|
|
25
|
+
/** `KBC::BranchTypeSecure::` — the component within a project, scoped to a branch type. */
|
|
26
|
+
BranchTypeSecure: {
|
|
27
|
+
componentId: string;
|
|
28
|
+
projectId: ProjectId;
|
|
29
|
+
branchType: BranchType;
|
|
30
|
+
};
|
|
31
|
+
/** `KBC::BranchTypeConfigSecure::` — one config, scoped to a branch type. */
|
|
32
|
+
BranchTypeConfigSecure: {
|
|
33
|
+
componentId: string;
|
|
34
|
+
projectId: ProjectId;
|
|
35
|
+
configId: string;
|
|
36
|
+
branchType: BranchType;
|
|
37
|
+
};
|
|
38
|
+
/** `KBC::ProjectWideBranchTypeSecure::` — project-wide, scoped to a branch type. */
|
|
39
|
+
ProjectWideBranchTypeSecure: {
|
|
40
|
+
projectId: ProjectId;
|
|
41
|
+
branchType: BranchType;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type EncryptionScope = keyof EncryptParamsByScope;
|
|
45
|
+
/** The required query params for a given encryption scope. */
|
|
46
|
+
type EncryptParams<Scope extends EncryptionScope> = EncryptParamsByScope[Scope];
|
|
47
|
+
/**
|
|
48
|
+
* Discriminated-union input for `encryptScopedSecrets`: a `scope` plus exactly the
|
|
49
|
+
* params that scope requires, plus the `data` to encrypt. The discriminant makes
|
|
50
|
+
* mismatched params (e.g. a `componentId` on a `ProjectWideSecure` call) a compile error.
|
|
51
|
+
*/
|
|
52
|
+
type ScopedSecrets<T extends Record<string, unknown>> = {
|
|
53
|
+
[Scope in EncryptionScope]: {
|
|
54
|
+
scope: Scope;
|
|
55
|
+
} & EncryptParams<Scope> & {
|
|
56
|
+
data: T;
|
|
57
|
+
};
|
|
58
|
+
}[EncryptionScope];
|
|
1
59
|
type EncryptQuery = {
|
|
2
|
-
projectId?:
|
|
3
|
-
branchType?:
|
|
60
|
+
projectId?: ProjectId | null;
|
|
61
|
+
branchType?: BranchType | null;
|
|
4
62
|
componentId?: string | null;
|
|
63
|
+
configId?: string | null;
|
|
5
64
|
};
|
|
6
65
|
type EncryptBody = string | Record<string, unknown>;
|
|
7
66
|
|
|
8
|
-
export type { EncryptBody, EncryptQuery };
|
|
67
|
+
export type { BranchType, EncryptBody, EncryptParams, EncryptParamsByScope, EncryptQuery, EncryptionScope, ScopedSecrets };
|
|
@@ -1,8 +1,67 @@
|
|
|
1
|
+
import { P as ProjectId } from '../types-BG8yQyYt.js';
|
|
2
|
+
import '../types-jKnx7Tm_.js';
|
|
3
|
+
|
|
4
|
+
type BranchType = 'default' | 'dev';
|
|
5
|
+
type EncryptParamsByScope = {
|
|
6
|
+
/** `KBC::ComponentSecure::` — any config of the component, in any project. */
|
|
7
|
+
ComponentSecure: {
|
|
8
|
+
componentId: string;
|
|
9
|
+
};
|
|
10
|
+
/** `KBC::ProjectSecure::` — the component within one project. */
|
|
11
|
+
ProjectSecure: {
|
|
12
|
+
componentId: string;
|
|
13
|
+
projectId: ProjectId;
|
|
14
|
+
};
|
|
15
|
+
/** `KBC::ConfigSecure::` — one specific configuration. */
|
|
16
|
+
ConfigSecure: {
|
|
17
|
+
componentId: string;
|
|
18
|
+
projectId: ProjectId;
|
|
19
|
+
configId: string;
|
|
20
|
+
};
|
|
21
|
+
/** `KBC::ProjectWideSecure::` — anywhere in one project (component-agnostic). */
|
|
22
|
+
ProjectWideSecure: {
|
|
23
|
+
projectId: ProjectId;
|
|
24
|
+
};
|
|
25
|
+
/** `KBC::BranchTypeSecure::` — the component within a project, scoped to a branch type. */
|
|
26
|
+
BranchTypeSecure: {
|
|
27
|
+
componentId: string;
|
|
28
|
+
projectId: ProjectId;
|
|
29
|
+
branchType: BranchType;
|
|
30
|
+
};
|
|
31
|
+
/** `KBC::BranchTypeConfigSecure::` — one config, scoped to a branch type. */
|
|
32
|
+
BranchTypeConfigSecure: {
|
|
33
|
+
componentId: string;
|
|
34
|
+
projectId: ProjectId;
|
|
35
|
+
configId: string;
|
|
36
|
+
branchType: BranchType;
|
|
37
|
+
};
|
|
38
|
+
/** `KBC::ProjectWideBranchTypeSecure::` — project-wide, scoped to a branch type. */
|
|
39
|
+
ProjectWideBranchTypeSecure: {
|
|
40
|
+
projectId: ProjectId;
|
|
41
|
+
branchType: BranchType;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type EncryptionScope = keyof EncryptParamsByScope;
|
|
45
|
+
/** The required query params for a given encryption scope. */
|
|
46
|
+
type EncryptParams<Scope extends EncryptionScope> = EncryptParamsByScope[Scope];
|
|
47
|
+
/**
|
|
48
|
+
* Discriminated-union input for `encryptScopedSecrets`: a `scope` plus exactly the
|
|
49
|
+
* params that scope requires, plus the `data` to encrypt. The discriminant makes
|
|
50
|
+
* mismatched params (e.g. a `componentId` on a `ProjectWideSecure` call) a compile error.
|
|
51
|
+
*/
|
|
52
|
+
type ScopedSecrets<T extends Record<string, unknown>> = {
|
|
53
|
+
[Scope in EncryptionScope]: {
|
|
54
|
+
scope: Scope;
|
|
55
|
+
} & EncryptParams<Scope> & {
|
|
56
|
+
data: T;
|
|
57
|
+
};
|
|
58
|
+
}[EncryptionScope];
|
|
1
59
|
type EncryptQuery = {
|
|
2
|
-
projectId?:
|
|
3
|
-
branchType?:
|
|
60
|
+
projectId?: ProjectId | null;
|
|
61
|
+
branchType?: BranchType | null;
|
|
4
62
|
componentId?: string | null;
|
|
63
|
+
configId?: string | null;
|
|
5
64
|
};
|
|
6
65
|
type EncryptBody = string | Record<string, unknown>;
|
|
7
66
|
|
|
8
|
-
export type { EncryptBody, EncryptQuery };
|
|
67
|
+
export type { BranchType, EncryptBody, EncryptParams, EncryptParamsByScope, EncryptQuery, EncryptionScope, ScopedSecrets };
|
package/dist/import/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkPWA6XFXA_cjs = require('../chunk-PWA6XFXA.cjs');
|
|
4
|
+
require('../chunk-IDYRJ4K3.cjs');
|
|
5
|
+
require('../chunk-R7MQGDLC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createImportClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkPWA6XFXA_cjs.createImportClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/import/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createImportClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createImportClient } from '../chunk-EEG7YZUY.js';
|
|
2
|
+
import '../chunk-D2SWTZFS.js';
|
|
3
|
+
import '../chunk-SI5TFV5M.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components, S as StorageToken, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-
|
|
2
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, UpdateBucketOwnerBody, RefreshExternalBucketQuery, RegisterBucketBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, TableImportAsyncBody, TableImportJob, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, CreateSnapshotBody, Snapshot, SaveMetadataBody, Metadata, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, WorkspaceInputMappingLoadPreviewInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration,
|
|
1
|
+
import { c as components, S as StorageToken, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-DJbXfC2q.cjs';
|
|
2
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, UpdateBucketOwnerBody, RefreshExternalBucketQuery, RegisterBucketBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, TableImportAsyncBody, TableImportJob, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, CreateSnapshotBody, Snapshot, SaveMetadataBody, Metadata, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, WorkspaceInputMappingLoadPreviewInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, CreateConfigurationInput, BaseComponentConfig, ConfigType, PartialKey, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, ListTriggersQuery, CreateTriggerBody, UpdateTriggerBody, GlobalSearchQuery, GlobalSearchResponse, RunIdStats, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
|
|
3
3
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-DxJD6LIN.cjs';
|
|
4
4
|
import { c as createGenericFetchClient } from './createGenericFetchClient-yfcpR7qD.cjs';
|
|
5
5
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-Ci0-Qe53.cjs';
|
|
@@ -1305,12 +1305,12 @@ declare const createStorageClient: ({ baseUrl, token, middlewares, onRefreshToke
|
|
|
1305
1305
|
getComponent: ({ componentId, branchId }: GetComponentPath, signal?: AbortSignal) => Promise<Component>;
|
|
1306
1306
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
1307
1307
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
1308
|
-
createConfiguration: ({ branchId, componentId, ...body }:
|
|
1308
|
+
createConfiguration: ({ branchId, componentId, ...body }: CreateConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
|
|
1309
1309
|
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
1310
1310
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
1311
1311
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
1312
1312
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
1313
|
-
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig
|
|
1313
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
|
|
1314
1314
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
1315
1315
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
1316
1316
|
configIds: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as components, S as StorageToken, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-
|
|
2
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, UpdateBucketOwnerBody, RefreshExternalBucketQuery, RegisterBucketBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, TableImportAsyncBody, TableImportJob, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, CreateSnapshotBody, Snapshot, SaveMetadataBody, Metadata, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, WorkspaceInputMappingLoadPreviewInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration,
|
|
1
|
+
import { c as components, S as StorageToken, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-BG8yQyYt.js';
|
|
2
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, UpdateBucketOwnerBody, RefreshExternalBucketQuery, RegisterBucketBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, TableImportAsyncBody, TableImportJob, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, CreateSnapshotBody, Snapshot, SaveMetadataBody, Metadata, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, WorkspaceInputMappingLoadPreviewInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, CreateConfigurationInput, BaseComponentConfig, ConfigType, PartialKey, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, ListTriggersQuery, CreateTriggerBody, UpdateTriggerBody, GlobalSearchQuery, GlobalSearchResponse, RunIdStats, GetStackInfoQuery, StackInfo } from './storage/types.js';
|
|
3
3
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-DxJD6LIN.js';
|
|
4
4
|
import { c as createGenericFetchClient } from './createGenericFetchClient-Gpom91V-.js';
|
|
5
5
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-B44nXiti.js';
|
|
@@ -1305,12 +1305,12 @@ declare const createStorageClient: ({ baseUrl, token, middlewares, onRefreshToke
|
|
|
1305
1305
|
getComponent: ({ componentId, branchId }: GetComponentPath, signal?: AbortSignal) => Promise<Component>;
|
|
1306
1306
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
1307
1307
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
1308
|
-
createConfiguration: ({ branchId, componentId, ...body }:
|
|
1308
|
+
createConfiguration: ({ branchId, componentId, ...body }: CreateConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
|
|
1309
1309
|
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
1310
1310
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
1311
1311
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
1312
1312
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
1313
|
-
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig
|
|
1313
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
|
|
1314
1314
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
1315
1315
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
1316
1316
|
configIds: string[];
|