@alvera-ai/platform-sdk 0.9.0 → 0.10.0-rc.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/index.d.mts +48599 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +9637 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +14 -15
- package/LICENSE +0 -21
- package/README.md +0 -320
- package/src/cli/auth.ts +0 -174
- package/src/cli/env.ts +0 -49
- package/src/cli/helpers.ts +0 -128
- package/src/cli/init.ts +0 -123
- package/src/cli/raw.ts +0 -65
- package/src/cli/resources.ts +0 -789
- package/src/cli/workflows.ts +0 -246
- package/src/cli.ts +0 -54
- package/src/client.ts +0 -952
- package/src/config.ts +0 -209
- package/src/environments.generated.ts +0 -16
- package/src/generated/client/client.gen.ts +0 -298
- package/src/generated/client/index.ts +0 -25
- package/src/generated/client/types.gen.ts +0 -214
- package/src/generated/client/utils.gen.ts +0 -316
- package/src/generated/client.gen.ts +0 -16
- package/src/generated/core/auth.gen.ts +0 -41
- package/src/generated/core/bodySerializer.gen.ts +0 -82
- package/src/generated/core/params.gen.ts +0 -169
- package/src/generated/core/pathSerializer.gen.ts +0 -171
- package/src/generated/core/queryKeySerializer.gen.ts +0 -117
- package/src/generated/core/serverSentEvents.gen.ts +0 -242
- package/src/generated/core/types.gen.ts +0 -104
- package/src/generated/core/utils.gen.ts +0 -140
- package/src/generated/index.ts +0 -4
- package/src/generated/sdk.gen.ts +0 -1836
- package/src/generated/types.gen.ts +0 -13801
- package/src/generated/valibot.gen.ts +0 -7079
- package/src/index.ts +0 -70
package/src/client.ts
DELETED
|
@@ -1,952 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alvera Platform SDK — typed client.
|
|
3
|
-
*
|
|
4
|
-
* Architecture:
|
|
5
|
-
* generated/ auto-generated by @hey-api/openapi-ts (do not edit)
|
|
6
|
-
* sdk.gen.ts type-safe endpoint methods
|
|
7
|
-
* types.gen.ts request/response types from OpenAPI spec
|
|
8
|
-
* client.gen.ts HTTP client instance
|
|
9
|
-
*
|
|
10
|
-
* client.ts (this file) override layer
|
|
11
|
-
* - configures the hey-api client with auth
|
|
12
|
-
* - exposes a curated, ergonomic resource surface
|
|
13
|
-
* - provides corrected types for fields the OpenAPI spec leaves as `object`
|
|
14
|
-
*
|
|
15
|
-
* Regenerate generated/ with: pnpm regen
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import { client } from './generated/client.gen.js';
|
|
19
|
-
import { type Client, createClient } from './generated/client/index.js';
|
|
20
|
-
import {
|
|
21
|
-
platformApiActionStatusUpdaterControllerCreate,
|
|
22
|
-
platformApiAdminControllerConfirmUser,
|
|
23
|
-
platformApiAuthControllerSignUp,
|
|
24
|
-
platformApiDatasetControllerCreateUserSearch,
|
|
25
|
-
platformApiInvitationControllerAccept,
|
|
26
|
-
platformApiInvitationControllerCreate,
|
|
27
|
-
platformApiInvitationControllerIndex,
|
|
28
|
-
platformApiTenantControllerCreate,
|
|
29
|
-
platformApiActionStatusUpdaterControllerIndex,
|
|
30
|
-
platformApiActionStatusUpdaterControllerUpdate,
|
|
31
|
-
platformApiAgenticWorkflowControllerCreate,
|
|
32
|
-
platformApiAgenticWorkflowControllerDelete,
|
|
33
|
-
platformApiAgenticWorkflowControllerIndex,
|
|
34
|
-
platformApiAgenticWorkflowControllerMetadata,
|
|
35
|
-
platformApiAgenticWorkflowControllerShow,
|
|
36
|
-
platformApiAgenticWorkflowControllerUpdate,
|
|
37
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogRefresh,
|
|
38
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogShow,
|
|
39
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogStart,
|
|
40
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogStop,
|
|
41
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogsIndex,
|
|
42
|
-
platformApiAgenticWorkflowOperationsControllerExecute,
|
|
43
|
-
platformApiAgenticWorkflowOperationsControllerRunWorkflow,
|
|
44
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogDownload,
|
|
45
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogShow,
|
|
46
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogsIndex,
|
|
47
|
-
platformApiAiAgentControllerCreate,
|
|
48
|
-
platformApiAiAgentControllerDelete,
|
|
49
|
-
platformApiAiAgentControllerIndex,
|
|
50
|
-
platformApiAiAgentControllerShow,
|
|
51
|
-
platformApiAiAgentControllerUpdate,
|
|
52
|
-
platformApiConnectedAppControllerResolvePage,
|
|
53
|
-
platformApiConnectedAppControllerUpdateMessageTracking,
|
|
54
|
-
platformApiConnectedAppMgmtControllerCreate,
|
|
55
|
-
platformApiConnectedAppMgmtControllerIndex,
|
|
56
|
-
platformApiConnectedAppMgmtControllerShow,
|
|
57
|
-
platformApiConnectedAppMgmtControllerSyncRoutes,
|
|
58
|
-
platformApiConnectedAppMgmtControllerUpdate,
|
|
59
|
-
platformApiDataActivationClientControllerCreate,
|
|
60
|
-
platformApiDataActivationClientControllerDelete,
|
|
61
|
-
platformApiDataActivationClientControllerIndex,
|
|
62
|
-
platformApiDataActivationClientControllerIngest,
|
|
63
|
-
platformApiDataActivationClientControllerIngestFile,
|
|
64
|
-
platformApiDataActivationClientControllerLogShow,
|
|
65
|
-
platformApiDataActivationClientControllerLogsIndex,
|
|
66
|
-
platformApiDataActivationClientControllerMetadata,
|
|
67
|
-
platformApiDataActivationClientControllerRunManually,
|
|
68
|
-
platformApiDataActivationClientControllerShow,
|
|
69
|
-
platformApiDataActivationClientControllerUpdate,
|
|
70
|
-
platformApiDatalakeControllerCreate,
|
|
71
|
-
platformApiDatalakeControllerCreateDownloadLink,
|
|
72
|
-
platformApiDatalakeControllerCreateUploadLink,
|
|
73
|
-
platformApiDatalakeControllerIndex,
|
|
74
|
-
platformApiDatalakeControllerMetadata,
|
|
75
|
-
platformApiDatalakeControllerMigrate,
|
|
76
|
-
platformApiDatalakeControllerShow,
|
|
77
|
-
platformApiDatasetControllerDatasetMetadata,
|
|
78
|
-
platformApiDatasetControllerSearch,
|
|
79
|
-
platformApiDataSourceControllerCreate,
|
|
80
|
-
platformApiDataSourceControllerIndex,
|
|
81
|
-
platformApiDataSourceControllerUpdate,
|
|
82
|
-
platformApiGenericTableControllerCreate,
|
|
83
|
-
platformApiGenericTableControllerIndex,
|
|
84
|
-
platformApiInteroperabilityContractControllerCreate,
|
|
85
|
-
platformApiInteroperabilityContractControllerDelete,
|
|
86
|
-
platformApiInteroperabilityContractControllerIndex,
|
|
87
|
-
platformApiInteroperabilityContractControllerMetadata,
|
|
88
|
-
platformApiInteroperabilityContractControllerRun,
|
|
89
|
-
platformApiInteroperabilityContractControllerShow,
|
|
90
|
-
platformApiInteroperabilityContractControllerUpdate,
|
|
91
|
-
platformApiMdmControllerVerify,
|
|
92
|
-
platformApiPingControllerPing,
|
|
93
|
-
platformApiSessionControllerCreate,
|
|
94
|
-
platformApiSessionControllerDelete,
|
|
95
|
-
platformApiSessionControllerVerify,
|
|
96
|
-
platformApiTenantControllerIndex,
|
|
97
|
-
platformApiToolControllerCreate,
|
|
98
|
-
platformApiToolControllerDelete,
|
|
99
|
-
platformApiToolControllerIndex,
|
|
100
|
-
platformApiToolControllerShow,
|
|
101
|
-
platformApiToolControllerTestInvocation,
|
|
102
|
-
platformApiToolControllerUpdate,
|
|
103
|
-
} from './generated/sdk.gen.js';
|
|
104
|
-
|
|
105
|
-
// Re-export generated types that are correct as-is
|
|
106
|
-
export type {
|
|
107
|
-
ActionStatusUpdaterResponse,
|
|
108
|
-
AgenticWorkflowListResponse,
|
|
109
|
-
AgenticWorkflowRequestWritable,
|
|
110
|
-
AgenticWorkflowResponse,
|
|
111
|
-
AiAgentResponse,
|
|
112
|
-
BatchLogListResponse,
|
|
113
|
-
BatchLogResponse,
|
|
114
|
-
ConnectedAppListResponse,
|
|
115
|
-
ConnectedAppRequestWritable,
|
|
116
|
-
ConnectedAppResponse,
|
|
117
|
-
DataActivationClientListResponse,
|
|
118
|
-
DataActivationClientLogListResponse,
|
|
119
|
-
DataActivationClientLogResponse,
|
|
120
|
-
DataActivationClientRequestWritable,
|
|
121
|
-
DataActivationClientResponse,
|
|
122
|
-
DatalakeRequestWritable,
|
|
123
|
-
DatalakeResponse,
|
|
124
|
-
DatasetSearchResponse,
|
|
125
|
-
DataSourceRequest,
|
|
126
|
-
DataSourceResponse,
|
|
127
|
-
DownloadUrlResponse,
|
|
128
|
-
ExecuteActionRequest,
|
|
129
|
-
ExecuteActionResponse,
|
|
130
|
-
GenericTableResponse,
|
|
131
|
-
IngestFileRequest,
|
|
132
|
-
IngestRequest,
|
|
133
|
-
InteroperabilityContractListResponse,
|
|
134
|
-
InteroperabilityContractRequestWritable,
|
|
135
|
-
InteroperabilityContractResponse,
|
|
136
|
-
InteroperabilityRunRequest,
|
|
137
|
-
InteroperabilityRunResponse,
|
|
138
|
-
MdmVerifyRequest,
|
|
139
|
-
MdmVerifyResponse,
|
|
140
|
-
PaginationMeta,
|
|
141
|
-
ResolvePageRequest,
|
|
142
|
-
RunManuallyRequestWritable,
|
|
143
|
-
RunManuallyResponse,
|
|
144
|
-
RunWorkflowRequest,
|
|
145
|
-
RunWorkflowResponse,
|
|
146
|
-
SessionResponse,
|
|
147
|
-
SyncRoutesResponse,
|
|
148
|
-
TenantListResponse,
|
|
149
|
-
TenantResponse,
|
|
150
|
-
ToolRequest,
|
|
151
|
-
ToolResponse,
|
|
152
|
-
UpdatePageRequest,
|
|
153
|
-
UploadLinkRequest,
|
|
154
|
-
UploadLinkResponse,
|
|
155
|
-
WorkflowLogListResponse,
|
|
156
|
-
WorkflowLogResponse,
|
|
157
|
-
} from './generated/types.gen.js';
|
|
158
|
-
|
|
159
|
-
// ---------------------------------------------------------------------------
|
|
160
|
-
// Manual type overrides — spec has untyped `object` fields for these
|
|
161
|
-
// ---------------------------------------------------------------------------
|
|
162
|
-
|
|
163
|
-
export interface GenericTableColumn {
|
|
164
|
-
name: string;
|
|
165
|
-
title?: string;
|
|
166
|
-
type?: 'string' | 'integer' | 'float' | 'boolean' | 'date' | 'datetime' | 'time';
|
|
167
|
-
description: string;
|
|
168
|
-
privacy_requirement?: 'none' | 'tokenize' | 'redact_only';
|
|
169
|
-
is_required?: boolean;
|
|
170
|
-
is_unique?: boolean;
|
|
171
|
-
is_array?: boolean;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface CreateGenericTableRequest {
|
|
175
|
-
title: string;
|
|
176
|
-
description?: string;
|
|
177
|
-
data_domain?:
|
|
178
|
-
| 'healthcare'
|
|
179
|
-
| 'core_banking'
|
|
180
|
-
| 'payment_risk'
|
|
181
|
-
| 'accounts_receivable'
|
|
182
|
-
| 'service_commerce'
|
|
183
|
-
| 'trading'
|
|
184
|
-
| null;
|
|
185
|
-
columns: GenericTableColumn[];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface CloudWatchUpdaterBody {
|
|
189
|
-
__type__: 'cloud_watch_request';
|
|
190
|
-
log_group_name: string;
|
|
191
|
-
start_time: string;
|
|
192
|
-
end_time: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface RestApiUpdaterBody {
|
|
196
|
-
__type__: 'restapi_request';
|
|
197
|
-
[key: string]: unknown;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface TemplateConfig {
|
|
201
|
-
type: 'system' | 'custom';
|
|
202
|
-
path?: string;
|
|
203
|
-
body?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface CreateActionStatusUpdaterRequest {
|
|
207
|
-
name: string;
|
|
208
|
-
cron_expression: string;
|
|
209
|
-
updater_type: 'cloud_watch' | 'restapi';
|
|
210
|
-
updater_tool_id: string;
|
|
211
|
-
datalake_id: string;
|
|
212
|
-
sender_tool_ids?: string[] | null;
|
|
213
|
-
message_config?: TemplateConfig;
|
|
214
|
-
action_log_config?: TemplateConfig | null;
|
|
215
|
-
updater_body?: CloudWatchUpdaterBody | RestApiUpdaterBody;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface CreateAiAgentRequest {
|
|
219
|
-
name: string;
|
|
220
|
-
model: string;
|
|
221
|
-
tool_id: string;
|
|
222
|
-
data_access: 'regulated' | 'unregulated';
|
|
223
|
-
temperature: number;
|
|
224
|
-
max_tokens: number;
|
|
225
|
-
enabled: boolean;
|
|
226
|
-
slug?: string;
|
|
227
|
-
description?: string | null;
|
|
228
|
-
input_schema?: Record<string, unknown> | null;
|
|
229
|
-
llm_response_schema?: Record<string, unknown> | null;
|
|
230
|
-
prompt_config?: Record<string, unknown> | null;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// ---------------------------------------------------------------------------
|
|
234
|
-
// Auth — session-based (Bearer token)
|
|
235
|
-
// ---------------------------------------------------------------------------
|
|
236
|
-
|
|
237
|
-
export interface CreateSessionParams {
|
|
238
|
-
baseUrl: string;
|
|
239
|
-
email: string;
|
|
240
|
-
password: string;
|
|
241
|
-
/**
|
|
242
|
-
* Tenant slug to scope the session to. Omit to mint a tenantless Bearer
|
|
243
|
-
* for admin operations or the pre-tenant phase of the self-bootstrap
|
|
244
|
-
* flow (sign-up → confirm → tenants.create). When omitted, the returned
|
|
245
|
-
* `tenant` and `role` fields are null.
|
|
246
|
-
*/
|
|
247
|
-
tenantSlug?: string;
|
|
248
|
-
/** Session duration in seconds. Default 86400 (24h). Max 2592000 (30d). */
|
|
249
|
-
expiresIn?: number;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export interface SessionResult {
|
|
253
|
-
/** Bearer token to pass into createPlatformApi. */
|
|
254
|
-
sessionToken: string;
|
|
255
|
-
/** ISO-8601 expiration timestamp, or null for non-expiring sessions. */
|
|
256
|
-
expiresAt: string | null;
|
|
257
|
-
/** Null for tenantless sessions (admin / pre-tenant bootstrap). */
|
|
258
|
-
tenant: { id: string; slug: string; name: string } | null;
|
|
259
|
-
/** Null for tenantless sessions. */
|
|
260
|
-
role: { id: string; name: string } | null;
|
|
261
|
-
user: { id: string; firstName: string | null; lastName: string | null } | null;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Exchange user credentials for a Bearer session token. Pass `tenantSlug`
|
|
266
|
-
* for a tenant-scoped session (the common case); omit it for a tenantless
|
|
267
|
-
* Bearer used by admin endpoints (`PUT /admin/users/:id/confirm`) or the
|
|
268
|
-
* pre-tenant bootstrap phase.
|
|
269
|
-
*
|
|
270
|
-
* Throws on any non-2xx response (e.g. 401 invalid credentials).
|
|
271
|
-
*/
|
|
272
|
-
export async function createSession(
|
|
273
|
-
params: CreateSessionParams,
|
|
274
|
-
): Promise<SessionResult> {
|
|
275
|
-
client.setConfig({ baseUrl: params.baseUrl.replace(/\/$/, '') });
|
|
276
|
-
|
|
277
|
-
const { data } = await platformApiSessionControllerCreate({
|
|
278
|
-
body: {
|
|
279
|
-
email: params.email,
|
|
280
|
-
password: params.password,
|
|
281
|
-
...(params.tenantSlug !== undefined ? { tenant_slug: params.tenantSlug } : {}),
|
|
282
|
-
...(params.expiresIn !== undefined ? { expires_in: params.expiresIn } : {}),
|
|
283
|
-
},
|
|
284
|
-
throwOnError: true,
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
if (!data.session_token) {
|
|
288
|
-
throw new Error('Session created but no session_token was returned.');
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return {
|
|
292
|
-
sessionToken: data.session_token,
|
|
293
|
-
expiresAt: data.expires_at ?? null,
|
|
294
|
-
tenant: data.tenant
|
|
295
|
-
? { id: data.tenant.id, slug: data.tenant.slug, name: data.tenant.name }
|
|
296
|
-
: null,
|
|
297
|
-
role: data.role ? { id: data.role.id, name: data.role.name } : null,
|
|
298
|
-
user: data.user
|
|
299
|
-
? {
|
|
300
|
-
id: data.user.id,
|
|
301
|
-
firstName: data.user.first_name ?? null,
|
|
302
|
-
lastName: data.user.last_name ?? null,
|
|
303
|
-
}
|
|
304
|
-
: null,
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Revoke the currently-configured session token. After calling this,
|
|
310
|
-
* the api instance will reject every subsequent request with 401.
|
|
311
|
-
*/
|
|
312
|
-
export async function revokeSession(): Promise<void> {
|
|
313
|
-
await platformApiSessionControllerDelete({ throwOnError: true });
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// ---------------------------------------------------------------------------
|
|
317
|
-
// Config
|
|
318
|
-
// ---------------------------------------------------------------------------
|
|
319
|
-
|
|
320
|
-
export type ApiConfig =
|
|
321
|
-
| { baseUrl: string; sessionToken: string }
|
|
322
|
-
| { baseUrl: string; apiKey: string };
|
|
323
|
-
|
|
324
|
-
// ---------------------------------------------------------------------------
|
|
325
|
-
// Factories — two named entry points
|
|
326
|
-
//
|
|
327
|
-
// createPlatformApi(config) singleton mode (default)
|
|
328
|
-
// Mutates the shared, generated client. Cheap, single-bearer-at-a-time.
|
|
329
|
-
// Right for CLIs and single-user web apps where one logged-in user holds
|
|
330
|
-
// exactly one bearer at any moment.
|
|
331
|
-
//
|
|
332
|
-
// createIsolatedPlatformApi(config) private-client mode
|
|
333
|
-
// Builds its own Client via createClient() and threads it on every call.
|
|
334
|
-
// Right for code that needs MULTIPLE concurrent APIs bound to DIFFERENT
|
|
335
|
-
// bearers in the same process — integration tests holding a root session
|
|
336
|
-
// and a tenant-scoped session at once, or multi-tenant background jobs.
|
|
337
|
-
//
|
|
338
|
-
// Both factories return the same PlatformApi shape, built by _buildApi().
|
|
339
|
-
// ---------------------------------------------------------------------------
|
|
340
|
-
|
|
341
|
-
export type PlatformApi = ReturnType<typeof _buildApi>;
|
|
342
|
-
|
|
343
|
-
export interface DatasetSearchOptions {
|
|
344
|
-
datalakeId?: string;
|
|
345
|
-
userSearchId?: string;
|
|
346
|
-
/**
|
|
347
|
-
* Optional override for the data access mode used by this read.
|
|
348
|
-
* Defaults to the session's `data_access_mode`. The session's capability
|
|
349
|
-
* ceiling still applies — escalating beyond it returns 403.
|
|
350
|
-
*/
|
|
351
|
-
dataAccessMode?: 'regulated' | 'unregulated';
|
|
352
|
-
page?: number;
|
|
353
|
-
pageSize?: number;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export interface DatasetMetadataOptions {
|
|
357
|
-
datalakeId?: string;
|
|
358
|
-
genericTableId?: string;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
function authHeaders(config: ApiConfig): Record<string, string> {
|
|
362
|
-
if ('apiKey' in config) return { 'X-API-Key': config.apiKey };
|
|
363
|
-
return { Authorization: `Bearer ${config.sessionToken}` };
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export function createPlatformApi(config: ApiConfig): PlatformApi {
|
|
367
|
-
const baseUrl = config.baseUrl.replace(/\/$/, '');
|
|
368
|
-
client.setConfig({ baseUrl, headers: authHeaders(config) });
|
|
369
|
-
return _buildApi(client);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export function createIsolatedPlatformApi(config: ApiConfig): PlatformApi {
|
|
373
|
-
const baseUrl = config.baseUrl.replace(/\/$/, '');
|
|
374
|
-
return _buildApi(createClient({ baseUrl, headers: authHeaders(config) }));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export function createUnvalidatedPlatformApi(config: ApiConfig): PlatformApi {
|
|
378
|
-
const baseUrl = config.baseUrl.replace(/\/$/, '');
|
|
379
|
-
const inner = createClient({ baseUrl, headers: authHeaders(config) });
|
|
380
|
-
const strip = (options: Record<string, unknown>) => {
|
|
381
|
-
const { responseValidator: _, ...rest } = options;
|
|
382
|
-
return rest;
|
|
383
|
-
};
|
|
384
|
-
const unvalidated = new Proxy(inner, {
|
|
385
|
-
get(target, prop, receiver) {
|
|
386
|
-
const val = Reflect.get(target, prop, receiver);
|
|
387
|
-
if (typeof val === 'function' && typeof prop === 'string' &&
|
|
388
|
-
['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'request'].includes(prop)) {
|
|
389
|
-
return (options: Record<string, unknown>) => val.call(target, strip(options));
|
|
390
|
-
}
|
|
391
|
-
return val;
|
|
392
|
-
},
|
|
393
|
-
}) as Client;
|
|
394
|
-
return _buildApi(unvalidated);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
function _buildApi(myClient: Client) {
|
|
398
|
-
return {
|
|
399
|
-
ping: () =>
|
|
400
|
-
platformApiPingControllerPing({ client: myClient, throwOnError: true }),
|
|
401
|
-
|
|
402
|
-
sessions: {
|
|
403
|
-
verify: () =>
|
|
404
|
-
platformApiSessionControllerVerify({ client: myClient, throwOnError: true }),
|
|
405
|
-
},
|
|
406
|
-
|
|
407
|
-
auth: {
|
|
408
|
-
signUp: (body: Record<string, unknown>) =>
|
|
409
|
-
platformApiAuthControllerSignUp({ body: body as never, client: myClient, throwOnError: true }),
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
admin: {
|
|
413
|
-
confirmUser: (id: string) =>
|
|
414
|
-
platformApiAdminControllerConfirmUser({ path: { id }, client: myClient, throwOnError: true }),
|
|
415
|
-
},
|
|
416
|
-
|
|
417
|
-
tenants: {
|
|
418
|
-
list: () =>
|
|
419
|
-
platformApiTenantControllerIndex({ client: myClient, throwOnError: true }),
|
|
420
|
-
create: (body: Record<string, unknown>) =>
|
|
421
|
-
platformApiTenantControllerCreate({ body: body as never, client: myClient, throwOnError: true }),
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
invitations: {
|
|
425
|
-
list: () =>
|
|
426
|
-
platformApiInvitationControllerIndex({ client: myClient, throwOnError: true }),
|
|
427
|
-
create: (tenantSlug: string, body: Record<string, unknown>) =>
|
|
428
|
-
platformApiInvitationControllerCreate({
|
|
429
|
-
path: { tenant_slug: tenantSlug },
|
|
430
|
-
body: body as never,
|
|
431
|
-
client: myClient, throwOnError: true,
|
|
432
|
-
}),
|
|
433
|
-
accept: (id: string) =>
|
|
434
|
-
platformApiInvitationControllerAccept({ path: { id }, client: myClient, throwOnError: true }),
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
datasets: {
|
|
438
|
-
search: (dataset: string, options: DatasetSearchOptions = {}) =>
|
|
439
|
-
platformApiDatasetControllerSearch({
|
|
440
|
-
path: { dataset },
|
|
441
|
-
query: {
|
|
442
|
-
...(options.datalakeId !== undefined ? { datalake_id: options.datalakeId } : {}),
|
|
443
|
-
...(options.userSearchId !== undefined ? { user_search_id: options.userSearchId } : {}),
|
|
444
|
-
...(options.dataAccessMode !== undefined
|
|
445
|
-
? { data_access_mode: options.dataAccessMode }
|
|
446
|
-
: {}),
|
|
447
|
-
...(options.page !== undefined ? { page: options.page } : {}),
|
|
448
|
-
...(options.pageSize !== undefined ? { page_size: options.pageSize } : {}),
|
|
449
|
-
},
|
|
450
|
-
client: myClient, throwOnError: true,
|
|
451
|
-
}),
|
|
452
|
-
metadata: (datasetType: string, options: DatasetMetadataOptions = {}) =>
|
|
453
|
-
platformApiDatasetControllerDatasetMetadata({
|
|
454
|
-
path: { dataset_type: datasetType },
|
|
455
|
-
query: {
|
|
456
|
-
...(options.datalakeId !== undefined ? { datalake_id: options.datalakeId } : {}),
|
|
457
|
-
...(options.genericTableId !== undefined
|
|
458
|
-
? { generic_table_id: options.genericTableId }
|
|
459
|
-
: {}),
|
|
460
|
-
},
|
|
461
|
-
client: myClient, throwOnError: true,
|
|
462
|
-
}),
|
|
463
|
-
createUserSearch: (
|
|
464
|
-
dataset: string,
|
|
465
|
-
body: Record<string, unknown>,
|
|
466
|
-
options: { datalakeId?: string } = {},
|
|
467
|
-
) =>
|
|
468
|
-
platformApiDatasetControllerCreateUserSearch({
|
|
469
|
-
path: { dataset },
|
|
470
|
-
query: options.datalakeId !== undefined ? { datalake_id: options.datalakeId } : {},
|
|
471
|
-
body: body as never,
|
|
472
|
-
client: myClient, throwOnError: true,
|
|
473
|
-
}),
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
datalakes: {
|
|
477
|
-
list: (tenantSlug: string) =>
|
|
478
|
-
platformApiDatalakeControllerIndex({
|
|
479
|
-
path: { tenant_slug: tenantSlug },
|
|
480
|
-
client: myClient, throwOnError: true,
|
|
481
|
-
}),
|
|
482
|
-
get: (tenantSlug: string, id: string) =>
|
|
483
|
-
platformApiDatalakeControllerShow({
|
|
484
|
-
path: { tenant_slug: tenantSlug, id },
|
|
485
|
-
client: myClient, throwOnError: true,
|
|
486
|
-
}),
|
|
487
|
-
create: (tenantSlug: string, body: Record<string, unknown>) =>
|
|
488
|
-
platformApiDatalakeControllerCreate({
|
|
489
|
-
path: { tenant_slug: tenantSlug },
|
|
490
|
-
body: body as never,
|
|
491
|
-
client: myClient, throwOnError: true,
|
|
492
|
-
}),
|
|
493
|
-
metadata: (tenantSlug: string, datalakeSlug: string) =>
|
|
494
|
-
platformApiDatalakeControllerMetadata({
|
|
495
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
496
|
-
client: myClient, throwOnError: true,
|
|
497
|
-
}),
|
|
498
|
-
migrate: (tenantSlug: string, datalakeSlug: string) =>
|
|
499
|
-
platformApiDatalakeControllerMigrate({
|
|
500
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
501
|
-
client: myClient, throwOnError: true,
|
|
502
|
-
}),
|
|
503
|
-
createUploadLink: (
|
|
504
|
-
tenantSlug: string,
|
|
505
|
-
datalakeSlug: string,
|
|
506
|
-
body: { content_type: 'application/x-ndjson' | 'text/csv'; filename: string },
|
|
507
|
-
) =>
|
|
508
|
-
platformApiDatalakeControllerCreateUploadLink({
|
|
509
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
510
|
-
body,
|
|
511
|
-
client: myClient, throwOnError: true,
|
|
512
|
-
}),
|
|
513
|
-
createDownloadLink: (
|
|
514
|
-
tenantSlug: string,
|
|
515
|
-
datalakeSlug: string,
|
|
516
|
-
body: { bucket: string; key: string },
|
|
517
|
-
) =>
|
|
518
|
-
platformApiDatalakeControllerCreateDownloadLink({
|
|
519
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
520
|
-
body,
|
|
521
|
-
client: myClient, throwOnError: true,
|
|
522
|
-
}),
|
|
523
|
-
},
|
|
524
|
-
|
|
525
|
-
dataSources: {
|
|
526
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
527
|
-
platformApiDataSourceControllerIndex({
|
|
528
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
529
|
-
client: myClient, throwOnError: true,
|
|
530
|
-
}),
|
|
531
|
-
create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
532
|
-
platformApiDataSourceControllerCreate({
|
|
533
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
534
|
-
body: body as never,
|
|
535
|
-
client: myClient, throwOnError: true,
|
|
536
|
-
}),
|
|
537
|
-
update: (
|
|
538
|
-
tenantSlug: string,
|
|
539
|
-
datalakeSlug: string,
|
|
540
|
-
id: string,
|
|
541
|
-
body: Record<string, unknown>,
|
|
542
|
-
) =>
|
|
543
|
-
platformApiDataSourceControllerUpdate({
|
|
544
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
545
|
-
body: body as never,
|
|
546
|
-
client: myClient, throwOnError: true,
|
|
547
|
-
}),
|
|
548
|
-
},
|
|
549
|
-
|
|
550
|
-
tools: {
|
|
551
|
-
list: (tenantSlug: string) =>
|
|
552
|
-
platformApiToolControllerIndex({
|
|
553
|
-
path: { tenant_slug: tenantSlug },
|
|
554
|
-
client: myClient, throwOnError: true,
|
|
555
|
-
}),
|
|
556
|
-
get: (tenantSlug: string, id: string) =>
|
|
557
|
-
platformApiToolControllerShow({
|
|
558
|
-
path: { tenant_slug: tenantSlug, id },
|
|
559
|
-
client: myClient, throwOnError: true,
|
|
560
|
-
}),
|
|
561
|
-
create: (tenantSlug: string, body: Record<string, unknown>) =>
|
|
562
|
-
platformApiToolControllerCreate({
|
|
563
|
-
path: { tenant_slug: tenantSlug },
|
|
564
|
-
body: body as never,
|
|
565
|
-
client: myClient, throwOnError: true,
|
|
566
|
-
}),
|
|
567
|
-
update: (tenantSlug: string, id: string, body: Record<string, unknown>) =>
|
|
568
|
-
platformApiToolControllerUpdate({
|
|
569
|
-
path: { tenant_slug: tenantSlug, id },
|
|
570
|
-
body: body as never,
|
|
571
|
-
client: myClient, throwOnError: true,
|
|
572
|
-
}),
|
|
573
|
-
delete: (tenantSlug: string, id: string) =>
|
|
574
|
-
platformApiToolControllerDelete({
|
|
575
|
-
path: { tenant_slug: tenantSlug, id },
|
|
576
|
-
client: myClient, throwOnError: true,
|
|
577
|
-
}),
|
|
578
|
-
testInvocation: (tenantSlug: string, id: string, body: Record<string, unknown>) =>
|
|
579
|
-
platformApiToolControllerTestInvocation({
|
|
580
|
-
path: { tenant_slug: tenantSlug, id },
|
|
581
|
-
body: body as never,
|
|
582
|
-
client: myClient, throwOnError: true,
|
|
583
|
-
}),
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
genericTables: {
|
|
587
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
588
|
-
platformApiGenericTableControllerIndex({
|
|
589
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
590
|
-
client: myClient, throwOnError: true,
|
|
591
|
-
}),
|
|
592
|
-
create: (tenantSlug: string, datalakeSlug: string, body: CreateGenericTableRequest) =>
|
|
593
|
-
platformApiGenericTableControllerCreate({
|
|
594
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
595
|
-
body: body as never,
|
|
596
|
-
client: myClient, throwOnError: true,
|
|
597
|
-
}),
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
actionStatusUpdaters: {
|
|
601
|
-
list: (tenantSlug: string) =>
|
|
602
|
-
platformApiActionStatusUpdaterControllerIndex({
|
|
603
|
-
path: { tenant_slug: tenantSlug },
|
|
604
|
-
client: myClient, throwOnError: true,
|
|
605
|
-
}),
|
|
606
|
-
create: (tenantSlug: string, body: CreateActionStatusUpdaterRequest) =>
|
|
607
|
-
platformApiActionStatusUpdaterControllerCreate({
|
|
608
|
-
path: { tenant_slug: tenantSlug },
|
|
609
|
-
body: body as never,
|
|
610
|
-
client: myClient, throwOnError: true,
|
|
611
|
-
}),
|
|
612
|
-
update: (tenantSlug: string, id: string, body: CreateActionStatusUpdaterRequest) =>
|
|
613
|
-
platformApiActionStatusUpdaterControllerUpdate({
|
|
614
|
-
path: { tenant_slug: tenantSlug, id },
|
|
615
|
-
body: body as never,
|
|
616
|
-
client: myClient, throwOnError: true,
|
|
617
|
-
}),
|
|
618
|
-
},
|
|
619
|
-
|
|
620
|
-
aiAgents: {
|
|
621
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
622
|
-
platformApiAiAgentControllerIndex({
|
|
623
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
624
|
-
client: myClient, throwOnError: true,
|
|
625
|
-
}),
|
|
626
|
-
get: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
627
|
-
platformApiAiAgentControllerShow({
|
|
628
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
629
|
-
client: myClient, throwOnError: true,
|
|
630
|
-
}),
|
|
631
|
-
create: (tenantSlug: string, datalakeSlug: string, body: CreateAiAgentRequest) =>
|
|
632
|
-
platformApiAiAgentControllerCreate({
|
|
633
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
634
|
-
body: body as never,
|
|
635
|
-
client: myClient, throwOnError: true,
|
|
636
|
-
}),
|
|
637
|
-
update: (tenantSlug: string, datalakeSlug: string, id: string, body: CreateAiAgentRequest) =>
|
|
638
|
-
platformApiAiAgentControllerUpdate({
|
|
639
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
640
|
-
body: body as never,
|
|
641
|
-
client: myClient, throwOnError: true,
|
|
642
|
-
}),
|
|
643
|
-
delete: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
644
|
-
platformApiAiAgentControllerDelete({
|
|
645
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
646
|
-
client: myClient, throwOnError: true,
|
|
647
|
-
}),
|
|
648
|
-
},
|
|
649
|
-
|
|
650
|
-
connectedApps: {
|
|
651
|
-
// datalake-scoped management
|
|
652
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
653
|
-
platformApiConnectedAppMgmtControllerIndex({
|
|
654
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
655
|
-
client: myClient, throwOnError: true,
|
|
656
|
-
}),
|
|
657
|
-
get: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
658
|
-
platformApiConnectedAppMgmtControllerShow({
|
|
659
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
660
|
-
client: myClient, throwOnError: true,
|
|
661
|
-
}),
|
|
662
|
-
create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
663
|
-
platformApiConnectedAppMgmtControllerCreate({
|
|
664
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
665
|
-
body: body as never,
|
|
666
|
-
client: myClient, throwOnError: true,
|
|
667
|
-
}),
|
|
668
|
-
update: (tenantSlug: string, datalakeSlug: string, id: string, body: Record<string, unknown>) =>
|
|
669
|
-
platformApiConnectedAppMgmtControllerUpdate({
|
|
670
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
671
|
-
body: body as never,
|
|
672
|
-
client: myClient, throwOnError: true,
|
|
673
|
-
}),
|
|
674
|
-
syncRoutes: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
675
|
-
platformApiConnectedAppMgmtControllerSyncRoutes({
|
|
676
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
677
|
-
client: myClient, throwOnError: true,
|
|
678
|
-
}),
|
|
679
|
-
// tenant-scoped runtime actions (by slug)
|
|
680
|
-
resolvePage: (tenantSlug: string, slug: string, body: Record<string, unknown>) =>
|
|
681
|
-
platformApiConnectedAppControllerResolvePage({
|
|
682
|
-
path: { tenant_slug: tenantSlug, slug },
|
|
683
|
-
body: body as never,
|
|
684
|
-
client: myClient, throwOnError: true,
|
|
685
|
-
}),
|
|
686
|
-
updateMessageTracking: (
|
|
687
|
-
tenantSlug: string,
|
|
688
|
-
slug: string,
|
|
689
|
-
body: Record<string, unknown>,
|
|
690
|
-
) =>
|
|
691
|
-
platformApiConnectedAppControllerUpdateMessageTracking({
|
|
692
|
-
path: { tenant_slug: tenantSlug, slug },
|
|
693
|
-
body: body as never,
|
|
694
|
-
client: myClient, throwOnError: true,
|
|
695
|
-
}),
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
dataActivationClients: {
|
|
699
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
700
|
-
platformApiDataActivationClientControllerIndex({
|
|
701
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
702
|
-
client: myClient, throwOnError: true,
|
|
703
|
-
}),
|
|
704
|
-
get: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
705
|
-
platformApiDataActivationClientControllerShow({
|
|
706
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
707
|
-
client: myClient, throwOnError: true,
|
|
708
|
-
}),
|
|
709
|
-
create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
710
|
-
platformApiDataActivationClientControllerCreate({
|
|
711
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
712
|
-
body: body as never,
|
|
713
|
-
client: myClient, throwOnError: true,
|
|
714
|
-
}),
|
|
715
|
-
update: (
|
|
716
|
-
tenantSlug: string,
|
|
717
|
-
datalakeSlug: string,
|
|
718
|
-
slug: string,
|
|
719
|
-
body: Record<string, unknown>,
|
|
720
|
-
) =>
|
|
721
|
-
platformApiDataActivationClientControllerUpdate({
|
|
722
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
723
|
-
body: body as never,
|
|
724
|
-
client: myClient, throwOnError: true,
|
|
725
|
-
}),
|
|
726
|
-
delete: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
727
|
-
platformApiDataActivationClientControllerDelete({
|
|
728
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
729
|
-
client: myClient, throwOnError: true,
|
|
730
|
-
}),
|
|
731
|
-
metadata: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
732
|
-
platformApiDataActivationClientControllerMetadata({
|
|
733
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
734
|
-
client: myClient, throwOnError: true,
|
|
735
|
-
}),
|
|
736
|
-
runManually: (
|
|
737
|
-
tenantSlug: string,
|
|
738
|
-
datalakeSlug: string,
|
|
739
|
-
slug: string,
|
|
740
|
-
body?: Record<string, unknown>,
|
|
741
|
-
) =>
|
|
742
|
-
platformApiDataActivationClientControllerRunManually({
|
|
743
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
744
|
-
body: (body ?? {}) as never,
|
|
745
|
-
client: myClient, throwOnError: true,
|
|
746
|
-
}),
|
|
747
|
-
ingest: (
|
|
748
|
-
tenantSlug: string,
|
|
749
|
-
datalakeSlug: string,
|
|
750
|
-
slug: string,
|
|
751
|
-
body: Record<string, unknown>,
|
|
752
|
-
) =>
|
|
753
|
-
platformApiDataActivationClientControllerIngest({
|
|
754
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
755
|
-
body: body as never,
|
|
756
|
-
client: myClient, throwOnError: true,
|
|
757
|
-
}),
|
|
758
|
-
ingestFile: (
|
|
759
|
-
tenantSlug: string,
|
|
760
|
-
datalakeSlug: string,
|
|
761
|
-
slug: string,
|
|
762
|
-
body: { key: string },
|
|
763
|
-
) =>
|
|
764
|
-
platformApiDataActivationClientControllerIngestFile({
|
|
765
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
766
|
-
body,
|
|
767
|
-
client: myClient, throwOnError: true,
|
|
768
|
-
}),
|
|
769
|
-
logs: {
|
|
770
|
-
list: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
771
|
-
platformApiDataActivationClientControllerLogsIndex({
|
|
772
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
773
|
-
client: myClient, throwOnError: true,
|
|
774
|
-
}),
|
|
775
|
-
get: (tenantSlug: string, datalakeSlug: string, slug: string, id: string) =>
|
|
776
|
-
platformApiDataActivationClientControllerLogShow({
|
|
777
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug, id },
|
|
778
|
-
client: myClient, throwOnError: true,
|
|
779
|
-
}),
|
|
780
|
-
},
|
|
781
|
-
},
|
|
782
|
-
|
|
783
|
-
interoperabilityContracts: {
|
|
784
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
785
|
-
platformApiInteroperabilityContractControllerIndex({
|
|
786
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
787
|
-
client: myClient, throwOnError: true,
|
|
788
|
-
}),
|
|
789
|
-
get: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
790
|
-
platformApiInteroperabilityContractControllerShow({
|
|
791
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
792
|
-
client: myClient, throwOnError: true,
|
|
793
|
-
}),
|
|
794
|
-
create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
795
|
-
platformApiInteroperabilityContractControllerCreate({
|
|
796
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
797
|
-
body: body as never,
|
|
798
|
-
client: myClient, throwOnError: true,
|
|
799
|
-
}),
|
|
800
|
-
update: (
|
|
801
|
-
tenantSlug: string,
|
|
802
|
-
datalakeSlug: string,
|
|
803
|
-
slug: string,
|
|
804
|
-
body: Record<string, unknown>,
|
|
805
|
-
) =>
|
|
806
|
-
platformApiInteroperabilityContractControllerUpdate({
|
|
807
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
808
|
-
body: body as never,
|
|
809
|
-
client: myClient, throwOnError: true,
|
|
810
|
-
}),
|
|
811
|
-
delete: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
812
|
-
platformApiInteroperabilityContractControllerDelete({
|
|
813
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
814
|
-
client: myClient, throwOnError: true,
|
|
815
|
-
}),
|
|
816
|
-
metadata: (tenantSlug: string, datalakeSlug: string, slug: string) =>
|
|
817
|
-
platformApiInteroperabilityContractControllerMetadata({
|
|
818
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
819
|
-
client: myClient, throwOnError: true,
|
|
820
|
-
}),
|
|
821
|
-
run: (
|
|
822
|
-
tenantSlug: string,
|
|
823
|
-
datalakeSlug: string,
|
|
824
|
-
slug: string,
|
|
825
|
-
body: Record<string, unknown>,
|
|
826
|
-
) =>
|
|
827
|
-
platformApiInteroperabilityContractControllerRun({
|
|
828
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, slug },
|
|
829
|
-
body: body as never,
|
|
830
|
-
client: myClient, throwOnError: true,
|
|
831
|
-
}),
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
mdm: {
|
|
835
|
-
verify: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
836
|
-
platformApiMdmControllerVerify({
|
|
837
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
838
|
-
body: body as never,
|
|
839
|
-
client: myClient, throwOnError: true,
|
|
840
|
-
}),
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
workflows: {
|
|
844
|
-
// CRUD — datalake-scoped, addressed by workflow id
|
|
845
|
-
list: (tenantSlug: string, datalakeSlug: string) =>
|
|
846
|
-
platformApiAgenticWorkflowControllerIndex({
|
|
847
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
848
|
-
client: myClient, throwOnError: true,
|
|
849
|
-
}),
|
|
850
|
-
get: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
851
|
-
platformApiAgenticWorkflowControllerShow({
|
|
852
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
853
|
-
client: myClient, throwOnError: true,
|
|
854
|
-
}),
|
|
855
|
-
create: (tenantSlug: string, datalakeSlug: string, body: Record<string, unknown>) =>
|
|
856
|
-
platformApiAgenticWorkflowControllerCreate({
|
|
857
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug },
|
|
858
|
-
body: body as never,
|
|
859
|
-
client: myClient, throwOnError: true,
|
|
860
|
-
}),
|
|
861
|
-
update: (
|
|
862
|
-
tenantSlug: string,
|
|
863
|
-
datalakeSlug: string,
|
|
864
|
-
id: string,
|
|
865
|
-
body: Record<string, unknown>,
|
|
866
|
-
) =>
|
|
867
|
-
platformApiAgenticWorkflowControllerUpdate({
|
|
868
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
869
|
-
body: body as never,
|
|
870
|
-
client: myClient, throwOnError: true,
|
|
871
|
-
}),
|
|
872
|
-
delete: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
873
|
-
platformApiAgenticWorkflowControllerDelete({
|
|
874
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
875
|
-
client: myClient, throwOnError: true,
|
|
876
|
-
}),
|
|
877
|
-
metadata: (tenantSlug: string, datalakeSlug: string, id: string) =>
|
|
878
|
-
platformApiAgenticWorkflowControllerMetadata({
|
|
879
|
-
path: { tenant_slug: tenantSlug, datalake_slug: datalakeSlug, id },
|
|
880
|
-
client: myClient, throwOnError: true,
|
|
881
|
-
}),
|
|
882
|
-
|
|
883
|
-
// Operations — tenant-scoped, addressed by workflow slug
|
|
884
|
-
execute: (tenantSlug: string, workflowSlug: string, body: Record<string, unknown>) =>
|
|
885
|
-
platformApiAgenticWorkflowOperationsControllerExecute({
|
|
886
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug },
|
|
887
|
-
body: body as never,
|
|
888
|
-
client: myClient, throwOnError: true,
|
|
889
|
-
}),
|
|
890
|
-
run: (tenantSlug: string, workflowSlug: string, body: Record<string, unknown>) =>
|
|
891
|
-
platformApiAgenticWorkflowOperationsControllerRunWorkflow({
|
|
892
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug },
|
|
893
|
-
body: body as never,
|
|
894
|
-
client: myClient, throwOnError: true,
|
|
895
|
-
}),
|
|
896
|
-
|
|
897
|
-
batchLogs: {
|
|
898
|
-
list: (tenantSlug: string, workflowSlug: string) =>
|
|
899
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogsIndex({
|
|
900
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug },
|
|
901
|
-
client: myClient, throwOnError: true,
|
|
902
|
-
}),
|
|
903
|
-
get: (tenantSlug: string, workflowSlug: string, id: string) =>
|
|
904
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogShow({
|
|
905
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
906
|
-
client: myClient, throwOnError: true,
|
|
907
|
-
}),
|
|
908
|
-
start: (tenantSlug: string, workflowSlug: string, id: string) =>
|
|
909
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogStart({
|
|
910
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
911
|
-
client: myClient, throwOnError: true,
|
|
912
|
-
}),
|
|
913
|
-
stop: (tenantSlug: string, workflowSlug: string, id: string) =>
|
|
914
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogStop({
|
|
915
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
916
|
-
client: myClient, throwOnError: true,
|
|
917
|
-
}),
|
|
918
|
-
refresh: (tenantSlug: string, workflowSlug: string, id: string) =>
|
|
919
|
-
platformApiAgenticWorkflowOperationsControllerBatchLogRefresh({
|
|
920
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
921
|
-
client: myClient, throwOnError: true,
|
|
922
|
-
}),
|
|
923
|
-
},
|
|
924
|
-
|
|
925
|
-
workflowLogs: {
|
|
926
|
-
list: (tenantSlug: string, workflowSlug: string) =>
|
|
927
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogsIndex({
|
|
928
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug },
|
|
929
|
-
client: myClient, throwOnError: true,
|
|
930
|
-
}),
|
|
931
|
-
get: (
|
|
932
|
-
tenantSlug: string,
|
|
933
|
-
workflowSlug: string,
|
|
934
|
-
id: string,
|
|
935
|
-
opts?: { dataAccessMode?: 'regulated' | 'unregulated' },
|
|
936
|
-
) =>
|
|
937
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogShow({
|
|
938
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
939
|
-
...(opts?.dataAccessMode
|
|
940
|
-
? { query: { data_access_mode: opts.dataAccessMode } }
|
|
941
|
-
: {}),
|
|
942
|
-
client: myClient, throwOnError: true,
|
|
943
|
-
}),
|
|
944
|
-
download: (tenantSlug: string, workflowSlug: string, id: string) =>
|
|
945
|
-
platformApiAgenticWorkflowOperationsControllerWorkflowLogDownload({
|
|
946
|
-
path: { tenant_slug: tenantSlug, workflow_slug: workflowSlug, id },
|
|
947
|
-
client: myClient, throwOnError: true,
|
|
948
|
-
}),
|
|
949
|
-
},
|
|
950
|
-
},
|
|
951
|
-
};
|
|
952
|
-
}
|