@keboola/api-client 5.0.0 → 6.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-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-MUQ7TAWH.js → chunk-JDFNUP4M.js} +5 -5
- package/dist/{chunk-MUQ7TAWH.js.map → chunk-JDFNUP4M.js.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-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-OAQGC32L.cjs → chunk-TWP7DBSZ.cjs} +14 -14
- package/dist/{chunk-OAQGC32L.cjs.map → chunk-TWP7DBSZ.cjs.map} +1 -1
- 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 +2982 -15
- package/dist/index.d.ts +2982 -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.js +4 -4
- 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-RF64RAHW.cjs.map +0 -1
- package/dist/chunk-WOGG723K.cjs.map +0 -1
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { c as OpenapiQueryType, d as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-jKnx7Tm_.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was auto-generated by openapi-typescript.
|
|
5
|
+
* Do not make direct changes to the file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type paths = {
|
|
9
|
+
'/events/{eventName}': {
|
|
10
|
+
parameters: {
|
|
11
|
+
query?: never;
|
|
12
|
+
header?: never;
|
|
13
|
+
path?: never;
|
|
14
|
+
cookie?: never;
|
|
15
|
+
};
|
|
16
|
+
get?: never;
|
|
17
|
+
put?: never;
|
|
18
|
+
/**
|
|
19
|
+
* Notify the service about an event
|
|
20
|
+
* @description Notify service about an event. The event is stored in the service and processes asynchronously later.
|
|
21
|
+
*
|
|
22
|
+
* Requires a Manage API application token (or ServiceAccount JWT) carrying the
|
|
23
|
+
* `notifications:push-event` scope.
|
|
24
|
+
*/
|
|
25
|
+
post: operations['postEvent'];
|
|
26
|
+
delete?: never;
|
|
27
|
+
options?: never;
|
|
28
|
+
head?: never;
|
|
29
|
+
patch?: never;
|
|
30
|
+
trace?: never;
|
|
31
|
+
};
|
|
32
|
+
'/project-subscriptions': {
|
|
33
|
+
parameters: {
|
|
34
|
+
query?: never;
|
|
35
|
+
header?: never;
|
|
36
|
+
path?: never;
|
|
37
|
+
cookie?: never;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* List existing project-level subscriptions
|
|
41
|
+
* @description List all existing subscriptions for the project (project is resolved from the request authorization token).
|
|
42
|
+
*/
|
|
43
|
+
get: operations['listSubscriptions'];
|
|
44
|
+
put?: never;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new project-level notification subscription
|
|
47
|
+
* @description Subscribe a recipient for notifictions on given event type.
|
|
48
|
+
*
|
|
49
|
+
* By default, a notification is sent to all occurences of the event. You can set `filters` which are then matched
|
|
50
|
+
* against event data to subscribe to more specific situations.
|
|
51
|
+
*/
|
|
52
|
+
post: operations['createSubscription'];
|
|
53
|
+
delete?: never;
|
|
54
|
+
options?: never;
|
|
55
|
+
head?: never;
|
|
56
|
+
patch?: never;
|
|
57
|
+
trace?: never;
|
|
58
|
+
};
|
|
59
|
+
'/project-subscriptions/{subscriptionId}': {
|
|
60
|
+
parameters: {
|
|
61
|
+
query?: never;
|
|
62
|
+
header?: never;
|
|
63
|
+
path?: never;
|
|
64
|
+
cookie?: never;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Get subscription details
|
|
68
|
+
* @description Get subscription details.
|
|
69
|
+
*/
|
|
70
|
+
get: operations['getSubscription'];
|
|
71
|
+
put?: never;
|
|
72
|
+
post?: never;
|
|
73
|
+
/**
|
|
74
|
+
* Delete existing subscription
|
|
75
|
+
* @description Delete existing subscription.
|
|
76
|
+
*/
|
|
77
|
+
delete: operations['deleteSubscription'];
|
|
78
|
+
options?: never;
|
|
79
|
+
head?: never;
|
|
80
|
+
patch?: never;
|
|
81
|
+
trace?: never;
|
|
82
|
+
};
|
|
83
|
+
'/notifications': {
|
|
84
|
+
parameters: {
|
|
85
|
+
query?: never;
|
|
86
|
+
header?: never;
|
|
87
|
+
path?: never;
|
|
88
|
+
cookie?: never;
|
|
89
|
+
};
|
|
90
|
+
get?: never;
|
|
91
|
+
put?: never;
|
|
92
|
+
/**
|
|
93
|
+
* Send a direct notification
|
|
94
|
+
* @description Send a direct notification to a specific recipient email without requiring a subscription.
|
|
95
|
+
*
|
|
96
|
+
* Requires a Manage API application token (or ServiceAccount JWT) carrying the
|
|
97
|
+
* `notifications:send-notification` scope.
|
|
98
|
+
*/
|
|
99
|
+
post: operations['postNotification'];
|
|
100
|
+
delete?: never;
|
|
101
|
+
options?: never;
|
|
102
|
+
head?: never;
|
|
103
|
+
patch?: never;
|
|
104
|
+
trace?: never;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
type components = {
|
|
108
|
+
schemas: {
|
|
109
|
+
/** @example 1234 */
|
|
110
|
+
NumericString: string;
|
|
111
|
+
Notification: {
|
|
112
|
+
id: components['schemas']['NumericString'];
|
|
113
|
+
};
|
|
114
|
+
/** @example job-failed */
|
|
115
|
+
EventName: string;
|
|
116
|
+
NewProjectSubscription: {
|
|
117
|
+
event: components['schemas']['EventName'];
|
|
118
|
+
/** @example 2023-01-07T14:00:00+01:00 */
|
|
119
|
+
expiresAt?: string;
|
|
120
|
+
/** @example 1234 */
|
|
121
|
+
projectId: string;
|
|
122
|
+
filters?: {
|
|
123
|
+
field?: string;
|
|
124
|
+
value?: string | number | boolean;
|
|
125
|
+
}[];
|
|
126
|
+
recipient:
|
|
127
|
+
| components['schemas']['RecipientChannel_Email']
|
|
128
|
+
| components['schemas']['RecipientChannel_Webhook'];
|
|
129
|
+
};
|
|
130
|
+
ProjectSubscription: {
|
|
131
|
+
id?: components['schemas']['NumericString'];
|
|
132
|
+
} & components['schemas']['NewProjectSubscription'];
|
|
133
|
+
RecipientChannel_Email: {
|
|
134
|
+
/**
|
|
135
|
+
* @description discriminator enum property added by openapi-typescript
|
|
136
|
+
* @enum {string}
|
|
137
|
+
*/
|
|
138
|
+
channel: 'RecipientChannel_Email';
|
|
139
|
+
/** Format: email */
|
|
140
|
+
address: string;
|
|
141
|
+
};
|
|
142
|
+
RecipientChannel_Webhook: {
|
|
143
|
+
/**
|
|
144
|
+
* @description discriminator enum property added by openapi-typescript
|
|
145
|
+
* @enum {string}
|
|
146
|
+
*/
|
|
147
|
+
channel: 'RecipientChannel_Webhook';
|
|
148
|
+
/** Format: uri */
|
|
149
|
+
url: string;
|
|
150
|
+
};
|
|
151
|
+
Error: {
|
|
152
|
+
/** @example The value foobar is invalid */
|
|
153
|
+
error: string;
|
|
154
|
+
/** @example 400 */
|
|
155
|
+
code: number;
|
|
156
|
+
/** @enum {string} */
|
|
157
|
+
status: 'error';
|
|
158
|
+
/** @example job-runner-1234567890 */
|
|
159
|
+
exceptionId?: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
responses: {
|
|
163
|
+
/** @description Invalid input data */
|
|
164
|
+
BadRequest: {
|
|
165
|
+
headers: {
|
|
166
|
+
[name: string]: unknown;
|
|
167
|
+
};
|
|
168
|
+
content: {
|
|
169
|
+
'application/json': components['schemas']['Error'];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/** @description Unauthorized request */
|
|
173
|
+
Unauthorized: {
|
|
174
|
+
headers: {
|
|
175
|
+
[name: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
content: {
|
|
178
|
+
'application/json': components['schemas']['Error'];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
parameters: never;
|
|
183
|
+
requestBodies: never;
|
|
184
|
+
headers: never;
|
|
185
|
+
pathItems: never;
|
|
186
|
+
};
|
|
187
|
+
type operations = {
|
|
188
|
+
postEvent: {
|
|
189
|
+
parameters: {
|
|
190
|
+
query?: never;
|
|
191
|
+
header?: never;
|
|
192
|
+
path: {
|
|
193
|
+
/** @description Name of the event */
|
|
194
|
+
eventName: components['schemas']['EventName'];
|
|
195
|
+
};
|
|
196
|
+
cookie?: never;
|
|
197
|
+
};
|
|
198
|
+
requestBody?: {
|
|
199
|
+
content: {
|
|
200
|
+
'application/json': Record<string, never>;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
responses: {
|
|
204
|
+
/** @description Event accepted for processing */
|
|
205
|
+
202: {
|
|
206
|
+
headers: {
|
|
207
|
+
[name: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
content?: never;
|
|
210
|
+
};
|
|
211
|
+
400: components['responses']['BadRequest'];
|
|
212
|
+
401: components['responses']['Unauthorized'];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
listSubscriptions: {
|
|
216
|
+
parameters: {
|
|
217
|
+
query?: {
|
|
218
|
+
/** @description Name of the event */
|
|
219
|
+
event?: components['schemas']['EventName'];
|
|
220
|
+
};
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
requestBody?: never;
|
|
226
|
+
responses: {
|
|
227
|
+
/** @description Subscriptions list. */
|
|
228
|
+
200: {
|
|
229
|
+
headers: {
|
|
230
|
+
[name: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
content: {
|
|
233
|
+
'application/json': components['schemas']['ProjectSubscription'][];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
400: components['responses']['BadRequest'];
|
|
237
|
+
401: components['responses']['Unauthorized'];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
createSubscription: {
|
|
241
|
+
parameters: {
|
|
242
|
+
query?: never;
|
|
243
|
+
header?: never;
|
|
244
|
+
path?: never;
|
|
245
|
+
cookie?: never;
|
|
246
|
+
};
|
|
247
|
+
requestBody?: {
|
|
248
|
+
content: {
|
|
249
|
+
'application/json': components['schemas']['NewProjectSubscription'];
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
responses: {
|
|
253
|
+
/** @description Subscription created */
|
|
254
|
+
201: {
|
|
255
|
+
headers: {
|
|
256
|
+
[name: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
content: {
|
|
259
|
+
'application/json': components['schemas']['ProjectSubscription'];
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
400: components['responses']['BadRequest'];
|
|
263
|
+
401: components['responses']['Unauthorized'];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
getSubscription: {
|
|
267
|
+
parameters: {
|
|
268
|
+
query?: never;
|
|
269
|
+
header?: never;
|
|
270
|
+
path: {
|
|
271
|
+
/** @description ID of the subscription */
|
|
272
|
+
subscriptionId: number;
|
|
273
|
+
};
|
|
274
|
+
cookie?: never;
|
|
275
|
+
};
|
|
276
|
+
requestBody?: never;
|
|
277
|
+
responses: {
|
|
278
|
+
/** @description Subscription deleted. */
|
|
279
|
+
204: {
|
|
280
|
+
headers: {
|
|
281
|
+
[name: string]: unknown;
|
|
282
|
+
};
|
|
283
|
+
content: {
|
|
284
|
+
'application/json': components['schemas']['ProjectSubscription'];
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
401: components['responses']['Unauthorized'];
|
|
288
|
+
/** @description Subscription does not exist for the current project. */
|
|
289
|
+
404: {
|
|
290
|
+
headers: {
|
|
291
|
+
[name: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
content?: never;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
deleteSubscription: {
|
|
298
|
+
parameters: {
|
|
299
|
+
query?: never;
|
|
300
|
+
header?: never;
|
|
301
|
+
path: {
|
|
302
|
+
/** @description ID of the subscription */
|
|
303
|
+
subscriptionId: number;
|
|
304
|
+
};
|
|
305
|
+
cookie?: never;
|
|
306
|
+
};
|
|
307
|
+
requestBody?: never;
|
|
308
|
+
responses: {
|
|
309
|
+
/** @description Subscription deleted. */
|
|
310
|
+
204: {
|
|
311
|
+
headers: {
|
|
312
|
+
[name: string]: unknown;
|
|
313
|
+
};
|
|
314
|
+
content?: never;
|
|
315
|
+
};
|
|
316
|
+
401: components['responses']['Unauthorized'];
|
|
317
|
+
/** @description Subscription does not exist for the current project. */
|
|
318
|
+
404: {
|
|
319
|
+
headers: {
|
|
320
|
+
[name: string]: unknown;
|
|
321
|
+
};
|
|
322
|
+
content?: never;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
postNotification: {
|
|
327
|
+
parameters: {
|
|
328
|
+
query?: never;
|
|
329
|
+
header?: never;
|
|
330
|
+
path?: never;
|
|
331
|
+
cookie?: never;
|
|
332
|
+
};
|
|
333
|
+
requestBody?: {
|
|
334
|
+
content: {
|
|
335
|
+
'application/json': {
|
|
336
|
+
/**
|
|
337
|
+
* @description Type of notification to send
|
|
338
|
+
* @enum {string}
|
|
339
|
+
*/
|
|
340
|
+
type: 'direct-project-email' | 'direct-project-webhook';
|
|
341
|
+
recipient:
|
|
342
|
+
| components['schemas']['RecipientChannel_Email']
|
|
343
|
+
| components['schemas']['RecipientChannel_Webhook'];
|
|
344
|
+
/** @description Event data according to notification type schema */
|
|
345
|
+
data: {
|
|
346
|
+
project: {
|
|
347
|
+
/** @description Project ID */
|
|
348
|
+
id: string;
|
|
349
|
+
/** @description Project name */
|
|
350
|
+
name: string;
|
|
351
|
+
};
|
|
352
|
+
/** @description Optional flow information */
|
|
353
|
+
flow?: {
|
|
354
|
+
/** @description Flow ID */
|
|
355
|
+
id: string;
|
|
356
|
+
/** @description Flow name */
|
|
357
|
+
name: string;
|
|
358
|
+
/**
|
|
359
|
+
* Format: url
|
|
360
|
+
* @description Flow URL
|
|
361
|
+
*/
|
|
362
|
+
url: string;
|
|
363
|
+
};
|
|
364
|
+
/** @description Optional job information */
|
|
365
|
+
job?: {
|
|
366
|
+
/** @description Job ID */
|
|
367
|
+
id: string;
|
|
368
|
+
/**
|
|
369
|
+
* Format: url
|
|
370
|
+
* @description Job URL
|
|
371
|
+
*/
|
|
372
|
+
url: string;
|
|
373
|
+
};
|
|
374
|
+
/** @description Notification title */
|
|
375
|
+
title: string;
|
|
376
|
+
/** @description Notification message */
|
|
377
|
+
message: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
responses: {
|
|
383
|
+
/** @description Notification accepted for processing */
|
|
384
|
+
202: {
|
|
385
|
+
headers: {
|
|
386
|
+
[name: string]: unknown;
|
|
387
|
+
};
|
|
388
|
+
content: {
|
|
389
|
+
'application/json': components['schemas']['Notification'];
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
400: components['responses']['BadRequest'];
|
|
393
|
+
401: components['responses']['Unauthorized'];
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
type ListSubscriptionsQuery = OpenapiQueryType<paths['/project-subscriptions']['get']>;
|
|
399
|
+
type CreateSubscriptionBody = OpenapiBodyType<paths['/project-subscriptions']['post']>;
|
|
400
|
+
type ProjectSubscription = OpenapiReturnType<paths['/project-subscriptions/{subscriptionId}']['get']>;
|
|
401
|
+
type GetSubscriptionPath = OpenapiPathType<paths['/project-subscriptions/{subscriptionId}']['get']>;
|
|
402
|
+
type DeleteSubscriptionPath = OpenapiPathType<paths['/project-subscriptions/{subscriptionId}']['delete']>;
|
|
403
|
+
|
|
404
|
+
export type { CreateSubscriptionBody as C, DeleteSubscriptionPath as D, GetSubscriptionPath as G, ListSubscriptionsQuery as L, ProjectSubscription as P, components as c };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createEncryptionClient } from './encryption/index.cjs';
|
|
2
|
+
import { P as ProjectId } from './types-DJbXfC2q.cjs';
|
|
2
3
|
import { createVaultClient } from './vault/index.cjs';
|
|
3
4
|
|
|
4
5
|
type VaultClient = ReturnType<typeof createVaultClient>;
|
|
5
6
|
type EncryptionClient = ReturnType<typeof createEncryptionClient>;
|
|
6
7
|
type EncryptionCtx = {
|
|
7
|
-
projectId:
|
|
8
|
+
projectId: ProjectId;
|
|
8
9
|
defaultBranchId: string;
|
|
9
10
|
};
|
|
10
11
|
|
|
@@ -1404,5 +1404,8 @@ type SuggestComponentBody = OpenapiBodyType<paths['/suggest/component']['post']>
|
|
|
1404
1404
|
type ComponentSuggestion = OpenapiReturnType<paths['/suggest/component']['post']>;
|
|
1405
1405
|
type DescribeConfigurationBody = OpenapiBodyType<paths['/describe/configuration']['post']>;
|
|
1406
1406
|
type ObjectDescription = OpenapiReturnType<paths['/describe/configuration']['post']>;
|
|
1407
|
+
type DocsQuestionBody = OpenapiBodyType<paths['/docs/question']['post']>;
|
|
1408
|
+
type DocsAnswer = OpenapiReturnType<paths['/docs/question']['post']>;
|
|
1409
|
+
type ComponentDocsDetail = OpenapiReturnType<paths['/docs/components/{componentId}']['get']>;
|
|
1407
1410
|
|
|
1408
|
-
export type {
|
|
1411
|
+
export type { ComponentDocsDetail as C, DescribeConfigurationVersionBody as D, ExplainErrorBody as E, FeedbackBody as F, ObjectDescription as O, SuggestComponentBody as S, DescribeConfigurationMergeBody as a, DescribeConfigurationBody as b, components as c, DocsQuestionBody as d, ComponentSuggestion as e, DocsAnswer as f, ErrorExplanation as g };
|
|
@@ -1404,5 +1404,8 @@ type SuggestComponentBody = OpenapiBodyType<paths['/suggest/component']['post']>
|
|
|
1404
1404
|
type ComponentSuggestion = OpenapiReturnType<paths['/suggest/component']['post']>;
|
|
1405
1405
|
type DescribeConfigurationBody = OpenapiBodyType<paths['/describe/configuration']['post']>;
|
|
1406
1406
|
type ObjectDescription = OpenapiReturnType<paths['/describe/configuration']['post']>;
|
|
1407
|
+
type DocsQuestionBody = OpenapiBodyType<paths['/docs/question']['post']>;
|
|
1408
|
+
type DocsAnswer = OpenapiReturnType<paths['/docs/question']['post']>;
|
|
1409
|
+
type ComponentDocsDetail = OpenapiReturnType<paths['/docs/components/{componentId}']['get']>;
|
|
1407
1410
|
|
|
1408
|
-
export type {
|
|
1411
|
+
export type { ComponentDocsDetail as C, DescribeConfigurationVersionBody as D, ExplainErrorBody as E, FeedbackBody as F, ObjectDescription as O, SuggestComponentBody as S, DescribeConfigurationMergeBody as a, DescribeConfigurationBody as b, components as c, DocsQuestionBody as d, ComponentSuggestion as e, DocsAnswer as f, ErrorExplanation as g };
|
|
@@ -15721,8 +15721,9 @@ declare const AdminRoles: {
|
|
|
15721
15721
|
|
|
15722
15722
|
type Backend = (typeof Backends)[keyof typeof Backends];
|
|
15723
15723
|
type AdminRole = (typeof AdminRoles)[keyof typeof AdminRoles];
|
|
15724
|
+
type ProjectId = number;
|
|
15724
15725
|
type StorageTokenOwner = {
|
|
15725
|
-
id:
|
|
15726
|
+
id: ProjectId;
|
|
15726
15727
|
name: string;
|
|
15727
15728
|
type: string;
|
|
15728
15729
|
region: string;
|
|
@@ -15817,4 +15818,4 @@ type ShareTokenBody = {
|
|
|
15817
15818
|
message?: string;
|
|
15818
15819
|
};
|
|
15819
15820
|
|
|
15820
|
-
export { type AdminRole as A, type Backend as B, type CreateTokenBody as C, KeboolaHttpHeader as K, type StorageToken as S, type TokenListItem as T, type UpdateTokenBody as U, type CreateTokenResponse as a, type ShareTokenBody as b, type components as c, type paths as p };
|
|
15821
|
+
export { type AdminRole as A, type Backend as B, type CreateTokenBody as C, KeboolaHttpHeader as K, type ProjectId as P, type StorageToken as S, type TokenListItem as T, type UpdateTokenBody as U, type CreateTokenResponse as a, type ShareTokenBody as b, type components as c, type paths as p };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createEncryptionClient } from './encryption/index.js';
|
|
2
|
+
import { P as ProjectId } from './types-BG8yQyYt.js';
|
|
2
3
|
import { createVaultClient } from './vault/index.js';
|
|
3
4
|
|
|
4
5
|
type VaultClient = ReturnType<typeof createVaultClient>;
|
|
5
6
|
type EncryptionClient = ReturnType<typeof createEncryptionClient>;
|
|
6
7
|
type EncryptionCtx = {
|
|
7
|
-
projectId:
|
|
8
|
+
projectId: ProjectId;
|
|
8
9
|
defaultBranchId: string;
|
|
9
10
|
};
|
|
10
11
|
|
package/dist/vault/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkRPKKOIYG_cjs = require('../chunk-RPKKOIYG.cjs');
|
|
4
|
+
require('../chunk-IDYRJ4K3.cjs');
|
|
5
|
+
require('../chunk-R7MQGDLC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createVaultClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkRPKKOIYG_cjs.createVaultClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/vault/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createVaultClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createVaultClient } from '../chunk-ZPSPCPDQ.js';
|
|
2
|
+
import '../chunk-D2SWTZFS.js';
|
|
3
|
+
import '../chunk-SI5TFV5M.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/verify/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkVKHQ6BWE_cjs = require('../chunk-VKHQ6BWE.cjs');
|
|
4
|
+
require('../chunk-IDYRJ4K3.cjs');
|
|
5
|
+
require('../chunk-R7MQGDLC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createVerifyClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkVKHQ6BWE_cjs.createVerifyClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/verify/index.d.cts
CHANGED
package/dist/verify/index.d.ts
CHANGED
package/dist/verify/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createVerifyClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createVerifyClient } from '../chunk-4HORTOGH.js';
|
|
2
|
+
import '../chunk-D2SWTZFS.js';
|
|
3
|
+
import '../chunk-SI5TFV5M.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keboola/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "TypeScript SDK for Keboola APIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -67,12 +67,24 @@
|
|
|
67
67
|
"metastore/types": [
|
|
68
68
|
"./dist/metastore/types.d.ts"
|
|
69
69
|
],
|
|
70
|
+
"notifications": [
|
|
71
|
+
"./dist/notifications/index.d.ts"
|
|
72
|
+
],
|
|
73
|
+
"notifications/types": [
|
|
74
|
+
"./dist/notifications/types.d.ts"
|
|
75
|
+
],
|
|
70
76
|
"oauth": [
|
|
71
77
|
"./dist/oauth/index.d.ts"
|
|
72
78
|
],
|
|
73
79
|
"oauth/types": [
|
|
74
80
|
"./dist/oauth/types.d.ts"
|
|
75
81
|
],
|
|
82
|
+
"scheduler": [
|
|
83
|
+
"./dist/scheduler/index.d.ts"
|
|
84
|
+
],
|
|
85
|
+
"scheduler/types": [
|
|
86
|
+
"./dist/scheduler/types.d.ts"
|
|
87
|
+
],
|
|
76
88
|
"queryService": [
|
|
77
89
|
"./dist/queryService/index.d.ts"
|
|
78
90
|
],
|
|
@@ -374,6 +386,26 @@
|
|
|
374
386
|
"default": "./dist/metastore/types.cjs"
|
|
375
387
|
}
|
|
376
388
|
},
|
|
389
|
+
"./notifications": {
|
|
390
|
+
"import": {
|
|
391
|
+
"types": "./dist/notifications/index.d.ts",
|
|
392
|
+
"default": "./dist/notifications/index.js"
|
|
393
|
+
},
|
|
394
|
+
"require": {
|
|
395
|
+
"types": "./dist/notifications/index.d.cts",
|
|
396
|
+
"default": "./dist/notifications/index.cjs"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"./notifications/types": {
|
|
400
|
+
"import": {
|
|
401
|
+
"types": "./dist/notifications/types.d.ts",
|
|
402
|
+
"default": "./dist/notifications/types.js"
|
|
403
|
+
},
|
|
404
|
+
"require": {
|
|
405
|
+
"types": "./dist/notifications/types.d.cts",
|
|
406
|
+
"default": "./dist/notifications/types.cjs"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
377
409
|
"./oauth": {
|
|
378
410
|
"import": {
|
|
379
411
|
"types": "./dist/oauth/index.d.ts",
|
|
@@ -384,6 +416,26 @@
|
|
|
384
416
|
"default": "./dist/oauth/index.cjs"
|
|
385
417
|
}
|
|
386
418
|
},
|
|
419
|
+
"./scheduler": {
|
|
420
|
+
"import": {
|
|
421
|
+
"types": "./dist/scheduler/index.d.ts",
|
|
422
|
+
"default": "./dist/scheduler/index.js"
|
|
423
|
+
},
|
|
424
|
+
"require": {
|
|
425
|
+
"types": "./dist/scheduler/index.d.cts",
|
|
426
|
+
"default": "./dist/scheduler/index.cjs"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"./scheduler/types": {
|
|
430
|
+
"import": {
|
|
431
|
+
"types": "./dist/scheduler/types.d.ts",
|
|
432
|
+
"default": "./dist/scheduler/types.js"
|
|
433
|
+
},
|
|
434
|
+
"require": {
|
|
435
|
+
"types": "./dist/scheduler/types.d.cts",
|
|
436
|
+
"default": "./dist/scheduler/types.cjs"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
387
439
|
"./oauth/types": {
|
|
388
440
|
"import": {
|
|
389
441
|
"types": "./dist/oauth/types.d.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/clients/dataScience/schemas.ts","../src/clients/dataScience/utils.ts","../src/clients/dataScience/dataScienceClient.ts"],"names":[],"mappings":";;;;;;AAEO,IAAM,YAAc,CAAA,CAAA,MAAA,CAAO;AAAA,EAChC,SAAW,CAAA,CAAA,MAAA,CAAO;AAAA,IAChB,MAAQ,CAAA,CAAA,MAAA;AAAO,GAChB;AACH,CAAC,CAAA;ACDD,KAAA,CAAM,OAAO,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AE,QAAQ,CAAA;AAE3F,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAEA,EAAA,MAAM,gBAAA,GAAmB,OACvB,KAAA,EACA,MAAA,KACG;AACH,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,MAAA,CAAO,IAAA;AAAA,MAC5B,8BAAA;AAAA,MACA,EAAE,IAAA,EAAM,EAAE,KAAA,EAAM,EAAE;AAAA,MAClB,EAAE,MAAA;AAAO,KACX;AAEA,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAEA,EAAA,MAAM,WAAA,GAAc,OAAO,MAAA,KAAyB;AAClD,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,MAAA,CAAO,GAAA,CAAI,WAAA,EAAa,EAAC,EAAG,EAAE,MAAA,EAAQ,CAAA;AAE7D,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAEA,EAAA,MAAM,UAAA,GAAa,OAAO,KAAA,EAAgC,MAAA,KAAyB;AACjF,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,OAAO,GAAA,CAAI,oBAAA,EAAsB,EAAE,IAAA,EAAM,EAAE,KAAA,EAAM,EAAE,EAAG,EAAE,QAAQ,CAAA;AAEvF,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAEA,EAAA,OAAO;AAAA,IACL,UAAA;AAAA,IACA,SAAA;AAAA,IACA,kBAAA;AAAA,IACA,cAAA;AAAA,IACA,OAAA;AAAA,IACA,MAAA;AAAA,IACA,SAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,cAAA;AAAA,IACA,gBAAA;AAAA,IACA,WAAA;AAAA,IACA;AAAA,GACF;AACF","file":"chunk-4FU45NEU.js","sourcesContent":["import * as z from 'zod';\n\nexport const TailError = z.object({\n context: z.object({\n code: z.string(),\n }),\n});\n","import dayjs from 'dayjs';\nimport utc from 'dayjs/plugin/utc';\n\nimport type { RawAppRun } from './types';\n\ndayjs.extend(utc);\n\nexport type LogEntry = {\n timestamp: string | null;\n message: string;\n};\n\nconst ISO_TIMESTAMP_REGEX = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z/;\nconst LEADING_ISO_TIMESTAMP_REGEX = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z)\\s?/;\n\nconst tryParseJsonl = (line: string): LogEntry | null => {\n if (!line.startsWith('{')) return null;\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n return null;\n }\n\n if (typeof parsed !== 'object' || parsed === null) return null;\n\n const record = parsed as Record<string, unknown>;\n const { timestamp, message } = record;\n\n if (typeof timestamp !== 'string' || typeof message !== 'string') return null;\n\n return {\n timestamp,\n message,\n };\n};\n\nconst parsePlainTextLine = (line: string): LogEntry => {\n const match = line.match(LEADING_ISO_TIMESTAMP_REGEX);\n if (match) {\n return { timestamp: match[1]!, message: line.slice(match[0].length) };\n }\n return { timestamp: null, message: line };\n};\n\nexport const parseLogLine = (line: string): LogEntry =>\n tryParseJsonl(line) ?? parsePlainTextLine(line);\n\nconst toLogEntryFromObject = (raw: Record<string, unknown>): LogEntry | null => {\n if (typeof raw.message !== 'string') return null;\n return {\n timestamp: typeof raw.timestamp === 'string' ? raw.timestamp : null,\n message: raw.message,\n };\n};\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && value !== null && !Array.isArray(value);\n\nexport const parseLogLines = (raw: unknown): LogEntry[] => {\n if (raw === null || raw === undefined || raw === '') return [];\n\n if (Array.isArray(raw)) {\n return raw.flatMap((item) => {\n if (typeof item === 'string') return item === '' ? [] : [parseLogLine(item)];\n if (isPlainObject(item)) {\n const entry = toLogEntryFromObject(item);\n return entry ? [entry] : [];\n }\n return [];\n });\n }\n\n if (isPlainObject(raw)) {\n const entry = toLogEntryFromObject(raw);\n return entry ? [entry] : [];\n }\n\n if (typeof raw !== 'string') return [];\n\n const lines = raw.split('\\n');\n const entries: LogEntry[] = [];\n for (const line of lines) {\n if (line === '') continue;\n entries.push(parseLogLine(line));\n }\n return entries;\n};\n\nexport const parseLastLogTimestamp = (logs: unknown) => {\n const entries = parseLogLines(logs);\n for (let i = entries.length - 1; i >= 0; i--) {\n const entry = entries[i];\n if (!entry) continue;\n if (entry.timestamp) return entry.timestamp;\n\n // A plain-text line may carry a timestamp embedded mid-line (legacy format).\n const match = entry.message.match(ISO_TIMESTAMP_REGEX);\n if (match) return match[0];\n }\n return null;\n};\n\nexport const calculateNextLogTimestamp = (timestamp: string | null) => {\n if (timestamp === null) return null;\n return dayjs(timestamp).utc().add(1, 'second').utc().format();\n};\n\nexport const prepareAppRun = (appRun: RawAppRun) => {\n return {\n ...appRun,\n state: appRun.state ?? (appRun.stoppedAt ? 'finished' : 'running'), // fallback state for historic non migrated runs\n };\n};\n","import { HttpStatus, KeboolaHttpHeader } from '../../constants';\nimport {\n createOpenapiFetchClient,\n HttpHeader,\n isApiError,\n parseContentDispositionHeader,\n} from '../../fetchClient';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { TailError } from './schemas';\nimport type {\n CreateDataAppBody,\n DeleteDataAppPath,\n GetAppsQuery,\n GetDataAppLogsDownloadPath,\n GetDataAppLogsTailPath,\n GetDataAppLogsTailQuery,\n GetDataAppPasswordPath,\n GetDataAppPath,\n GetDataAppRunPath,\n GetDataAppRunsPath,\n GetDataAppRunsQuery,\n GetSandboxPath,\n PatchDataAppBody,\n PatchDataAppPath,\n ResetDataAppPasswordPath,\n} from './types';\nimport {\n calculateNextLogTimestamp,\n parseLastLogTimestamp,\n parseLogLines,\n prepareAppRun,\n} from './utils';\n\nexport const createDataScienceClient = ({ baseUrl, middlewares, token }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: { [KeboolaHttpHeader.STORAGE_API_TOKEN]: token },\n });\n\n const getAppRuns = async (\n appId: GetDataAppRunsPath['appId'],\n query?: GetDataAppRunsQuery,\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get('/apps/{appId}/runs', { path: { appId }, query }, { signal });\n\n return data.map(prepareAppRun);\n };\n\n const getAppRun = async (\n appId: GetDataAppRunPath['appId'],\n runId: GetDataAppRunPath['runId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/apps/{appId}/runs/{runId}',\n { path: { appId, runId } },\n { signal },\n );\n\n return prepareAppRun(data);\n };\n\n const getAppLogsDownload = async (\n id: GetDataAppLogsDownloadPath['appId'],\n signal?: AbortSignal,\n ) => {\n const { data, response } = await client.get(\n '/apps/{appId}/logs/download',\n { path: { appId: id } },\n { signal },\n );\n\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n logs: data,\n fileName: contentDisposition?.filename ?? 'logs.txt',\n };\n };\n\n const getAppLogsTail = async (\n id: GetDataAppLogsTailPath['appId'],\n { query, signal }: { query?: GetDataAppLogsTailQuery; signal?: AbortSignal } = {},\n ) => {\n try {\n const { data } = await client.get(\n '/apps/{appId}/logs/tail',\n {\n query,\n path: {\n appId: id,\n },\n },\n {\n signal,\n },\n );\n\n const logs = data === '' ? null : data;\n const lastLogTimestamp = parseLastLogTimestamp(logs);\n const nextLogTimestamp = calculateNextLogTimestamp(lastLogTimestamp);\n\n return {\n entries: parseLogLines(logs),\n nextLogTimestamp: nextLogTimestamp,\n };\n } catch (error) {\n if (\n isApiError(error) &&\n error.response.status === HttpStatus.BAD_REQUEST &&\n TailError.safeParse(error.data).data?.context?.code === 'apps.appNotRunning'\n ) {\n return { entries: [], nextLogTimestamp: null };\n }\n throw error;\n }\n };\n\n const getApps = async (query: GetAppsQuery, signal?: AbortSignal) => {\n const { data } = await client.get('/apps', { query }, { signal });\n\n return data;\n };\n\n const getApp = async (appId: GetDataAppPath['appId'], signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}', { path: { appId } }, { signal });\n\n return data;\n };\n\n const createApp = async (body: CreateDataAppBody, signal?: AbortSignal) => {\n const { data } = await client.post('/apps', { body }, { signal });\n\n return data;\n };\n\n const patchApp = async (\n appId: PatchDataAppPath['appId'],\n body: PatchDataAppBody,\n signal?: AbortSignal,\n ) => {\n const { data } = await client.patch(\n '/apps/{appId}',\n {\n path: { appId: appId },\n body: body,\n },\n { signal },\n );\n return data;\n };\n\n const deleteApp = async (appId: DeleteDataAppPath['appId'], signal?: AbortSignal) => {\n return client.delete('/apps/{appId}', { path: { appId } }, { signal });\n };\n\n const getAppPassword = async (appId: GetDataAppPasswordPath['appId'], signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/password', { path: { appId } }, { signal });\n\n return data;\n };\n\n const resetAppPassword = async (\n appId: ResetDataAppPasswordPath['appId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.post(\n '/apps/{appId}/reset-password',\n { path: { appId } },\n { signal },\n );\n\n return data;\n };\n\n const getRuntimes = async (signal?: AbortSignal) => {\n const { data } = await client.get('/runtimes', {}, { signal });\n\n return data;\n };\n\n const getSandbox = async (appId: GetSandboxPath['appId'], signal?: AbortSignal) => {\n const { data } = await client.get('/sandboxes/{appId}', { path: { appId } }, { signal });\n\n return data;\n };\n\n return {\n getAppRuns,\n getAppRun,\n getAppLogsDownload,\n getAppLogsTail,\n getApps,\n getApp,\n createApp,\n patchApp,\n deleteApp,\n getAppPassword,\n resetAppPassword,\n getRuntimes,\n getSandbox,\n };\n};\n"]}
|