@alvera-ai/platform-sdk 0.1.0 → 0.2.2

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/client.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * Regenerate generated/ with: pnpm regen
16
16
  */
17
- export type { ActionStatusUpdaterResponse, AiAgentResponse, DatalakeResponse, DataSourceRequest, DataSourceResponse, GenericTableResponse, PaginationMeta, ToolRequest, ToolResponse, } from './generated/types.gen.js';
17
+ export type { ActionStatusUpdaterResponse, AiAgentResponse, ConnectedAppListResponse, ConnectedAppRequestWritable, ConnectedAppResponse, DatalakeRequestWritable, DatalakeResponse, DatasetSearchResponse, DataSourceRequest, DataSourceResponse, ExecuteActionRequest, ExecuteActionResponse, GenericTableResponse, IngestFileRequest, IngestRequest, MdmVerifyRequest, MdmVerifyResponse, PaginationMeta, ResolvePageRequest, SessionResponse, SyncRoutesResponse, ToolRequest, ToolResponse, UpdatePageRequest, UploadLinkRequest, UploadLinkResponse, } from './generated/types.gen.js';
18
18
  export interface GenericTableColumn {
19
19
  name: string;
20
20
  title?: string;
@@ -71,17 +71,76 @@ export interface CreateAiAgentRequest {
71
71
  llm_response_schema?: Record<string, unknown> | null;
72
72
  prompt_config?: Record<string, unknown> | null;
73
73
  }
74
+ export interface CreateSessionParams {
75
+ baseUrl: string;
76
+ email: string;
77
+ password: string;
78
+ tenantSlug: string;
79
+ /** Session duration in seconds. Default 86400 (24h). Max 2592000 (30d). */
80
+ expiresIn?: number;
81
+ }
82
+ export interface SessionResult {
83
+ /** Bearer token to pass into createPlatformApi. */
84
+ sessionToken: string;
85
+ /** ISO-8601 expiration timestamp, or null for non-expiring sessions. */
86
+ expiresAt: string | null;
87
+ tenant: {
88
+ id: string;
89
+ slug: string;
90
+ name: string;
91
+ };
92
+ role: {
93
+ id: string;
94
+ name: string;
95
+ };
96
+ user: {
97
+ id: string;
98
+ firstName: string | null;
99
+ lastName: string | null;
100
+ } | null;
101
+ }
102
+ /**
103
+ * Exchange user credentials for a Bearer session token. The returned
104
+ * sessionToken is what you pass into createPlatformApi.
105
+ *
106
+ * Throws on any non-2xx response (e.g. 401 invalid credentials).
107
+ */
108
+ export declare function createSession(params: CreateSessionParams): Promise<SessionResult>;
109
+ /**
110
+ * Revoke the currently-configured session token. After calling this,
111
+ * the api instance will reject every subsequent request with 401.
112
+ */
113
+ export declare function revokeSession(): Promise<void>;
74
114
  export interface ApiConfig {
75
115
  baseUrl: string;
76
- apiKey: string;
116
+ sessionToken: string;
77
117
  }
78
118
  export type PlatformApi = ReturnType<typeof createPlatformApi>;
119
+ export interface DatasetSearchOptions {
120
+ datalakeId?: string;
121
+ page?: number;
122
+ pageSize?: number;
123
+ }
79
124
  export declare function createPlatformApi(config: ApiConfig): {
80
125
  ping: () => Promise<{
81
126
  data: import("./generated/types.gen.js").PingResponse;
82
127
  request: Request;
83
128
  response: Response;
84
129
  }>;
130
+ sessions: {
131
+ verify: () => Promise<{
132
+ data: import("./generated/types.gen.js").SessionResponse;
133
+ request: Request;
134
+ response: Response;
135
+ }>;
136
+ };
137
+ datasets: {
138
+ search: (dataset: string, options?: DatasetSearchOptions) => Promise<{
139
+ data: import("./generated/types.gen.js").DatasetSearchResponse;
140
+ request: Request;
141
+ response: Response;
142
+ }>;
143
+ };
85
144
  datalakes: {
86
145
  list: (tenantSlug: string) => Promise<{
87
146
  data: import("./generated/types.gen.js").DatalakeListResponse;
@@ -93,6 +152,11 @@ export declare function createPlatformApi(config: ApiConfig): {
93
152
  request: Request;
94
153
  response: Response;
95
154
  }>;
155
+ create: (tenantSlug: string, body: Record<string, unknown>) => Promise<{
156
+ data: import("./generated/types.gen.js").DatalakeResponse;
157
+ request: Request;
158
+ response: Response;
159
+ }>;
96
160
  };
97
161
  dataSources: {
98
162
  list: (tenantSlug: string, datalakeSlug: string) => Promise<{
@@ -194,5 +258,78 @@ export declare function createPlatformApi(config: ApiConfig): {
194
258
  response: Response;
195
259
  }>;
196
260
  };
261
+ connectedApps: {
262
+ list: (tenantSlug: string, datalakeSlug: string) => Promise<{
263
+ data: import("./generated/types.gen.js").ConnectedAppListResponse;
264
+ request: Request;
265
+ response: Response;
266
+ }>;
267
+ get: (tenantSlug: string, datalakeSlug: string, id: string) => Promise<{
268
+ data: import("./generated/types.gen.js").ConnectedAppResponse;
269
+ request: Request;
270
+ response: Response;
271
+ }>;
272
+ create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) => Promise<{
273
+ data: import("./generated/types.gen.js").ConnectedAppResponse;
274
+ request: Request;
275
+ response: Response;
276
+ }>;
277
+ update: (tenantSlug: string, datalakeSlug: string, id: string, body: Record<string, unknown>) => Promise<{
278
+ data: import("./generated/types.gen.js").ConnectedAppResponse;
279
+ request: Request;
280
+ response: Response;
281
+ }>;
282
+ syncRoutes: (tenantSlug: string, datalakeSlug: string, id: string) => Promise<{
283
+ data: import("./generated/types.gen.js").SyncRoutesResponse;
284
+ request: Request;
285
+ response: Response;
286
+ }>;
287
+ resolvePage: (tenantSlug: string, slug: string, body: Record<string, unknown>) => Promise<{
288
+ data: import("./generated/types.gen.js").ResolvePageResponse;
289
+ request: Request;
290
+ response: Response;
291
+ }>;
292
+ updateMessageTracking: (tenantSlug: string, slug: string, body: Record<string, unknown>) => Promise<{
293
+ data: import("./generated/types.gen.js").UpdatePageResponse;
294
+ request: Request;
295
+ response: Response;
296
+ }>;
297
+ };
298
+ dataActivationClients: {
299
+ ingest: (tenantSlug: string, slug: string, body: Record<string, unknown>) => Promise<{
300
+ data: import("./generated/types.gen.js").IngestResponse;
301
+ request: Request;
302
+ response: Response;
303
+ }>;
304
+ ingestFile: (tenantSlug: string, slug: string, body: {
305
+ key: string;
306
+ }) => Promise<{
307
+ data: import("./generated/types.gen.js").IngestResponse;
308
+ request: Request;
309
+ response: Response;
310
+ }>;
311
+ createUploadLink: (tenantSlug: string, slug: string, body: {
312
+ content_type: "application/x-ndjson" | "text/csv";
313
+ filename: string;
314
+ }) => Promise<{
315
+ data: import("./generated/types.gen.js").UploadLinkResponse;
316
+ request: Request;
317
+ response: Response;
318
+ }>;
319
+ };
320
+ mdm: {
321
+ verify: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) => Promise<{
322
+ data: import("./generated/types.gen.js").MdmVerifyResponse;
323
+ request: Request;
324
+ response: Response;
325
+ }>;
326
+ };
327
+ workflows: {
328
+ execute: (tenantSlug: string, workflowSlug: string, body: Record<string, unknown>) => Promise<{
329
+ data: import("./generated/types.gen.js").ExecuteActionResponse;
330
+ request: Request;
331
+ response: Response;
332
+ }>;
333
+ };
197
334
  };
198
335
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA4BH,YAAY,EACV,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,0BAA0B,CAAC;AAMlC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EACR,YAAY,GACZ,cAAc,GACd,cAAc,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K7B,MAAM,gBAAgB,MAAM,MAAM,MAAM;;;;;6BAKrC,MAAM,gBAAgB,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;6BAM3D,MAAM,gBAAgB,MAAM,MAAM,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;iCAMnE,MAAM,gBAAgB,MAAM,MAAM,MAAM;;;;;kCAMvC,MAAM,QAAQ,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;4CAO/D,MAAM,QACZ,MAAM,QACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;6BAUV,MAAM,QAAQ,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;iCAM/C,MAAM,QAAQ,MAAM,QAAQ;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE;;;;;uCAOtD,MAAM,QACZ,MAAM,QACN;YAAE,YAAY,EAAE,sBAAsB,GAAG,UAAU,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE;;;;;;;6BAU1D,MAAM,gBAAgB,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;8BAS1D,MAAM,gBAAgB,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;EAQtF"}
package/dist/client.js CHANGED
@@ -15,14 +15,69 @@
15
15
  * Regenerate generated/ with: pnpm regen
16
16
  */
17
17
  import { client } from './generated/client.gen.js';
18
- import { platformApiActionStatusUpdaterControllerCreate, platformApiActionStatusUpdaterControllerIndex, platformApiActionStatusUpdaterControllerUpdate, platformApiAiAgentControllerCreate, platformApiAiAgentControllerDelete, platformApiAiAgentControllerIndex, platformApiAiAgentControllerShow, platformApiAiAgentControllerUpdate, platformApiDatalakeControllerIndex, platformApiDatalakeControllerShow, platformApiDataSourceControllerCreate, platformApiDataSourceControllerIndex, platformApiDataSourceControllerUpdate, platformApiGenericTableControllerCreate, platformApiGenericTableControllerIndex, platformApiPingControllerPing, platformApiToolControllerCreate, platformApiToolControllerDelete, platformApiToolControllerIndex, platformApiToolControllerShow, platformApiToolControllerUpdate, } from './generated/sdk.gen.js';
18
+ import { platformApiActionStatusUpdaterControllerCreate, platformApiActionStatusUpdaterControllerIndex, platformApiActionStatusUpdaterControllerUpdate, platformApiAiAgentControllerCreate, platformApiAiAgentControllerDelete, platformApiAiAgentControllerIndex, platformApiAiAgentControllerShow, platformApiAiAgentControllerUpdate, platformApiConnectedAppControllerResolvePage, platformApiConnectedAppControllerUpdatePage, platformApiConnectedAppMgmtControllerCreate, platformApiConnectedAppMgmtControllerIndex, platformApiConnectedAppMgmtControllerShow, platformApiConnectedAppMgmtControllerSyncRoutes, platformApiConnectedAppMgmtControllerUpdate, platformApiDataActivationClientControllerCreateUploadLink, platformApiDataActivationClientControllerIngest, platformApiDataActivationClientControllerIngestFile, platformApiDatalakeControllerCreate, platformApiDatalakeControllerIndex, platformApiDatalakeControllerShow, platformApiDatasetControllerSearch, platformApiDataSourceControllerCreate, platformApiDataSourceControllerIndex, platformApiDataSourceControllerUpdate, platformApiGenericTableControllerCreate, platformApiGenericTableControllerIndex, platformApiMdmControllerVerify, platformApiPingControllerPing, platformApiSessionControllerCreate, platformApiSessionControllerDelete, platformApiSessionControllerVerify, platformApiToolControllerCreate, platformApiToolControllerDelete, platformApiToolControllerIndex, platformApiToolControllerShow, platformApiToolControllerUpdate, platformApiWorkflowControllerExecute, } from './generated/sdk.gen.js';
19
+ /**
20
+ * Exchange user credentials for a Bearer session token. The returned
21
+ * sessionToken is what you pass into createPlatformApi.
22
+ *
23
+ * Throws on any non-2xx response (e.g. 401 invalid credentials).
24
+ */
25
+ export async function createSession(params) {
26
+ client.setConfig({ baseUrl: params.baseUrl.replace(/\/$/, '') });
27
+ const { data } = await platformApiSessionControllerCreate({
28
+ body: {
29
+ email: params.email,
30
+ password: params.password,
31
+ tenant_slug: params.tenantSlug,
32
+ ...(params.expiresIn !== undefined ? { expires_in: params.expiresIn } : {}),
33
+ },
34
+ throwOnError: true,
35
+ });
36
+ if (!data.session_token) {
37
+ throw new Error('Session created but no session_token was returned.');
38
+ }
39
+ return {
40
+ sessionToken: data.session_token,
41
+ expiresAt: data.expires_at ?? null,
42
+ tenant: data.tenant,
43
+ role: data.role,
44
+ user: data.user
45
+ ? {
46
+ id: data.user.id,
47
+ firstName: data.user.first_name ?? null,
48
+ lastName: data.user.last_name ?? null,
49
+ }
50
+ : null,
51
+ };
52
+ }
53
+ /**
54
+ * Revoke the currently-configured session token. After calling this,
55
+ * the api instance will reject every subsequent request with 401.
56
+ */
57
+ export async function revokeSession() {
58
+ await platformApiSessionControllerDelete({ throwOnError: true });
59
+ }
19
60
  export function createPlatformApi(config) {
20
61
  client.setConfig({
21
62
  baseUrl: config.baseUrl.replace(/\/$/, ''),
22
- headers: { 'X-API-Key': config.apiKey },
63
+ headers: { Authorization: `Bearer ${config.sessionToken}` },
23
64
  });
24
65
  return {
25
66
  ping: () => platformApiPingControllerPing({ throwOnError: true }),
67
+ sessions: {
68
+ verify: () => platformApiSessionControllerVerify({ throwOnError: true }),
69
+ },
70
+ datasets: {
71
+ search: (dataset, options = {}) => platformApiDatasetControllerSearch({
72
+ path: { dataset },
73
+ query: {
74
+ ...(options.datalakeId !== undefined ? { datalake_id: options.datalakeId } : {}),
75
+ ...(options.page !== undefined ? { page: options.page } : {}),
76
+ ...(options.pageSize !== undefined ? { page_size: options.pageSize } : {}),
77
+ },
78
+ throwOnError: true,
79
+ }),
80
+ },
26
81
  datalakes: {
27
82
  list: (tenantSlug) => platformApiDatalakeControllerIndex({
28
83
  path: { tenant_slug: tenantSlug },
@@ -32,6 +87,11 @@ export function createPlatformApi(config) {
32
87
  path: { tenant_slug: tenantSlug, id },
33
88
  throwOnError: true,
34
89
  }),
90
+ create: (tenantSlug, body) => platformApiDatalakeControllerCreate({
91
+ path: { tenant_slug: tenantSlug },
92
+ body: body,
93
+ throwOnError: true,
94
+ }),
35
95
  },
36
96
  dataSources: {
37
97
  list: (tenantSlug, datalakeSlug) => platformApiDataSourceControllerIndex({
@@ -124,6 +184,73 @@ export function createPlatformApi(config) {
124
184
  throwOnError: true,
125
185
  }),
126
186
  },
187
+ connectedApps: {
188
+ // datalake-scoped management
189
+ list: (tenantSlug, datalakeSlug) => platformApiConnectedAppMgmtControllerIndex({
190
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
191
+ throwOnError: true,
192
+ }),
193
+ get: (tenantSlug, datalakeSlug, id) => platformApiConnectedAppMgmtControllerShow({
194
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
195
+ throwOnError: true,
196
+ }),
197
+ create: (tenantSlug, datalakeSlug, body) => platformApiConnectedAppMgmtControllerCreate({
198
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
199
+ body: body,
200
+ throwOnError: true,
201
+ }),
202
+ update: (tenantSlug, datalakeSlug, id, body) => platformApiConnectedAppMgmtControllerUpdate({
203
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
204
+ body: body,
205
+ throwOnError: true,
206
+ }),
207
+ syncRoutes: (tenantSlug, datalakeSlug, id) => platformApiConnectedAppMgmtControllerSyncRoutes({
208
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
209
+ throwOnError: true,
210
+ }),
211
+ // tenant-scoped runtime actions (by slug)
212
+ resolvePage: (tenantSlug, slug, body) => platformApiConnectedAppControllerResolvePage({
213
+ path: { tenant_slug: tenantSlug, slug },
214
+ body: body,
215
+ throwOnError: true,
216
+ }),
217
+ updateMessageTracking: (tenantSlug, slug, body) => platformApiConnectedAppControllerUpdatePage({
218
+ path: { tenant_slug: tenantSlug, slug },
219
+ body: body,
220
+ throwOnError: true,
221
+ }),
222
+ },
223
+ dataActivationClients: {
224
+ ingest: (tenantSlug, slug, body) => platformApiDataActivationClientControllerIngest({
225
+ path: { tenant_slug: tenantSlug, slug },
226
+ body: body,
227
+ throwOnError: true,
228
+ }),
229
+ ingestFile: (tenantSlug, slug, body) => platformApiDataActivationClientControllerIngestFile({
230
+ path: { tenant_slug: tenantSlug, slug },
231
+ body,
232
+ throwOnError: true,
233
+ }),
234
+ createUploadLink: (tenantSlug, slug, body) => platformApiDataActivationClientControllerCreateUploadLink({
235
+ path: { tenant_slug: tenantSlug, slug },
236
+ body,
237
+ throwOnError: true,
238
+ }),
239
+ },
240
+ mdm: {
241
+ verify: (tenantSlug, datalakeSlug, body) => platformApiMdmControllerVerify({
242
+ path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
243
+ body: body,
244
+ throwOnError: true,
245
+ }),
246
+ },
247
+ workflows: {
248
+ execute: (tenantSlug, workflowSlug, body) => platformApiWorkflowControllerExecute({
249
+ path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug },
250
+ body: body,
251
+ throwOnError: true,
252
+ }),
253
+ },
127
254
  };
128
255
  }
129
256
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACL,8CAA8C,EAC9C,6CAA6C,EAC7C,8CAA8C,EAC9C,kCAAkC,EAClC,kCAAkC,EAClC,iCAAiC,EACjC,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,sCAAsC,EACtC,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,8BAA8B,EAC9B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAwGhC,MAAM,UAAU,iBAAiB,CAAC,MAAiB;IACjD,MAAM,CAAC,SAAS,CAAC;QACf,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC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qB,EAAE,EAAE,CACtE,mDAAmD,CAAC;gBAClD,IAAI,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE;gBACvC,IAAI;gBACJ,YAAY,EAAE,IAAI;aACnB,CAAC;YACJ,gBAAgB,EAAE,CAChB,UAAkB,EAClB,IAAY,EACZ,IAA6E,EAC7E,EAAE,CACF,yDAAyD,CAAC;gBACxD,IAAI,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE;gBACvC,IAAI;gBACJ,YAAY,EAAE,IAAI;aACnB,CAAC;SACL;QAED,GAAG,EAAE;YACH,MAAM,EAAE,CAAC,UAAkB,EAAE,YAAoB,EAAE,IAA6B,EAAE,EAAE,CAClF,8BAA8B,CAAC;gBAC7B,IAAI,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE;gBAC9D,IAAI,EAAE,IAAa;gBACnB,YAAY,EAAE,IAAI;aACnB,CAAC;SACL;QAED,SAAS,EAAE;YACT,OAAO,EAAE,CAAC,UAAkB,EAAE,YAAoB,EAAE,IAA6B,EAAE,EAAE,CACnF,oCAAoC,CAAC;gBACnC,IAAI,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE;gBAC9D,IAAI,EAAE,IAAa;gBACnB,YAAY,EAAE,IAAI;aACnB,CAAC;SACL;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,30 @@
1
+ export interface ProfileConfig {
2
+ base_url?: string;
3
+ tenant_slug?: string;
4
+ email?: string;
5
+ }
6
+ export interface ProfileCreds {
7
+ session_token?: string;
8
+ expires_at?: string;
9
+ }
10
+ export interface ResolvedProfile {
11
+ profile: string;
12
+ baseUrl: string;
13
+ tenantSlug: string | null;
14
+ email: string | null;
15
+ sessionToken: string | null;
16
+ expiresAt: string | null;
17
+ }
18
+ export declare function getProfileName(flag?: string): string;
19
+ export declare function readProfileConfig(profile: string): ProfileConfig;
20
+ export declare function readProfileCreds(profile: string): ProfileCreds;
21
+ export declare function writeProfileConfig(profile: string, patch: ProfileConfig): void;
22
+ export declare function writeProfileCreds(profile: string, patch: ProfileCreds): void;
23
+ export declare function clearProfileCreds(profile: string): void;
24
+ export declare function resolveProfile(profile: string): ResolvedProfile;
25
+ export declare const CONFIG_PATHS: {
26
+ dir: string;
27
+ config: string;
28
+ credentials: string;
29
+ };
30
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AA0ED,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpD;AAMD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAGhE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAG9D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAK9E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,GAAG,IAAI,CAK5E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIvD;AAgBD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAgB/D;AAED,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,129 @@
1
+ import { readFileSync, writeFileSync, mkdirSync, existsSync, chmodSync } from 'node:fs';
2
+ import { homedir } from 'node:os';
3
+ import { dirname, join } from 'node:path';
4
+ const CONFIG_DIR = join(homedir(), '.alvera-ai');
5
+ const CONFIG_FILE = join(CONFIG_DIR, 'config');
6
+ const CREDS_FILE = join(CONFIG_DIR, 'credentials');
7
+ const DEFAULT_BASE_URL = 'https://admin.alvera.ai';
8
+ function parseIni(text) {
9
+ const sections = {};
10
+ let current = 'default';
11
+ sections[current] = {};
12
+ for (const rawLine of text.split(/\r?\n/)) {
13
+ const line = rawLine.trim();
14
+ if (!line || line.startsWith('#') || line.startsWith(';'))
15
+ continue;
16
+ const header = line.match(/^\[(.+)\]$/);
17
+ if (header) {
18
+ current = header[1].trim();
19
+ sections[current] ??= {};
20
+ continue;
21
+ }
22
+ const eq = line.indexOf('=');
23
+ if (eq === -1)
24
+ continue;
25
+ const key = line.slice(0, eq).trim();
26
+ const value = line.slice(eq + 1).trim();
27
+ sections[current][key] = value;
28
+ }
29
+ return sections;
30
+ }
31
+ function serializeIni(sections) {
32
+ const parts = [];
33
+ const names = Object.keys(sections).sort((a, b) => a === 'default' ? -1 : b === 'default' ? 1 : a.localeCompare(b));
34
+ for (const name of names) {
35
+ const body = sections[name];
36
+ if (Object.keys(body).length === 0)
37
+ continue;
38
+ parts.push(`[${name}]`);
39
+ for (const [k, v] of Object.entries(body)) {
40
+ parts.push(`${k} = ${v}`);
41
+ }
42
+ parts.push('');
43
+ }
44
+ return parts.join('\n');
45
+ }
46
+ function readIni(path) {
47
+ if (!existsSync(path))
48
+ return {};
49
+ return parseIni(readFileSync(path, 'utf8'));
50
+ }
51
+ function writeIni(path, sections, mode) {
52
+ mkdirSync(dirname(path), { recursive: true, mode: 0o700 });
53
+ writeFileSync(path, serializeIni(sections), { mode });
54
+ chmodSync(path, mode);
55
+ }
56
+ // ---------------------------------------------------------------------------
57
+ // Profile key helpers. AWS convention: [default] and [profile <name>] in
58
+ // config; [default] and [<name>] in credentials.
59
+ // ---------------------------------------------------------------------------
60
+ function configKey(profile) {
61
+ return profile === 'default' ? 'default' : `profile ${profile}`;
62
+ }
63
+ function credsKey(profile) {
64
+ return profile;
65
+ }
66
+ export function getProfileName(flag) {
67
+ return flag ?? process.env.ALVERA_PROFILE ?? 'default';
68
+ }
69
+ // ---------------------------------------------------------------------------
70
+ // Read / write
71
+ // ---------------------------------------------------------------------------
72
+ export function readProfileConfig(profile) {
73
+ const sections = readIni(CONFIG_FILE);
74
+ return (sections[configKey(profile)] ?? {});
75
+ }
76
+ export function readProfileCreds(profile) {
77
+ const sections = readIni(CREDS_FILE);
78
+ return (sections[credsKey(profile)] ?? {});
79
+ }
80
+ export function writeProfileConfig(profile, patch) {
81
+ const sections = readIni(CONFIG_FILE);
82
+ const key = configKey(profile);
83
+ sections[key] = { ...(sections[key] ?? {}), ...stripUndefined(patch) };
84
+ writeIni(CONFIG_FILE, sections, 0o600);
85
+ }
86
+ export function writeProfileCreds(profile, patch) {
87
+ const sections = readIni(CREDS_FILE);
88
+ const key = credsKey(profile);
89
+ sections[key] = { ...(sections[key] ?? {}), ...stripUndefined(patch) };
90
+ writeIni(CREDS_FILE, sections, 0o600);
91
+ }
92
+ export function clearProfileCreds(profile) {
93
+ const sections = readIni(CREDS_FILE);
94
+ delete sections[credsKey(profile)];
95
+ writeIni(CREDS_FILE, sections, 0o600);
96
+ }
97
+ function stripUndefined(obj) {
98
+ const out = {};
99
+ for (const [k, v] of Object.entries(obj)) {
100
+ if (v === undefined || v === null || v === '')
101
+ continue;
102
+ out[k] = String(v);
103
+ }
104
+ return out;
105
+ }
106
+ // ---------------------------------------------------------------------------
107
+ // Resolve a profile: merge config + creds + env var overrides. Env vars take
108
+ // precedence (so scripts/CI can override without touching files).
109
+ // ---------------------------------------------------------------------------
110
+ export function resolveProfile(profile) {
111
+ const cfg = readProfileConfig(profile);
112
+ const creds = readProfileCreds(profile);
113
+ return {
114
+ profile,
115
+ baseUrl: process.env.ALVERA_BASE_URL ??
116
+ cfg.base_url ??
117
+ DEFAULT_BASE_URL,
118
+ tenantSlug: process.env.ALVERA_TENANT ?? cfg.tenant_slug ?? null,
119
+ email: process.env.ALVERA_EMAIL ?? cfg.email ?? null,
120
+ sessionToken: process.env.ALVERA_SESSION_TOKEN ?? creds.session_token ?? null,
121
+ expiresAt: creds.expires_at ?? null,
122
+ };
123
+ }
124
+ export const CONFIG_PATHS = {
125
+ dir: CONFIG_DIR,
126
+ config: CONFIG_FILE,
127
+ credentials: CREDS_FILE,
128
+ };
129
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,YAAY,CAAC,CAAC;AACjD,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AAsBnD,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AASnD,SAAS,QAAQ,CAAC,IAAY;IAC5B,MAAM,QAAQ,GAAgB,EAAE,CAAC;IACjC,IAAI,OAAO,GAAG,SAAS,CAAC;IACxB,QAAQ,CAAC,O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AAI,GAAG,CAAC,WAAW,IAAI,IAAI;QACtD,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI;QACpD,YAAY,EACV,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,KAAK,CAAC,aAAa,IAAI,IAAI;QACjE,SAAS,EAAE,KAAK,CAAC,UAAU,IAAI,IAAI;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,UAAU;IACf,MAAM,EAAE,WAAW;IACnB,WAAW,EAAE,UAAU;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../src/generated/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,mBAAmB,CAAC;AAChG,OAAO,KAAK,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,cAAc,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzJ,eAAO,MAAM,MAAM,wCAA+C,CAAC"}
1
+ {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../src/generated/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAA8B,MAAM,mBAAmB,CAAC;AAChG,OAAO,KAAK,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,cAAc,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzJ,eAAO,MAAM,MAAM,wCAAmF,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { createClient, createConfig } from './client/index.js';
3
- export const client = createClient(createConfig());
3
+ export const client = createClient(createConfig({ baseUrl: 'http://localhost:4000' }));
4
4
  //# sourceMappingURL=client.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.gen.js","sourceRoot":"","sources":["../../src/generated/client.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAmC,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAahG,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,EAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"client.gen.js","sourceRoot":"","sources":["../../src/generated/client.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAmC,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAahG,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,CAAiB,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
- export { type Options, platformApiActionStatusUpdaterControllerCreate, platformApiActionStatusUpdaterControllerIndex, platformApiActionStatusUpdaterControllerUpdate, platformApiAiAgentControllerCreate, platformApiAiAgentControllerDelete, platformApiAiAgentControllerIndex, platformApiAiAgentControllerShow, platformApiAiAgentControllerUpdate, platformApiConnectedAppControllerResolvePage, platformApiConnectedAppControllerUpdatePage, platformApiDataActivationClientControllerIngest, platformApiDatalakeControllerCreate, platformApiDatalakeControllerIndex, platformApiDatalakeControllerShow, platformApiDatasetControllerSearch, platformApiDataSourceControllerCreate, platformApiDataSourceControllerIndex, platformApiDataSourceControllerUpdate, platformApiGenericTableControllerCreate, platformApiGenericTableControllerIndex, platformApiMdmControllerVerify, platformApiPingControllerPing, platformApiSessionControllerCreate, platformApiSessionControllerDelete, platformApiSessionControllerVerify, platformApiToolControllerCreate, platformApiToolControllerDelete, platformApiToolControllerIndex, platformApiToolControllerShow, platformApiToolControllerUpdate, platformApiWorkflowControllerExecute } from './sdk.gen.js';
2
- export type { ActionStatusUpdaterListResponse, ActionStatusUpdaterListResponseWritable, ActionStatusUpdaterRequest, ActionStatusUpdaterRequestWritable, ActionStatusUpdaterResponse, ActionStatusUpdaterResponseWritable, AiAgentListResponse, AiAgentListResponseWritable, AiAgentRequest, AiAgentRequestWritable, AiAgentResponse, AiAgentResponseWritable, AwsLambdaBody, AwsLambdaBodyWritable, ChangesetErrors, ClientOptions, CloudWatchLogGroupBody, CloudWatchLogGroupBodyWritable, DatalakeListResponse, DatalakeListResponseWritable, DatalakeRequest, DatalakeRequestWritable, DatalakeResponse, DatalakeResponseWritable, DatasetSearchResponse, DataSourceListResponse, DataSourceListResponseWritable, DataSourceRequest, DataSourceResponse, DataSourceResponseWritable, EmailBody, EmailBodyWritable, ErrorResponse, ExecuteActionRequest, ExecuteActionResponse, GenericTableListResponse, GenericTableListResponseWritable, GenericTableRequest, GenericTableRequestWritable, GenericTableResponse, GenericTableResponseWritable, IngestRequest, IngestResponse, ManualUploadBody, MdmNotVerified, MdmVerified, MdmVerifyRequest, MdmVerifyResponse, PaginationMeta, PingResponse, PlatformApiActionStatusUpdaterControllerCreateData, PlatformApiActionStatusUpdaterControllerCreateError, PlatformApiActionStatusUpdaterControllerCreateErrors, PlatformApiActionStatusUpdaterControllerCreateResponse, PlatformApiActionStatusUpdaterControllerCreateResponses, PlatformApiActionStatusUpdaterControllerIndexData, PlatformApiActionStatusUpdaterControllerIndexError, PlatformApiActionStatusUpdaterControllerIndexErrors, PlatformApiActionStatusUpdaterControllerIndexResponse, PlatformApiActionStatusUpdaterControllerIndexResponses, PlatformApiActionStatusUpdaterControllerUpdateData, PlatformApiActionStatusUpdaterControllerUpdateError, PlatformApiActionStatusUpdaterControllerUpdateErrors, PlatformApiActionStatusUpdaterControllerUpdateResponse, PlatformApiActionStatusUpdaterControllerUpdateResponses, PlatformApiAiAgentControllerCreateData, PlatformApiAiAgentControllerCreateError, PlatformApiAiAgentControllerCreateErrors, PlatformApiAiAgentControllerCreateResponse, PlatformApiAiAgentControllerCreateResponses, PlatformApiAiAgentControllerDeleteData, PlatformApiAiAgentControllerDeleteError, PlatformApiAiAgentControllerDeleteErrors, PlatformApiAiAgentControllerDeleteResponse, PlatformApiAiAgentControllerDeleteResponses, PlatformApiAiAgentControllerIndexData, PlatformApiAiAgentControllerIndexError, PlatformApiAiAgentControllerIndexErrors, PlatformApiAiAgentControllerIndexResponse, PlatformApiAiAgentControllerIndexResponses, PlatformApiAiAgentControllerShowData, PlatformApiAiAgentControllerShowError, PlatformApiAiAgentControllerShowErrors, PlatformApiAiAgentControllerShowResponse, PlatformApiAiAgentControllerShowResponses, PlatformApiAiAgentControllerUpdateData, PlatformApiAiAgentControllerUpdateError, PlatformApiAiAgentControllerUpdateErrors, PlatformApiAiAgentControllerUpdateResponse, PlatformApiAiAgentControllerUpdateResponses, PlatformApiConnectedAppControllerResolvePageData, PlatformApiConnectedAppControllerResolvePageError, PlatformApiConnectedAppControllerResolvePageErrors, PlatformApiConnectedAppControllerResolvePageResponse, PlatformApiConnectedAppControllerResolvePageResponses, PlatformApiConnectedAppControllerUpdatePageData, PlatformApiConnectedAppControllerUpdatePageError, PlatformApiConnectedAppControllerUpdatePageErrors, PlatformApiConnectedAppControllerUpdatePageResponse, PlatformApiConnectedAppControllerUpdatePageResponses, PlatformApiDataActivationClientControllerIngestData, PlatformApiDataActivationClientControllerIngestError, PlatformApiDataActivationClientControllerIngestErrors, PlatformApiDataActivationClientControllerIngestResponse, PlatformApiDataActivationClientControllerIngestResponses, PlatformApiDatalakeControllerCreateData, PlatformApiDatalakeControllerCreateError, PlatformApiDatalakeControllerCreateErrors, PlatformApiDatalakeControllerCreateResponse, PlatformApiDatalakeControllerCreateResponses, PlatformApiDatalakeControllerIndexData, PlatformApiDatalakeControllerIndexError, PlatformApiDatalakeControllerIndexErrors, PlatformApiDatalakeControllerIndexResponse, PlatformApiDatalakeControllerIndexResponses, PlatformApiDatalakeControllerShowData, PlatformApiDatalakeControllerShowError, PlatformApiDatalakeControllerShowErrors, PlatformApiDatalakeControllerShowResponse, PlatformApiDatalakeControllerShowResponses, PlatformApiDatasetControllerSearchData, PlatformApiDatasetControllerSearchError, PlatformApiDatasetControllerSearchErrors, PlatformApiDatasetControllerSearchResponse, PlatformApiDatasetControllerSearchResponses, PlatformApiDataSourceControllerCreateData, PlatformApiDataSourceControllerCreateError, PlatformApiDataSourceControllerCreateErrors, PlatformApiDataSourceControllerCreateResponse, PlatformApiDataSourceControllerCreateResponses, PlatformApiDataSourceControllerIndexData, PlatformApiDataSourceControllerIndexError, PlatformApiDataSourceControllerIndexErrors, PlatformApiDataSourceControllerIndexResponse, PlatformApiDataSourceControllerIndexResponses, PlatformApiDataSourceControllerUpdateData, PlatformApiDataSourceControllerUpdateError, PlatformApiDataSourceControllerUpdateErrors, PlatformApiDataSourceControllerUpdateResponse, PlatformApiDataSourceControllerUpdateResponses, PlatformApiGenericTableControllerCreateData, PlatformApiGenericTableControllerCreateError, PlatformApiGenericTableControllerCreateErrors, PlatformApiGenericTableControllerCreateResponse, PlatformApiGenericTableControllerCreateResponses, PlatformApiGenericTableControllerIndexData, PlatformApiGenericTableControllerIndexError, PlatformApiGenericTableControllerIndexErrors, PlatformApiGenericTableControllerIndexResponse, PlatformApiGenericTableControllerIndexResponses, PlatformApiMdmControllerVerifyData, PlatformApiMdmControllerVerifyError, PlatformApiMdmControllerVerifyErrors, PlatformApiMdmControllerVerifyResponse, PlatformApiMdmControllerVerifyResponses, PlatformApiPingControllerPingData, PlatformApiPingControllerPingError, PlatformApiPingControllerPingErrors, PlatformApiPingControllerPingResponse, PlatformApiPingControllerPingResponses, PlatformApiSessionControllerCreateData, PlatformApiSessionControllerCreateError, PlatformApiSessionControllerCreateErrors, PlatformApiSessionControllerCreateResponse, PlatformApiSessionControllerCreateResponses, PlatformApiSessionControllerDeleteData, PlatformApiSessionControllerDeleteError, PlatformApiSessionControllerDeleteErrors, PlatformApiSessionControllerDeleteResponses, PlatformApiSessionControllerVerifyData, PlatformApiSessionControllerVerifyError, PlatformApiSessionControllerVerifyErrors, PlatformApiSessionControllerVerifyResponse, PlatformApiSessionControllerVerifyResponses, PlatformApiToolControllerCreateData, PlatformApiToolControllerCreateError, PlatformApiToolControllerCreateErrors, PlatformApiToolControllerCreateResponse, PlatformApiToolControllerCreateResponses, PlatformApiToolControllerDeleteData, PlatformApiToolControllerDeleteError, PlatformApiToolControllerDeleteErrors, PlatformApiToolControllerDeleteResponse, PlatformApiToolControllerDeleteResponses, PlatformApiToolControllerIndexData, PlatformApiToolControllerIndexError, PlatformApiToolControllerIndexErrors, PlatformApiToolControllerIndexResponse, PlatformApiToolControllerIndexResponses, PlatformApiToolControllerShowData, PlatformApiToolControllerShowError, PlatformApiToolControllerShowErrors, PlatformApiToolControllerShowResponse, PlatformApiToolControllerShowResponses, PlatformApiToolControllerUpdateData, PlatformApiToolControllerUpdateError, PlatformApiToolControllerUpdateErrors, PlatformApiToolControllerUpdateResponse, PlatformApiToolControllerUpdateResponses, PlatformApiWorkflowControllerExecuteData, PlatformApiWorkflowControllerExecuteError, PlatformApiWorkflowControllerExecuteErrors, PlatformApiWorkflowControllerExecuteResponse, PlatformApiWorkflowControllerExecuteResponses, ResolvePageRequest, ResolvePageResponse, RestapiBody, RestapiBodyWritable, S3Body, S3BodyWritable, SessionRequest, SessionResponse, SftpBody, SftpBodyWritable, SharePointBody, SharePointBodyWritable, SnsBody, SnsBodyWritable, SqlDatabaseBody, SqlDatabaseBodyWritable, SqsBody, SqsBodyWritable, TenantResponse, ToolListResponse, ToolListResponseWritable, ToolRequest, ToolRequestWritable, ToolResponse, ToolResponseWritable, UpdatePageRequest, UpdatePageResponse } from './types.gen.js';
1
+ export { type Options, platformApiActionStatusUpdaterControllerCreate, platformApiActionStatusUpdaterControllerIndex, platformApiActionStatusUpdaterControllerUpdate, platformApiAiAgentControllerCreate, platformApiAiAgentControllerDelete, platformApiAiAgentControllerIndex, platformApiAiAgentControllerShow, platformApiAiAgentControllerUpdate, platformApiConnectedAppControllerResolvePage, platformApiConnectedAppControllerUpdatePage, platformApiConnectedAppMgmtControllerCreate, platformApiConnectedAppMgmtControllerIndex, platformApiConnectedAppMgmtControllerShow, platformApiConnectedAppMgmtControllerSyncRoutes, platformApiConnectedAppMgmtControllerUpdate, platformApiDataActivationClientControllerCreateUploadLink, platformApiDataActivationClientControllerIngest, platformApiDataActivationClientControllerIngestFile, platformApiDatalakeControllerCreate, platformApiDatalakeControllerIndex, platformApiDatalakeControllerShow, platformApiDatasetControllerSearch, platformApiDataSourceControllerCreate, platformApiDataSourceControllerIndex, platformApiDataSourceControllerUpdate, platformApiGenericTableControllerCreate, platformApiGenericTableControllerIndex, platformApiMdmControllerVerify, platformApiPingControllerPing, platformApiSessionControllerCreate, platformApiSessionControllerDelete, platformApiSessionControllerVerify, platformApiToolControllerCreate, platformApiToolControllerDelete, platformApiToolControllerIndex, platformApiToolControllerShow, platformApiToolControllerUpdate, platformApiWorkflowControllerExecute } from './sdk.gen.js';
2
+ export type { ActionStatusUpdaterCloudWatchQueryRequest, ActionStatusUpdaterCloudWatchQueryRequestWritable, ActionStatusUpdaterCloudWatchQueryResponse, ActionStatusUpdaterCloudWatchQueryResponseWritable, ActionStatusUpdaterListResponse, ActionStatusUpdaterListResponseWritable, ActionStatusUpdaterRequest, ActionStatusUpdaterRequestWritable, ActionStatusUpdaterResponse, ActionStatusUpdaterResponseWritable, ActionStatusUpdaterRestCallRequest, ActionStatusUpdaterRestCallRequestWritable, ActionStatusUpdaterRestCallResponse, ActionStatusUpdaterRestCallResponseWritable, AiAgentListResponse, AiAgentListResponseWritable, AiAgentRequest, AiAgentRequestWritable, AiAgentResponse, AiAgentResponseWritable, AwsLambdaRequest, AwsLambdaRequestWritable, AwsLambdaResponse, AwsLambdaResponseWritable, ChangesetErrors, ClientOptions, CloudflarePagesConfigRequest, CloudflarePagesConfigRequestWritable, CloudflarePagesConfigResponse, CloudflarePagesConfigResponseWritable, CloudStorageAwsRequest, CloudStorageAwsRequestWritable, CloudStorageAwsResponse, CloudStorageR2Request, CloudStorageR2RequestWritable, CloudStorageR2Response, CloudWatchLogGroupRequest, CloudWatchLogGroupRequestWritable, CloudWatchLogGroupResponse, CloudWatchLogGroupResponseWritable, CloudWatchQueryRequest, CloudWatchQueryResponse, ConnectedAppListResponse, ConnectedAppListResponseWritable, ConnectedAppRequest, ConnectedAppRequestWritable, ConnectedAppResponse, ConnectedAppResponseWritable, ConnectedAppRouteRequest, ConnectedAppRouteResponse, ConnectedAppUrlRequest, ConnectedAppUrlResponse, DatalakeListResponse, DatalakeListResponseWritable, DatalakeRequest, DatalakeRequestWritable, DatalakeResponse, DatalakeResponseWritable, DatasetSearchResponse, DataSourceListResponse, DataSourceListResponseWritable, DataSourceRequest, DataSourceResponse, DataSourceResponseWritable, EmailRequest, EmailRequestWritable, EmailResponse, EmailResponseWritable, ErrorResponse, ExecuteActionRequest, ExecuteActionResponse, GenericTableListResponse, GenericTableListResponseWritable, GenericTableRequest, GenericTableRequestWritable, GenericTableResponse, GenericTableResponseWritable, IngestFileRequest, IngestRequest, IngestResponse, ManualUploadRequest, ManualUploadResponse, MdmNotVerified, MdmVerified, MdmVerifyRequest, MdmVerifyResponse, PaginationMeta, PingResponse, PlatformApiActionStatusUpdaterControllerCreateData, PlatformApiActionStatusUpdaterControllerCreateError, PlatformApiActionStatusUpdaterControllerCreateErrors, PlatformApiActionStatusUpdaterControllerCreateResponse, PlatformApiActionStatusUpdaterControllerCreateResponses, PlatformApiActionStatusUpdaterControllerIndexData, PlatformApiActionStatusUpdaterControllerIndexError, PlatformApiActionStatusUpdaterControllerIndexErrors, PlatformApiActionStatusUpdaterControllerIndexResponse, PlatformApiActionStatusUpdaterControllerIndexResponses, PlatformApiActionStatusUpdaterControllerUpdateData, PlatformApiActionStatusUpdaterControllerUpdateError, PlatformApiActionStatusUpdaterControllerUpdateErrors, PlatformApiActionStatusUpdaterControllerUpdateResponse, PlatformApiActionStatusUpdaterControllerUpdateResponses, PlatformApiAiAgentControllerCreateData, PlatformApiAiAgentControllerCreateError, PlatformApiAiAgentControllerCreateErrors, PlatformApiAiAgentControllerCreateResponse, PlatformApiAiAgentControllerCreateResponses, PlatformApiAiAgentControllerDeleteData, PlatformApiAiAgentControllerDeleteError, PlatformApiAiAgentControllerDeleteErrors, PlatformApiAiAgentControllerDeleteResponse, PlatformApiAiAgentControllerDeleteResponses, PlatformApiAiAgentControllerIndexData, PlatformApiAiAgentControllerIndexError, PlatformApiAiAgentControllerIndexErrors, PlatformApiAiAgentControllerIndexResponse, PlatformApiAiAgentControllerIndexResponses, PlatformApiAiAgentControllerShowData, PlatformApiAiAgentControllerShowError, PlatformApiAiAgentControllerShowErrors, PlatformApiAiAgentControllerShowResponse, PlatformApiAiAgentControllerShowResponses, PlatformApiAiAgentControllerUpdateData, PlatformApiAiAgentControllerUpdateError, PlatformApiAiAgentControllerUpdateErrors, PlatformApiAiAgentControllerUpdateResponse, PlatformApiAiAgentControllerUpdateResponses, PlatformApiConnectedAppControllerResolvePageData, PlatformApiConnectedAppControllerResolvePageError, PlatformApiConnectedAppControllerResolvePageErrors, PlatformApiConnectedAppControllerResolvePageResponse, PlatformApiConnectedAppControllerResolvePageResponses, PlatformApiConnectedAppControllerUpdatePageData, PlatformApiConnectedAppControllerUpdatePageError, PlatformApiConnectedAppControllerUpdatePageErrors, PlatformApiConnectedAppControllerUpdatePageResponse, PlatformApiConnectedAppControllerUpdatePageResponses, PlatformApiConnectedAppMgmtControllerCreateData, PlatformApiConnectedAppMgmtControllerCreateError, PlatformApiConnectedAppMgmtControllerCreateErrors, PlatformApiConnectedAppMgmtControllerCreateResponse, PlatformApiConnectedAppMgmtControllerCreateResponses, PlatformApiConnectedAppMgmtControllerIndexData, PlatformApiConnectedAppMgmtControllerIndexError, PlatformApiConnectedAppMgmtControllerIndexErrors, PlatformApiConnectedAppMgmtControllerIndexResponse, PlatformApiConnectedAppMgmtControllerIndexResponses, PlatformApiConnectedAppMgmtControllerShowData, PlatformApiConnectedAppMgmtControllerShowError, PlatformApiConnectedAppMgmtControllerShowErrors, PlatformApiConnectedAppMgmtControllerShowResponse, PlatformApiConnectedAppMgmtControllerShowResponses, PlatformApiConnectedAppMgmtControllerSyncRoutesData, PlatformApiConnectedAppMgmtControllerSyncRoutesError, PlatformApiConnectedAppMgmtControllerSyncRoutesErrors, PlatformApiConnectedAppMgmtControllerSyncRoutesResponse, PlatformApiConnectedAppMgmtControllerSyncRoutesResponses, PlatformApiConnectedAppMgmtControllerUpdateData, PlatformApiConnectedAppMgmtControllerUpdateError, PlatformApiConnectedAppMgmtControllerUpdateErrors, PlatformApiConnectedAppMgmtControllerUpdateResponse, PlatformApiConnectedAppMgmtControllerUpdateResponses, PlatformApiDataActivationClientControllerCreateUploadLinkData, PlatformApiDataActivationClientControllerCreateUploadLinkError, PlatformApiDataActivationClientControllerCreateUploadLinkErrors, PlatformApiDataActivationClientControllerCreateUploadLinkResponse, PlatformApiDataActivationClientControllerCreateUploadLinkResponses, PlatformApiDataActivationClientControllerIngestData, PlatformApiDataActivationClientControllerIngestError, PlatformApiDataActivationClientControllerIngestErrors, PlatformApiDataActivationClientControllerIngestFileData, PlatformApiDataActivationClientControllerIngestFileError, PlatformApiDataActivationClientControllerIngestFileErrors, PlatformApiDataActivationClientControllerIngestFileResponse, PlatformApiDataActivationClientControllerIngestFileResponses, PlatformApiDataActivationClientControllerIngestResponse, PlatformApiDataActivationClientControllerIngestResponses, PlatformApiDatalakeControllerCreateData, PlatformApiDatalakeControllerCreateError, PlatformApiDatalakeControllerCreateErrors, PlatformApiDatalakeControllerCreateResponse, PlatformApiDatalakeControllerCreateResponses, PlatformApiDatalakeControllerIndexData, PlatformApiDatalakeControllerIndexError, PlatformApiDatalakeControllerIndexErrors, PlatformApiDatalakeControllerIndexResponse, PlatformApiDatalakeControllerIndexResponses, PlatformApiDatalakeControllerShowData, PlatformApiDatalakeControllerShowError, PlatformApiDatalakeControllerShowErrors, PlatformApiDatalakeControllerShowResponse, PlatformApiDatalakeControllerShowResponses, PlatformApiDatasetControllerSearchData, PlatformApiDatasetControllerSearchError, PlatformApiDatasetControllerSearchErrors, PlatformApiDatasetControllerSearchResponse, PlatformApiDatasetControllerSearchResponses, PlatformApiDataSourceControllerCreateData, PlatformApiDataSourceControllerCreateError, PlatformApiDataSourceControllerCreateErrors, PlatformApiDataSourceControllerCreateResponse, PlatformApiDataSourceControllerCreateResponses, PlatformApiDataSourceControllerIndexData, PlatformApiDataSourceControllerIndexError, PlatformApiDataSourceControllerIndexErrors, PlatformApiDataSourceControllerIndexResponse, PlatformApiDataSourceControllerIndexResponses, PlatformApiDataSourceControllerUpdateData, PlatformApiDataSourceControllerUpdateError, PlatformApiDataSourceControllerUpdateErrors, PlatformApiDataSourceControllerUpdateResponse, PlatformApiDataSourceControllerUpdateResponses, PlatformApiGenericTableControllerCreateData, PlatformApiGenericTableControllerCreateError, PlatformApiGenericTableControllerCreateErrors, PlatformApiGenericTableControllerCreateResponse, PlatformApiGenericTableControllerCreateResponses, PlatformApiGenericTableControllerIndexData, PlatformApiGenericTableControllerIndexError, PlatformApiGenericTableControllerIndexErrors, PlatformApiGenericTableControllerIndexResponse, PlatformApiGenericTableControllerIndexResponses, PlatformApiMdmControllerVerifyData, PlatformApiMdmControllerVerifyError, PlatformApiMdmControllerVerifyErrors, PlatformApiMdmControllerVerifyResponse, PlatformApiMdmControllerVerifyResponses, PlatformApiPingControllerPingData, PlatformApiPingControllerPingError, PlatformApiPingControllerPingErrors, PlatformApiPingControllerPingResponse, PlatformApiPingControllerPingResponses, PlatformApiSessionControllerCreateData, PlatformApiSessionControllerCreateError, PlatformApiSessionControllerCreateErrors, PlatformApiSessionControllerCreateResponse, PlatformApiSessionControllerCreateResponses, PlatformApiSessionControllerDeleteData, PlatformApiSessionControllerDeleteError, PlatformApiSessionControllerDeleteErrors, PlatformApiSessionControllerDeleteResponses, PlatformApiSessionControllerVerifyData, PlatformApiSessionControllerVerifyError, PlatformApiSessionControllerVerifyErrors, PlatformApiSessionControllerVerifyResponse, PlatformApiSessionControllerVerifyResponses, PlatformApiToolControllerCreateData, PlatformApiToolControllerCreateError, PlatformApiToolControllerCreateErrors, PlatformApiToolControllerCreateResponse, PlatformApiToolControllerCreateResponses, PlatformApiToolControllerDeleteData, PlatformApiToolControllerDeleteError, PlatformApiToolControllerDeleteErrors, PlatformApiToolControllerDeleteResponse, PlatformApiToolControllerDeleteResponses, PlatformApiToolControllerIndexData, PlatformApiToolControllerIndexError, PlatformApiToolControllerIndexErrors, PlatformApiToolControllerIndexResponse, PlatformApiToolControllerIndexResponses, PlatformApiToolControllerShowData, PlatformApiToolControllerShowError, PlatformApiToolControllerShowErrors, PlatformApiToolControllerShowResponse, PlatformApiToolControllerShowResponses, PlatformApiToolControllerUpdateData, PlatformApiToolControllerUpdateError, PlatformApiToolControllerUpdateErrors, PlatformApiToolControllerUpdateResponse, PlatformApiToolControllerUpdateResponses, PlatformApiWorkflowControllerExecuteData, PlatformApiWorkflowControllerExecuteError, PlatformApiWorkflowControllerExecuteErrors, PlatformApiWorkflowControllerExecuteResponse, PlatformApiWorkflowControllerExecuteResponses, ResolvePageRequest, ResolvePageResponse, RestapiRequest, RestapiRequestWritable, RestapiResponse, RestapiResponseWritable, RestCallRequest, RestCallRequestWritable, RestCallResponse, RestCallResponseWritable, S3CloudStorageAwsRequest, S3CloudStorageAwsRequestWritable, S3CloudStorageAwsResponse, S3CloudStorageAwsResponseWritable, S3CloudStorageR2Request, S3CloudStorageR2RequestWritable, S3CloudStorageR2Response, S3CloudStorageR2ResponseWritable, S3Request, S3RequestWritable, S3Response, S3ResponseWritable, SessionRequest, SessionResponse, SftpRequest, SftpRequestWritable, SftpResponse, SftpResponseWritable, SharePointRequest, SharePointRequestWritable, SharePointResponse, SharePointResponseWritable, SnsRequest, SnsRequestWritable, SnsResponse, SnsResponseWritable, SqlDatabaseRequest, SqlDatabaseRequestWritable, SqlDatabaseResponse, SqlDatabaseResponseWritable, SqsRequest, SqsRequestWritable, SqsResponse, SqsResponseWritable, SyncRoutesResponse, TenantResponse, ToolAwsLambdaRequest, ToolAwsLambdaRequestWritable, ToolAwsLambdaResponse, ToolAwsLambdaResponseWritable, ToolCloudWatchLogGroupRequest, ToolCloudWatchLogGroupRequestWritable, ToolCloudWatchLogGroupResponse, ToolCloudWatchLogGroupResponseWritable, ToolEmailRequest, ToolEmailRequestWritable, ToolEmailResponse, ToolEmailResponseWritable, ToolListResponse, ToolListResponseWritable, ToolManualUploadRequest, ToolManualUploadResponse, ToolRequest, ToolRequestWritable, ToolResponse, ToolResponseWritable, ToolRestapiRequest, ToolRestapiRequestWritable, ToolRestapiResponse, ToolRestapiResponseWritable, ToolS3Request, ToolS3RequestWritable, ToolS3Response, ToolS3ResponseWritable, ToolSftpRequest, ToolSftpRequestWritable, ToolSftpResponse, ToolSftpResponseWritable, ToolSharePointRequest, ToolSharePointRequestWritable, ToolSharePointResponse, ToolSharePointResponseWritable, ToolSnsRequest, ToolSnsRequestWritable, ToolSnsResponse, ToolSnsResponseWritable, ToolSqlDatabaseRequest, ToolSqlDatabaseRequestWritable, ToolSqlDatabaseResponse, ToolSqlDatabaseResponseWritable, ToolSqsRequest, ToolSqsRequestWritable, ToolSqsResponse, ToolSqsResponseWritable, UpdatePageRequest, UpdatePageResponse, UploadLinkRequest, UploadLinkResponse } from './types.gen.js';
3
3
  //# sourceMappingURL=index.d.ts.map