@octonodes/sdk 0.0.3

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.
Files changed (78) hide show
  1. package/README.md +34 -0
  2. package/dist/constants.d.ts +2 -0
  3. package/dist/constants.d.ts.map +1 -0
  4. package/dist/constants.js +5 -0
  5. package/dist/constants.js.map +1 -0
  6. package/dist/gen/client/client.gen.d.ts +3 -0
  7. package/dist/gen/client/client.gen.d.ts.map +1 -0
  8. package/dist/gen/client/client.gen.js +221 -0
  9. package/dist/gen/client/client.gen.js.map +1 -0
  10. package/dist/gen/client/index.d.ts +10 -0
  11. package/dist/gen/client/index.d.ts.map +1 -0
  12. package/dist/gen/client/index.js +18 -0
  13. package/dist/gen/client/index.js.map +1 -0
  14. package/dist/gen/client/types.gen.d.ts +121 -0
  15. package/dist/gen/client/types.gen.d.ts.map +1 -0
  16. package/dist/gen/client/types.gen.js +4 -0
  17. package/dist/gen/client/types.gen.js.map +1 -0
  18. package/dist/gen/client/utils.gen.d.ts +38 -0
  19. package/dist/gen/client/utils.gen.d.ts.map +1 -0
  20. package/dist/gen/client/utils.gen.js +240 -0
  21. package/dist/gen/client/utils.gen.js.map +1 -0
  22. package/dist/gen/client.gen.d.ts +13 -0
  23. package/dist/gen/client.gen.d.ts.map +1 -0
  24. package/dist/gen/client.gen.js +7 -0
  25. package/dist/gen/client.gen.js.map +1 -0
  26. package/dist/gen/core/auth.gen.d.ts +26 -0
  27. package/dist/gen/core/auth.gen.d.ts.map +1 -0
  28. package/dist/gen/core/auth.gen.js +19 -0
  29. package/dist/gen/core/auth.gen.js.map +1 -0
  30. package/dist/gen/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/gen/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/gen/core/bodySerializer.gen.js +61 -0
  33. package/dist/gen/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/gen/core/params.gen.d.ts +44 -0
  35. package/dist/gen/core/params.gen.d.ts.map +1 -0
  36. package/dist/gen/core/params.gen.js +104 -0
  37. package/dist/gen/core/params.gen.js.map +1 -0
  38. package/dist/gen/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/gen/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/gen/core/pathSerializer.gen.js +116 -0
  41. package/dist/gen/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/gen/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/gen/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/gen/core/queryKeySerializer.gen.js +99 -0
  45. package/dist/gen/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/gen/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/gen/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/gen/core/serverSentEvents.gen.js +136 -0
  49. package/dist/gen/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/gen/core/types.gen.d.ts +79 -0
  51. package/dist/gen/core/types.gen.d.ts.map +1 -0
  52. package/dist/gen/core/types.gen.js +4 -0
  53. package/dist/gen/core/types.gen.js.map +1 -0
  54. package/dist/gen/core/utils.gen.d.ts +20 -0
  55. package/dist/gen/core/utils.gen.d.ts.map +1 -0
  56. package/dist/gen/core/utils.gen.js +94 -0
  57. package/dist/gen/core/utils.gen.js.map +1 -0
  58. package/dist/gen/index.d.ts +3 -0
  59. package/dist/gen/index.d.ts.map +1 -0
  60. package/dist/gen/index.js +113 -0
  61. package/dist/gen/index.js.map +1 -0
  62. package/dist/gen/sdk.gen.d.ts +748 -0
  63. package/dist/gen/sdk.gen.d.ts.map +1 -0
  64. package/dist/gen/sdk.gen.js +1654 -0
  65. package/dist/gen/sdk.gen.js.map +1 -0
  66. package/dist/gen/types.gen.d.ts +4597 -0
  67. package/dist/gen/types.gen.d.ts.map +1 -0
  68. package/dist/gen/types.gen.js +4 -0
  69. package/dist/gen/types.gen.js.map +1 -0
  70. package/dist/index.d.ts +4 -0
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +9 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/octonode-client.d.ts +11 -0
  75. package/dist/octonode-client.d.ts.map +1 -0
  76. package/dist/octonode-client.js +32 -0
  77. package/dist/octonode-client.js.map +1 -0
  78. package/package.json +21 -0
@@ -0,0 +1,4597 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ export type GetApiCapabilitiesData = {
5
+ body?: never;
6
+ path?: never;
7
+ query?: never;
8
+ url: '/api/capabilities';
9
+ };
10
+ export type GetApiCapabilitiesResponses = {
11
+ /**
12
+ * Success
13
+ */
14
+ 200: {
15
+ version: 1;
16
+ mode: 'trusted-local' | 'configured-local-cloud' | 'hosted';
17
+ items: Array<{
18
+ name: 'workspace_identity' | 'workspace_social' | 'task_management' | 'workspace_admin' | 'workflow_execution' | 'billing' | 'design_review' | 'design_preview' | 'architecture' | 'repository_registry' | 'repository_discovery' | 'repository_git_read' | 'repository_git_write' | 'design_architecture_embed' | 'workspace_registry_backup_restore' | 'github' | 'slack' | 'google' | 'meta' | 'qwen' | 'workflow_agents' | 'cloud_terminal' | 'mcp_catalog' | 'monitoring' | 'agent_monitoring' | 'backup_restore' | 'write_authority' | 'community_read' | 'community_authoring' | 'community_publishing' | 'workflow_templates';
19
+ available: true;
20
+ mode: 'trusted-local' | 'configured-local-cloud' | 'hosted';
21
+ } | {
22
+ name: 'workspace_identity' | 'workspace_social' | 'task_management' | 'workspace_admin' | 'workflow_execution' | 'billing' | 'design_review' | 'design_preview' | 'architecture' | 'repository_registry' | 'repository_discovery' | 'repository_git_read' | 'repository_git_write' | 'design_architecture_embed' | 'workspace_registry_backup_restore' | 'github' | 'slack' | 'google' | 'meta' | 'qwen' | 'workflow_agents' | 'cloud_terminal' | 'mcp_catalog' | 'monitoring' | 'agent_monitoring' | 'backup_restore' | 'write_authority' | 'community_read' | 'community_authoring' | 'community_publishing' | 'workflow_templates';
23
+ available: false;
24
+ mode: 'trusted-local' | 'configured-local-cloud' | 'hosted';
25
+ reason: 'not_implemented' | 'requires_cloud_configuration' | 'requires_hosted_runtime' | 'provider_not_configured' | 'disabled_by_policy' | 'missing_entitlement' | 'missing_permission';
26
+ }>;
27
+ };
28
+ };
29
+ export type GetApiCapabilitiesResponse = GetApiCapabilitiesResponses[keyof GetApiCapabilitiesResponses];
30
+ export type GetApiIdentityData = {
31
+ body?: never;
32
+ path?: never;
33
+ query?: never;
34
+ url: '/api/identity';
35
+ };
36
+ export type GetApiIdentityResponses = {
37
+ /**
38
+ * Success
39
+ */
40
+ 200: {
41
+ userId: string;
42
+ displayName?: string;
43
+ groups: Array<string>;
44
+ orgId: string;
45
+ };
46
+ };
47
+ export type GetApiIdentityResponse = GetApiIdentityResponses[keyof GetApiIdentityResponses];
48
+ export type GetApiRunsData = {
49
+ body?: never;
50
+ path?: never;
51
+ query?: {
52
+ workflowId?: string;
53
+ cursor?: string;
54
+ offset?: number;
55
+ limit?: number;
56
+ fields?: string;
57
+ };
58
+ url: '/api/runs';
59
+ };
60
+ export type GetApiRunsResponses = {
61
+ /**
62
+ * Success
63
+ */
64
+ 200: {
65
+ items: Array<{
66
+ runId: string;
67
+ workflowId: string;
68
+ status: 'ok' | 'error' | 'partial';
69
+ durationMs: number;
70
+ startedAt: number;
71
+ owner: string;
72
+ scope: 'user' | 'group' | 'org' | 'public';
73
+ nodeCount?: number;
74
+ record: {
75
+ workflowId: string;
76
+ runId: string;
77
+ env?: string;
78
+ status: 'ok' | 'error' | 'partial';
79
+ nodes: {
80
+ [key: string]: {
81
+ status: 'ok' | 'error' | 'skipped';
82
+ attempts: number;
83
+ durationMs: number;
84
+ command?: string;
85
+ inputs?: unknown;
86
+ outputs?: unknown;
87
+ error?: {
88
+ code: string;
89
+ message: string;
90
+ retryable?: boolean;
91
+ };
92
+ note?: 'disabled' | 'pinned' | 'upstream-of-from-node';
93
+ };
94
+ };
95
+ outputs: {
96
+ [key: string]: unknown;
97
+ };
98
+ durationMs: number;
99
+ };
100
+ }>;
101
+ total: number;
102
+ offset: number;
103
+ limit: number;
104
+ nextCursor?: string;
105
+ usage?: {
106
+ count: number;
107
+ bytes: number;
108
+ };
109
+ };
110
+ };
111
+ export type GetApiRunsResponse = GetApiRunsResponses[keyof GetApiRunsResponses];
112
+ export type GetApiRunsByRunIdData = {
113
+ body?: never;
114
+ path: {
115
+ runId: string;
116
+ };
117
+ query?: never;
118
+ url: '/api/runs/{runId}';
119
+ };
120
+ export type GetApiRunsByRunIdErrors = {
121
+ /**
122
+ * Error
123
+ */
124
+ 404: {
125
+ error: string;
126
+ };
127
+ };
128
+ export type GetApiRunsByRunIdError = GetApiRunsByRunIdErrors[keyof GetApiRunsByRunIdErrors];
129
+ export type GetApiRunsByRunIdResponses = {
130
+ /**
131
+ * Success
132
+ */
133
+ 200: {
134
+ runId: string;
135
+ workflowId: string;
136
+ status: 'ok' | 'error' | 'partial';
137
+ durationMs: number;
138
+ startedAt: number;
139
+ owner: string;
140
+ scope: 'user' | 'group' | 'org' | 'public';
141
+ nodeCount?: number;
142
+ record: {
143
+ workflowId: string;
144
+ runId: string;
145
+ env?: string;
146
+ status: 'ok' | 'error' | 'partial';
147
+ nodes: {
148
+ [key: string]: {
149
+ status: 'ok' | 'error' | 'skipped';
150
+ attempts: number;
151
+ durationMs: number;
152
+ command?: string;
153
+ inputs?: unknown;
154
+ outputs?: unknown;
155
+ error?: {
156
+ code: string;
157
+ message: string;
158
+ retryable?: boolean;
159
+ };
160
+ note?: 'disabled' | 'pinned' | 'upstream-of-from-node';
161
+ };
162
+ };
163
+ outputs: {
164
+ [key: string]: unknown;
165
+ };
166
+ durationMs: number;
167
+ };
168
+ };
169
+ };
170
+ export type GetApiRunsByRunIdResponse = GetApiRunsByRunIdResponses[keyof GetApiRunsByRunIdResponses];
171
+ export type PostApiRunsByRunIdCancelData = {
172
+ body?: never;
173
+ path: {
174
+ runId: string;
175
+ };
176
+ query?: never;
177
+ url: '/api/runs/{runId}/cancel';
178
+ };
179
+ export type PostApiRunsByRunIdCancelErrors = {
180
+ /**
181
+ * Error
182
+ */
183
+ 400: {
184
+ error: string;
185
+ };
186
+ };
187
+ export type PostApiRunsByRunIdCancelError = PostApiRunsByRunIdCancelErrors[keyof PostApiRunsByRunIdCancelErrors];
188
+ export type PostApiRunsByRunIdCancelResponses = {
189
+ /**
190
+ * Success
191
+ */
192
+ 200: {
193
+ ok: true;
194
+ cancelled: boolean;
195
+ };
196
+ };
197
+ export type PostApiRunsByRunIdCancelResponse = PostApiRunsByRunIdCancelResponses[keyof PostApiRunsByRunIdCancelResponses];
198
+ export type GetApiProfileData = {
199
+ body?: never;
200
+ path?: never;
201
+ query: {
202
+ workspace: string;
203
+ };
204
+ url: '/api/profile';
205
+ };
206
+ export type GetApiProfileErrors = {
207
+ /**
208
+ * Error
209
+ */
210
+ 401: {
211
+ error: string;
212
+ };
213
+ /**
214
+ * Error
215
+ */
216
+ 403: {
217
+ error: string;
218
+ };
219
+ /**
220
+ * Error
221
+ */
222
+ 404: {
223
+ error: string;
224
+ };
225
+ };
226
+ export type GetApiProfileError = GetApiProfileErrors[keyof GetApiProfileErrors];
227
+ export type GetApiProfileResponses = {
228
+ /**
229
+ * Success
230
+ */
231
+ 200: {
232
+ userId: string;
233
+ displayName: string | null;
234
+ title: string | null;
235
+ bio: string | null;
236
+ avatarUrl: string | null;
237
+ profileVersion: number;
238
+ };
239
+ };
240
+ export type GetApiProfileResponse = GetApiProfileResponses[keyof GetApiProfileResponses];
241
+ export type GetApiProfilesByUserIdAvatarData = {
242
+ body?: never;
243
+ path: {
244
+ userId: string;
245
+ };
246
+ query: {
247
+ workspace: string;
248
+ v?: number;
249
+ };
250
+ url: '/api/profiles/{userId}/avatar';
251
+ };
252
+ export type GetApiProfilesByUserIdAvatarErrors = {
253
+ /**
254
+ * Not found
255
+ */
256
+ 404: unknown;
257
+ };
258
+ export type GetApiProfilesByUserIdAvatarResponses = {
259
+ /**
260
+ * Avatar bytes
261
+ */
262
+ 200: Blob | File;
263
+ };
264
+ export type GetApiProfilesByUserIdAvatarResponse = GetApiProfilesByUserIdAvatarResponses[keyof GetApiProfilesByUserIdAvatarResponses];
265
+ export type GetApiProfilesWorkspaceMembersData = {
266
+ body?: never;
267
+ path?: never;
268
+ query: {
269
+ workspace: string;
270
+ q?: string;
271
+ cursor?: string;
272
+ limit?: number;
273
+ };
274
+ url: '/api/profiles/workspace-members';
275
+ };
276
+ export type GetApiProfilesWorkspaceMembersErrors = {
277
+ /**
278
+ * Error
279
+ */
280
+ 400: {
281
+ error: string;
282
+ };
283
+ /**
284
+ * Error
285
+ */
286
+ 403: {
287
+ error: string;
288
+ };
289
+ };
290
+ export type GetApiProfilesWorkspaceMembersError = GetApiProfilesWorkspaceMembersErrors[keyof GetApiProfilesWorkspaceMembersErrors];
291
+ export type GetApiProfilesWorkspaceMembersResponses = {
292
+ /**
293
+ * Success
294
+ */
295
+ 200: {
296
+ items: Array<{
297
+ userId: string;
298
+ displayName: string | null;
299
+ title: string | null;
300
+ bio: string | null;
301
+ avatarUrl: string | null;
302
+ profileVersion: number;
303
+ }>;
304
+ nextCursor: string | null;
305
+ };
306
+ };
307
+ export type GetApiProfilesWorkspaceMembersResponse = GetApiProfilesWorkspaceMembersResponses[keyof GetApiProfilesWorkspaceMembersResponses];
308
+ export type PostApiKnowledgeSearchData = {
309
+ body: {
310
+ query: string;
311
+ topK?: number;
312
+ };
313
+ path?: never;
314
+ query: {
315
+ workspace: string;
316
+ project: string;
317
+ };
318
+ url: '/api/knowledge/search';
319
+ };
320
+ export type PostApiKnowledgeSearchErrors = {
321
+ /**
322
+ * Error
323
+ */
324
+ 400: {
325
+ error: string;
326
+ };
327
+ /**
328
+ * Error
329
+ */
330
+ 403: {
331
+ error: string;
332
+ };
333
+ /**
334
+ * Error
335
+ */
336
+ 503: {
337
+ error: string;
338
+ };
339
+ };
340
+ export type PostApiKnowledgeSearchError = PostApiKnowledgeSearchErrors[keyof PostApiKnowledgeSearchErrors];
341
+ export type PostApiKnowledgeSearchResponses = {
342
+ /**
343
+ * Success
344
+ */
345
+ 200: {
346
+ corpusGeneration: string;
347
+ model: '@cf/baai/bge-base-en-v1.5';
348
+ matches: Array<{
349
+ id: string;
350
+ score: number;
351
+ source: string;
352
+ title: string;
353
+ heading: string;
354
+ content: string;
355
+ digest: string;
356
+ kind: 'documentation' | 'skill';
357
+ }>;
358
+ };
359
+ };
360
+ export type PostApiKnowledgeSearchResponse = PostApiKnowledgeSearchResponses[keyof PostApiKnowledgeSearchResponses];
361
+ export type GetApiSocialConversationsData = {
362
+ body?: never;
363
+ path?: never;
364
+ query: {
365
+ workspace: string;
366
+ cursor?: string;
367
+ limit?: number;
368
+ };
369
+ url: '/api/social/conversations';
370
+ };
371
+ export type GetApiSocialConversationsErrors = {
372
+ /**
373
+ * Error
374
+ */
375
+ 400: {
376
+ error: string;
377
+ };
378
+ /**
379
+ * Error
380
+ */
381
+ 403: {
382
+ error: string;
383
+ };
384
+ /**
385
+ * Error
386
+ */
387
+ 503: {
388
+ error: string;
389
+ };
390
+ };
391
+ export type GetApiSocialConversationsError = GetApiSocialConversationsErrors[keyof GetApiSocialConversationsErrors];
392
+ export type GetApiSocialConversationsResponses = {
393
+ /**
394
+ * Success
395
+ */
396
+ 200: {
397
+ items: Array<{
398
+ id: string;
399
+ kind: 'workspace' | 'group' | 'direct' | 'assistant';
400
+ name: string | null;
401
+ version: number;
402
+ createdAt: number;
403
+ updatedAt: number;
404
+ archivedAt: number | null;
405
+ lastMessageSeq: number | null;
406
+ lastMessageAt: number | null;
407
+ unreadCount: number;
408
+ }>;
409
+ nextCursor: string | null;
410
+ };
411
+ };
412
+ export type GetApiSocialConversationsResponse = GetApiSocialConversationsResponses[keyof GetApiSocialConversationsResponses];
413
+ export type GetApiSocialConversationsByIdMembersData = {
414
+ body?: never;
415
+ path: {
416
+ id: string;
417
+ };
418
+ query: {
419
+ workspace: string;
420
+ };
421
+ url: '/api/social/conversations/{id}/members';
422
+ };
423
+ export type GetApiSocialConversationsByIdMembersErrors = {
424
+ /**
425
+ * Error
426
+ */
427
+ 403: {
428
+ error: string;
429
+ };
430
+ /**
431
+ * Error
432
+ */
433
+ 404: {
434
+ error: string;
435
+ };
436
+ };
437
+ export type GetApiSocialConversationsByIdMembersError = GetApiSocialConversationsByIdMembersErrors[keyof GetApiSocialConversationsByIdMembersErrors];
438
+ export type GetApiSocialConversationsByIdMembersResponses = {
439
+ /**
440
+ * Success
441
+ */
442
+ 200: {
443
+ items: Array<string>;
444
+ };
445
+ };
446
+ export type GetApiSocialConversationsByIdMembersResponse = GetApiSocialConversationsByIdMembersResponses[keyof GetApiSocialConversationsByIdMembersResponses];
447
+ export type GetApiSocialConversationsByIdMessagesData = {
448
+ body?: never;
449
+ path: {
450
+ id: string;
451
+ };
452
+ query: {
453
+ workspace: string;
454
+ cursor?: string;
455
+ limit?: number;
456
+ };
457
+ url: '/api/social/conversations/{id}/messages';
458
+ };
459
+ export type GetApiSocialConversationsByIdMessagesErrors = {
460
+ /**
461
+ * Error
462
+ */
463
+ 400: {
464
+ error: string;
465
+ };
466
+ /**
467
+ * Error
468
+ */
469
+ 403: {
470
+ error: string;
471
+ };
472
+ /**
473
+ * Error
474
+ */
475
+ 404: {
476
+ error: string;
477
+ };
478
+ };
479
+ export type GetApiSocialConversationsByIdMessagesError = GetApiSocialConversationsByIdMessagesErrors[keyof GetApiSocialConversationsByIdMessagesErrors];
480
+ export type GetApiSocialConversationsByIdMessagesResponses = {
481
+ /**
482
+ * Success
483
+ */
484
+ 200: {
485
+ items: Array<{
486
+ seq: number;
487
+ id: string;
488
+ conversationId: string;
489
+ authorKind: 'user' | 'agent';
490
+ authorId: string;
491
+ authorLabel: string | null;
492
+ origin: 'octonode' | 'slack';
493
+ replyToId: string | null;
494
+ body: string;
495
+ version: number;
496
+ createdAt: number;
497
+ editedAt: number | null;
498
+ deletedAt: number | null;
499
+ reactions: {
500
+ [key: string]: number;
501
+ };
502
+ viewerReactions: Array<string>;
503
+ }>;
504
+ nextCursor: string | null;
505
+ };
506
+ };
507
+ export type GetApiSocialConversationsByIdMessagesResponse = GetApiSocialConversationsByIdMessagesResponses[keyof GetApiSocialConversationsByIdMessagesResponses];
508
+ export type GetApiSocialNotificationsData = {
509
+ body?: never;
510
+ path?: never;
511
+ query: {
512
+ workspace: string;
513
+ cursor?: string;
514
+ limit?: number;
515
+ };
516
+ url: '/api/social/notifications';
517
+ };
518
+ export type GetApiSocialNotificationsErrors = {
519
+ /**
520
+ * Error
521
+ */
522
+ 400: {
523
+ error: string;
524
+ };
525
+ /**
526
+ * Error
527
+ */
528
+ 403: {
529
+ error: string;
530
+ };
531
+ };
532
+ export type GetApiSocialNotificationsError = GetApiSocialNotificationsErrors[keyof GetApiSocialNotificationsErrors];
533
+ export type GetApiSocialNotificationsResponses = {
534
+ /**
535
+ * Success
536
+ */
537
+ 200: {
538
+ items: Array<{
539
+ seq: number;
540
+ id: string;
541
+ kind: 'message' | 'review_reply' | 'suggestion' | 'github_sync';
542
+ actorKind: 'user' | 'agent' | 'github';
543
+ actorId: string;
544
+ entityType: string;
545
+ entityId: string;
546
+ payload: {
547
+ [key: string]: unknown;
548
+ };
549
+ createdAt: number;
550
+ readAt: number | null;
551
+ }>;
552
+ nextCursor: string | null;
553
+ unread: number;
554
+ };
555
+ };
556
+ export type GetApiSocialNotificationsResponse = GetApiSocialNotificationsResponses[keyof GetApiSocialNotificationsResponses];
557
+ export type GetApiGithubRepositoriesData = {
558
+ body?: never;
559
+ path?: never;
560
+ query: {
561
+ workspace: string;
562
+ };
563
+ url: '/api/github/repositories';
564
+ };
565
+ export type GetApiGithubRepositoriesErrors = {
566
+ /**
567
+ * Error
568
+ */
569
+ 403: {
570
+ error: string;
571
+ };
572
+ /**
573
+ * Error
574
+ */
575
+ 503: {
576
+ error: string;
577
+ };
578
+ };
579
+ export type GetApiGithubRepositoriesError = GetApiGithubRepositoriesErrors[keyof GetApiGithubRepositoriesErrors];
580
+ export type GetApiGithubRepositoriesResponses = {
581
+ /**
582
+ * Success
583
+ */
584
+ 200: {
585
+ items: Array<{
586
+ repositoryId: number;
587
+ installationId: number;
588
+ owner: string;
589
+ name: string;
590
+ fullName: string;
591
+ defaultBranch: string;
592
+ private: boolean;
593
+ archived: boolean;
594
+ permissions: {
595
+ [key: string]: boolean;
596
+ };
597
+ updatedAt: number;
598
+ }>;
599
+ };
600
+ };
601
+ export type GetApiGithubRepositoriesResponse = GetApiGithubRepositoriesResponses[keyof GetApiGithubRepositoriesResponses];
602
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsData = {
603
+ body?: never;
604
+ path: {
605
+ architectureId: string;
606
+ };
607
+ query: {
608
+ workspace: string;
609
+ state?: 'open' | 'closed' | 'all';
610
+ };
611
+ url: '/api/architectures/{architectureId}/github/pull-requests';
612
+ };
613
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsErrors = {
614
+ /**
615
+ * Error
616
+ */
617
+ 400: {
618
+ error: string;
619
+ };
620
+ /**
621
+ * Error
622
+ */
623
+ 403: {
624
+ error: string;
625
+ };
626
+ /**
627
+ * Error
628
+ */
629
+ 404: {
630
+ error: string;
631
+ };
632
+ /**
633
+ * Error
634
+ */
635
+ 503: {
636
+ error: string;
637
+ };
638
+ };
639
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsError = GetApiArchitecturesByArchitectureIdGithubPullRequestsErrors[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsErrors];
640
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsResponses = {
641
+ /**
642
+ * Success
643
+ */
644
+ 200: {
645
+ repository: {
646
+ repositoryId: number;
647
+ installationId: number;
648
+ fullName: string;
649
+ defaultBranch: string;
650
+ };
651
+ items: Array<{
652
+ repositoryId: number;
653
+ number: number;
654
+ title: string;
655
+ body: string | null;
656
+ state: 'open' | 'closed' | 'merged';
657
+ draft: boolean;
658
+ author: {
659
+ id: number | null;
660
+ login: string;
661
+ };
662
+ base: {
663
+ ref: string;
664
+ sha: string;
665
+ };
666
+ head: {
667
+ repositoryId: number | null;
668
+ ref: string;
669
+ sha: string;
670
+ };
671
+ maintainerCanModify: boolean;
672
+ htmlUrl: string;
673
+ createdAt: number;
674
+ updatedAt: number;
675
+ closedAt: number | null;
676
+ mergedAt: number | null;
677
+ }>;
678
+ };
679
+ };
680
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsResponse = GetApiArchitecturesByArchitectureIdGithubPullRequestsResponses[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsResponses];
681
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberData = {
682
+ body?: never;
683
+ path: {
684
+ architectureId: string;
685
+ number: number;
686
+ };
687
+ query: {
688
+ workspace: string;
689
+ };
690
+ url: '/api/architectures/{architectureId}/github/pull-requests/{number}';
691
+ };
692
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberErrors = {
693
+ /**
694
+ * Error
695
+ */
696
+ 403: {
697
+ error: string;
698
+ };
699
+ /**
700
+ * Error
701
+ */
702
+ 404: {
703
+ error: string;
704
+ };
705
+ /**
706
+ * Error
707
+ */
708
+ 503: {
709
+ error: string;
710
+ };
711
+ };
712
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberError = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberErrors[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberErrors];
713
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberResponses = {
714
+ /**
715
+ * Success
716
+ */
717
+ 200: {
718
+ repository: {
719
+ repositoryId: number;
720
+ installationId: number;
721
+ fullName: string;
722
+ defaultBranch: string;
723
+ };
724
+ pullRequest: {
725
+ repositoryId: number;
726
+ number: number;
727
+ title: string;
728
+ body: string | null;
729
+ state: 'open' | 'closed' | 'merged';
730
+ draft: boolean;
731
+ author: {
732
+ id: number | null;
733
+ login: string;
734
+ };
735
+ base: {
736
+ ref: string;
737
+ sha: string;
738
+ };
739
+ head: {
740
+ repositoryId: number | null;
741
+ ref: string;
742
+ sha: string;
743
+ };
744
+ maintainerCanModify: boolean;
745
+ htmlUrl: string;
746
+ createdAt: number;
747
+ updatedAt: number;
748
+ closedAt: number | null;
749
+ mergedAt: number | null;
750
+ };
751
+ affectedProjectIds: Array<string>;
752
+ };
753
+ };
754
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberResponse = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberResponses[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberResponses];
755
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileData = {
756
+ body?: never;
757
+ path: {
758
+ architectureId: string;
759
+ number: number;
760
+ };
761
+ query: {
762
+ workspace: string;
763
+ path: string;
764
+ };
765
+ url: '/api/architectures/{architectureId}/github/pull-requests/{number}/review-file';
766
+ };
767
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileErrors = {
768
+ /**
769
+ * Error
770
+ */
771
+ 400: {
772
+ error: string;
773
+ };
774
+ /**
775
+ * Error
776
+ */
777
+ 403: {
778
+ error: string;
779
+ };
780
+ /**
781
+ * Error
782
+ */
783
+ 404: {
784
+ error: string;
785
+ };
786
+ /**
787
+ * Error
788
+ */
789
+ 413: {
790
+ error: string;
791
+ };
792
+ /**
793
+ * Error
794
+ */
795
+ 503: {
796
+ error: string;
797
+ };
798
+ };
799
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileError = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileErrors[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileErrors];
800
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileResponses = {
801
+ /**
802
+ * Success
803
+ */
804
+ 200: {
805
+ path: string;
806
+ previousPath: string | null;
807
+ status: string;
808
+ base: {
809
+ sha: string;
810
+ content: string;
811
+ bytes: number;
812
+ } | null;
813
+ head: {
814
+ sha: string;
815
+ content: string;
816
+ bytes: number;
817
+ } | null;
818
+ headSha: string;
819
+ changedLines: {
820
+ LEFT: Array<number>;
821
+ RIGHT: Array<number>;
822
+ };
823
+ };
824
+ };
825
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileResponse = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileResponses[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewFileResponses];
826
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffData = {
827
+ body?: never;
828
+ path: {
829
+ architectureId: string;
830
+ number: number;
831
+ };
832
+ query: {
833
+ workspace: string;
834
+ projectId: string;
835
+ };
836
+ url: '/api/architectures/{architectureId}/github/pull-requests/{number}/workflow-diff';
837
+ };
838
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffErrors = {
839
+ /**
840
+ * Error
841
+ */
842
+ 400: {
843
+ error: string;
844
+ };
845
+ /**
846
+ * Error
847
+ */
848
+ 403: {
849
+ error: string;
850
+ };
851
+ /**
852
+ * Error
853
+ */
854
+ 404: {
855
+ error: string;
856
+ };
857
+ /**
858
+ * Error
859
+ */
860
+ 413: {
861
+ error: string;
862
+ };
863
+ /**
864
+ * Error
865
+ */
866
+ 503: {
867
+ error: string;
868
+ };
869
+ };
870
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffError = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffErrors[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffErrors];
871
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffResponses = {
872
+ /**
873
+ * Success
874
+ */
875
+ 200: {
876
+ repository: {
877
+ repositoryId: number;
878
+ installationId: number;
879
+ fullName: string;
880
+ defaultBranch: string;
881
+ };
882
+ pullRequest: {
883
+ repositoryId: number;
884
+ number: number;
885
+ title: string;
886
+ body: string | null;
887
+ state: 'open' | 'closed' | 'merged';
888
+ draft: boolean;
889
+ author: {
890
+ id: number | null;
891
+ login: string;
892
+ };
893
+ base: {
894
+ ref: string;
895
+ sha: string;
896
+ };
897
+ head: {
898
+ repositoryId: number | null;
899
+ ref: string;
900
+ sha: string;
901
+ };
902
+ maintainerCanModify: boolean;
903
+ htmlUrl: string;
904
+ createdAt: number;
905
+ updatedAt: number;
906
+ closedAt: number | null;
907
+ mergedAt: number | null;
908
+ };
909
+ affectedProjectIds: Array<string>;
910
+ truncated: boolean;
911
+ workflows: Array<{
912
+ id: string;
913
+ change: 'added' | 'removed' | 'changed';
914
+ baseRevision: string | null;
915
+ headRevision: string | null;
916
+ baseGraph: {
917
+ entry: string | null;
918
+ nodes: Array<{
919
+ id: string;
920
+ type: string | null;
921
+ language: string | null;
922
+ }>;
923
+ edges: Array<{
924
+ from: {
925
+ node: string;
926
+ output?: string;
927
+ };
928
+ to: {
929
+ node: string;
930
+ input?: string;
931
+ };
932
+ kind?: 'data' | 'dependency' | 'control';
933
+ }>;
934
+ } | null;
935
+ headGraph: {
936
+ entry: string | null;
937
+ nodes: Array<{
938
+ id: string;
939
+ type: string | null;
940
+ language: string | null;
941
+ }>;
942
+ edges: Array<{
943
+ from: {
944
+ node: string;
945
+ output?: string;
946
+ };
947
+ to: {
948
+ node: string;
949
+ input?: string;
950
+ };
951
+ kind?: 'data' | 'dependency' | 'control';
952
+ }>;
953
+ } | null;
954
+ anchor: {
955
+ publication: 'inline' | 'fragments' | 'file' | 'summary' | 'unavailable';
956
+ state: 'current' | 'outdated' | 'unmapped';
957
+ filePath: string | null;
958
+ commitSha: string;
959
+ blobSha: string | null;
960
+ startLine: number | null;
961
+ startSide: 'LEFT' | 'RIGHT' | null;
962
+ endLine: number | null;
963
+ endSide: 'LEFT' | 'RIGHT' | null;
964
+ fragments?: Array<{
965
+ filePath: string;
966
+ startLine: number | null;
967
+ startSide: 'LEFT' | 'RIGHT' | null;
968
+ endLine: number;
969
+ endSide: 'LEFT' | 'RIGHT';
970
+ }>;
971
+ };
972
+ nodes: Array<{
973
+ id: string;
974
+ change: 'added' | 'removed' | 'changed' | 'unchanged';
975
+ anchor: {
976
+ publication: 'inline' | 'fragments' | 'file' | 'summary' | 'unavailable';
977
+ state: 'current' | 'outdated' | 'unmapped';
978
+ filePath: string | null;
979
+ commitSha: string;
980
+ blobSha: string | null;
981
+ startLine: number | null;
982
+ startSide: 'LEFT' | 'RIGHT' | null;
983
+ endLine: number | null;
984
+ endSide: 'LEFT' | 'RIGHT' | null;
985
+ fragments?: Array<{
986
+ filePath: string;
987
+ startLine: number | null;
988
+ startSide: 'LEFT' | 'RIGHT' | null;
989
+ endLine: number;
990
+ endSide: 'LEFT' | 'RIGHT';
991
+ }>;
992
+ };
993
+ }>;
994
+ edges: Array<{
995
+ key: string;
996
+ change: 'added' | 'removed' | 'changed';
997
+ from: {
998
+ node: string;
999
+ output?: string;
1000
+ };
1001
+ to: {
1002
+ node: string;
1003
+ input?: string;
1004
+ };
1005
+ kind?: 'data' | 'dependency' | 'control';
1006
+ }>;
1007
+ }>;
1008
+ files: Array<{
1009
+ path: string;
1010
+ status: string;
1011
+ patchAvailable: boolean;
1012
+ }>;
1013
+ };
1014
+ };
1015
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffResponse = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffResponses[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberWorkflowDiffResponses];
1016
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsData = {
1017
+ body?: never;
1018
+ path: {
1019
+ architectureId: string;
1020
+ number: number;
1021
+ };
1022
+ query: {
1023
+ workspace: string;
1024
+ projectId: string;
1025
+ workflowId?: string;
1026
+ cursor?: string;
1027
+ limit?: number;
1028
+ };
1029
+ url: '/api/architectures/{architectureId}/github/pull-requests/{number}/review-threads';
1030
+ };
1031
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsErrors = {
1032
+ /**
1033
+ * Error
1034
+ */
1035
+ 400: {
1036
+ error: string;
1037
+ };
1038
+ /**
1039
+ * Error
1040
+ */
1041
+ 403: {
1042
+ error: string;
1043
+ };
1044
+ /**
1045
+ * Error
1046
+ */
1047
+ 404: {
1048
+ error: string;
1049
+ };
1050
+ };
1051
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsError = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsErrors[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsErrors];
1052
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsResponses = {
1053
+ /**
1054
+ * Success
1055
+ */
1056
+ 200: {
1057
+ items: Array<{
1058
+ id: string;
1059
+ contextId: string;
1060
+ projectId: string;
1061
+ repositoryId: number;
1062
+ pullNumber: number;
1063
+ baseSha: string;
1064
+ headSha: string;
1065
+ workflowId: string | null;
1066
+ scope: 'pull_request' | 'workflow' | 'nodes' | 'code';
1067
+ nodeIds: Array<string>;
1068
+ anchor: {
1069
+ publication: 'inline' | 'fragments' | 'file' | 'summary' | 'unavailable';
1070
+ state: 'current' | 'outdated' | 'unmapped';
1071
+ filePath: string | null;
1072
+ commitSha: string;
1073
+ blobSha: string | null;
1074
+ startLine: number | null;
1075
+ startSide: 'LEFT' | 'RIGHT' | null;
1076
+ endLine: number | null;
1077
+ endSide: 'LEFT' | 'RIGHT' | null;
1078
+ fragments?: Array<{
1079
+ filePath: string;
1080
+ startLine: number | null;
1081
+ startSide: 'LEFT' | 'RIGHT' | null;
1082
+ endLine: number;
1083
+ endSide: 'LEFT' | 'RIGHT';
1084
+ }>;
1085
+ };
1086
+ status: 'open' | 'resolved';
1087
+ version: number;
1088
+ createdAt: number;
1089
+ updatedAt: number;
1090
+ comments: Array<{
1091
+ seq: number;
1092
+ id: string;
1093
+ threadId: string;
1094
+ authorKind: 'user' | 'agent' | 'github';
1095
+ authorId: string;
1096
+ authorLabel: string | null;
1097
+ authorAvatarUrl: string | null;
1098
+ origin: 'octonode' | 'github';
1099
+ body: string;
1100
+ version: number;
1101
+ createdAt: number;
1102
+ editedAt: number | null;
1103
+ deletedAt: number | null;
1104
+ githubState: 'unpublished' | 'queued' | 'published' | 'failed' | 'deleted';
1105
+ suggestion: {
1106
+ id: string;
1107
+ commentId: string;
1108
+ kind: 'workflow_draft' | 'source_patch';
1109
+ baseHeadSha: string;
1110
+ baseRevision: string;
1111
+ payload: {
1112
+ [key: string]: unknown;
1113
+ };
1114
+ prepared: {
1115
+ [key: string]: unknown;
1116
+ } | null;
1117
+ validation: {
1118
+ [key: string]: unknown;
1119
+ } | null;
1120
+ status: 'open' | 'applying' | 'applied' | 'rejected' | 'outdated' | 'failed';
1121
+ version: number;
1122
+ createdAt: number;
1123
+ appliedCommitSha: string | null;
1124
+ } | null;
1125
+ }>;
1126
+ }>;
1127
+ nextCursor: string | null;
1128
+ };
1129
+ };
1130
+ export type GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsResponse = GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsResponses[keyof GetApiArchitecturesByArchitectureIdGithubPullRequestsByNumberReviewThreadsResponses];
1131
+ export type GetApiGithubJobsByIdData = {
1132
+ body?: never;
1133
+ path: {
1134
+ id: string;
1135
+ };
1136
+ query: {
1137
+ workspace: string;
1138
+ };
1139
+ url: '/api/github/jobs/{id}';
1140
+ };
1141
+ export type GetApiGithubJobsByIdErrors = {
1142
+ /**
1143
+ * Error
1144
+ */
1145
+ 403: {
1146
+ error: string;
1147
+ };
1148
+ /**
1149
+ * Error
1150
+ */
1151
+ 404: {
1152
+ error: string;
1153
+ };
1154
+ };
1155
+ export type GetApiGithubJobsByIdError = GetApiGithubJobsByIdErrors[keyof GetApiGithubJobsByIdErrors];
1156
+ export type GetApiGithubJobsByIdResponses = {
1157
+ /**
1158
+ * Success
1159
+ */
1160
+ 200: {
1161
+ id: string;
1162
+ kind: 'github_publish' | 'github_update' | 'github_delete' | 'github_resolve' | 'github_unresolve' | 'github_submit_review' | 'github_apply_suggestion';
1163
+ status: 'queued' | 'processing' | 'done' | 'failed';
1164
+ attempts: number;
1165
+ availableAt: number;
1166
+ lastError: string | null;
1167
+ result: {
1168
+ [key: string]: unknown;
1169
+ } | null;
1170
+ };
1171
+ };
1172
+ export type GetApiGithubJobsByIdResponse = GetApiGithubJobsByIdResponses[keyof GetApiGithubJobsByIdResponses];
1173
+ export type GetApiProjectsTrashData = {
1174
+ body?: never;
1175
+ path?: never;
1176
+ query?: never;
1177
+ url: '/api/projects/trash';
1178
+ };
1179
+ export type GetApiProjectsTrashErrors = {
1180
+ /**
1181
+ * Error
1182
+ */
1183
+ 403: {
1184
+ error: string;
1185
+ };
1186
+ };
1187
+ export type GetApiProjectsTrashError = GetApiProjectsTrashErrors[keyof GetApiProjectsTrashErrors];
1188
+ export type GetApiProjectsTrashResponses = {
1189
+ /**
1190
+ * Success
1191
+ */
1192
+ 200: Array<{
1193
+ id: string;
1194
+ name: string;
1195
+ state: 'archived' | 'deleted';
1196
+ changedAt: number;
1197
+ expiresAt?: number;
1198
+ purgedAt?: number;
1199
+ }>;
1200
+ };
1201
+ export type GetApiProjectsTrashResponse = GetApiProjectsTrashResponses[keyof GetApiProjectsTrashResponses];
1202
+ export type GetApiProjectsSearchData = {
1203
+ body?: never;
1204
+ path?: never;
1205
+ query?: {
1206
+ q?: string;
1207
+ offset?: number;
1208
+ limit?: number;
1209
+ cloud?: 'true';
1210
+ };
1211
+ url: '/api/projects/search';
1212
+ };
1213
+ export type GetApiProjectsSearchErrors = {
1214
+ /**
1215
+ * Error
1216
+ */
1217
+ 400: {
1218
+ error: string;
1219
+ };
1220
+ /**
1221
+ * Error
1222
+ */
1223
+ 403: {
1224
+ error: string;
1225
+ };
1226
+ };
1227
+ export type GetApiProjectsSearchError = GetApiProjectsSearchErrors[keyof GetApiProjectsSearchErrors];
1228
+ export type GetApiProjectsSearchResponses = {
1229
+ /**
1230
+ * Success
1231
+ */
1232
+ 200: {
1233
+ items: Array<{
1234
+ id: string;
1235
+ name: string;
1236
+ path?: string;
1237
+ workflowCount: number;
1238
+ environments?: Array<string>;
1239
+ readOnly?: true;
1240
+ legacyLanguage?: string;
1241
+ local?: false;
1242
+ cloudAction?: 'install' | 'sync';
1243
+ hosted?: true;
1244
+ unavailable?: true;
1245
+ sourceKind?: 'repository' | 'managed' | 'standalone';
1246
+ sourceRepositoryId?: string | null;
1247
+ configLocator?: string;
1248
+ }>;
1249
+ total: number;
1250
+ offset: number;
1251
+ limit: number;
1252
+ };
1253
+ };
1254
+ export type GetApiProjectsSearchResponse = GetApiProjectsSearchResponses[keyof GetApiProjectsSearchResponses];
1255
+ export type GetApiProjectsCloudData = {
1256
+ body?: never;
1257
+ path?: never;
1258
+ query?: never;
1259
+ url: '/api/projects/cloud';
1260
+ };
1261
+ export type GetApiProjectsCloudErrors = {
1262
+ /**
1263
+ * Error
1264
+ */
1265
+ 400: {
1266
+ error: string;
1267
+ };
1268
+ /**
1269
+ * Error
1270
+ */
1271
+ 403: {
1272
+ error: string;
1273
+ };
1274
+ };
1275
+ export type GetApiProjectsCloudError = GetApiProjectsCloudErrors[keyof GetApiProjectsCloudErrors];
1276
+ export type GetApiProjectsCloudResponses = {
1277
+ /**
1278
+ * Success
1279
+ */
1280
+ 200: Array<{
1281
+ id: string;
1282
+ name: string;
1283
+ path?: string;
1284
+ workflowCount: number;
1285
+ environments?: Array<string>;
1286
+ readOnly?: true;
1287
+ legacyLanguage?: string;
1288
+ local?: false;
1289
+ cloudAction?: 'install' | 'sync';
1290
+ hosted?: true;
1291
+ unavailable?: true;
1292
+ sourceKind?: 'repository' | 'managed' | 'standalone';
1293
+ sourceRepositoryId?: string | null;
1294
+ configLocator?: string;
1295
+ }>;
1296
+ };
1297
+ export type GetApiProjectsCloudResponse = GetApiProjectsCloudResponses[keyof GetApiProjectsCloudResponses];
1298
+ export type GetApiProjectsByProjectIdFilesData = {
1299
+ body?: never;
1300
+ path: {
1301
+ projectId: string;
1302
+ };
1303
+ query?: never;
1304
+ url: '/api/projects/{projectId}/files';
1305
+ };
1306
+ export type GetApiProjectsByProjectIdFilesErrors = {
1307
+ /**
1308
+ * Error
1309
+ */
1310
+ 400: {
1311
+ error: string;
1312
+ };
1313
+ };
1314
+ export type GetApiProjectsByProjectIdFilesError = GetApiProjectsByProjectIdFilesErrors[keyof GetApiProjectsByProjectIdFilesErrors];
1315
+ export type GetApiProjectsByProjectIdFilesResponses = {
1316
+ /**
1317
+ * Success
1318
+ */
1319
+ 200: Array<{
1320
+ path: string;
1321
+ size: number;
1322
+ mtime: number;
1323
+ }>;
1324
+ };
1325
+ export type GetApiProjectsByProjectIdFilesResponse = GetApiProjectsByProjectIdFilesResponses[keyof GetApiProjectsByProjectIdFilesResponses];
1326
+ export type GetApiProjectsByProjectIdFilesContentData = {
1327
+ body?: never;
1328
+ path: {
1329
+ projectId: string;
1330
+ };
1331
+ query: {
1332
+ path: string;
1333
+ };
1334
+ url: '/api/projects/{projectId}/files/content';
1335
+ };
1336
+ export type GetApiProjectsByProjectIdFilesContentErrors = {
1337
+ /**
1338
+ * Error
1339
+ */
1340
+ 400: {
1341
+ error: string;
1342
+ };
1343
+ /**
1344
+ * Error
1345
+ */
1346
+ 403: {
1347
+ error: string;
1348
+ };
1349
+ /**
1350
+ * Error
1351
+ */
1352
+ 404: {
1353
+ error: string;
1354
+ };
1355
+ };
1356
+ export type GetApiProjectsByProjectIdFilesContentError = GetApiProjectsByProjectIdFilesContentErrors[keyof GetApiProjectsByProjectIdFilesContentErrors];
1357
+ export type GetApiProjectsByProjectIdFilesContentResponses = {
1358
+ /**
1359
+ * Success
1360
+ */
1361
+ 200: {
1362
+ path: string;
1363
+ content: string;
1364
+ mtime: number;
1365
+ revision: string;
1366
+ conflict?: boolean;
1367
+ };
1368
+ };
1369
+ export type GetApiProjectsByProjectIdFilesContentResponse = GetApiProjectsByProjectIdFilesContentResponses[keyof GetApiProjectsByProjectIdFilesContentResponses];
1370
+ export type PostApiProjectsByProjectIdFilesContentData = {
1371
+ body: {
1372
+ path: string;
1373
+ content: string;
1374
+ };
1375
+ path: {
1376
+ projectId: string;
1377
+ };
1378
+ query?: never;
1379
+ url: '/api/projects/{projectId}/files/content';
1380
+ };
1381
+ export type PostApiProjectsByProjectIdFilesContentErrors = {
1382
+ /**
1383
+ * Error
1384
+ */
1385
+ 400: {
1386
+ error: string;
1387
+ };
1388
+ /**
1389
+ * Error
1390
+ */
1391
+ 403: {
1392
+ error: string;
1393
+ };
1394
+ /**
1395
+ * Error
1396
+ */
1397
+ 409: {
1398
+ error: string;
1399
+ };
1400
+ };
1401
+ export type PostApiProjectsByProjectIdFilesContentError = PostApiProjectsByProjectIdFilesContentErrors[keyof PostApiProjectsByProjectIdFilesContentErrors];
1402
+ export type PostApiProjectsByProjectIdFilesContentResponses = {
1403
+ /**
1404
+ * Success
1405
+ */
1406
+ 201: {
1407
+ path: string;
1408
+ content: string;
1409
+ mtime: number;
1410
+ revision: string;
1411
+ conflict?: boolean;
1412
+ };
1413
+ };
1414
+ export type PostApiProjectsByProjectIdFilesContentResponse = PostApiProjectsByProjectIdFilesContentResponses[keyof PostApiProjectsByProjectIdFilesContentResponses];
1415
+ export type PutApiProjectsByProjectIdFilesContentData = {
1416
+ body: {
1417
+ path: string;
1418
+ content: string;
1419
+ baseRevision: string;
1420
+ };
1421
+ path: {
1422
+ projectId: string;
1423
+ };
1424
+ query?: never;
1425
+ url: '/api/projects/{projectId}/files/content';
1426
+ };
1427
+ export type PutApiProjectsByProjectIdFilesContentErrors = {
1428
+ /**
1429
+ * Error
1430
+ */
1431
+ 400: {
1432
+ error: string;
1433
+ };
1434
+ /**
1435
+ * Error
1436
+ */
1437
+ 403: {
1438
+ error: string;
1439
+ };
1440
+ /**
1441
+ * Error
1442
+ */
1443
+ 409: {
1444
+ error: string;
1445
+ };
1446
+ };
1447
+ export type PutApiProjectsByProjectIdFilesContentError = PutApiProjectsByProjectIdFilesContentErrors[keyof PutApiProjectsByProjectIdFilesContentErrors];
1448
+ export type PutApiProjectsByProjectIdFilesContentResponses = {
1449
+ /**
1450
+ * Success
1451
+ */
1452
+ 200: {
1453
+ path: string;
1454
+ content: string;
1455
+ mtime: number;
1456
+ revision: string;
1457
+ conflict?: boolean;
1458
+ };
1459
+ };
1460
+ export type PutApiProjectsByProjectIdFilesContentResponse = PutApiProjectsByProjectIdFilesContentResponses[keyof PutApiProjectsByProjectIdFilesContentResponses];
1461
+ export type PostApiProjectsByProjectIdCompileData = {
1462
+ body?: never;
1463
+ path: {
1464
+ projectId: string;
1465
+ };
1466
+ query?: never;
1467
+ url: '/api/projects/{projectId}/compile';
1468
+ };
1469
+ export type PostApiProjectsByProjectIdCompileErrors = {
1470
+ /**
1471
+ * Error
1472
+ */
1473
+ 400: {
1474
+ error: string;
1475
+ };
1476
+ };
1477
+ export type PostApiProjectsByProjectIdCompileError = PostApiProjectsByProjectIdCompileErrors[keyof PostApiProjectsByProjectIdCompileErrors];
1478
+ export type PostApiProjectsByProjectIdCompileResponses = {
1479
+ /**
1480
+ * Success
1481
+ */
1482
+ 200: {
1483
+ success: boolean;
1484
+ diagnostics: Array<{
1485
+ severity: 'error' | 'warning';
1486
+ code: string;
1487
+ message: string;
1488
+ path?: string;
1489
+ }>;
1490
+ synced: {
1491
+ added: Array<string>;
1492
+ updated: Array<string>;
1493
+ unchanged: Array<string>;
1494
+ orphaned: Array<string>;
1495
+ };
1496
+ };
1497
+ };
1498
+ export type PostApiProjectsByProjectIdCompileResponse = PostApiProjectsByProjectIdCompileResponses[keyof PostApiProjectsByProjectIdCompileResponses];
1499
+ export type GetApiProjectsByProjectIdPackageExportsData = {
1500
+ body?: never;
1501
+ path: {
1502
+ projectId: string;
1503
+ };
1504
+ query?: {
1505
+ module?: string;
1506
+ };
1507
+ url: '/api/projects/{projectId}/package-exports';
1508
+ };
1509
+ export type GetApiProjectsByProjectIdPackageExportsErrors = {
1510
+ /**
1511
+ * Error
1512
+ */
1513
+ 400: {
1514
+ error: string;
1515
+ };
1516
+ };
1517
+ export type GetApiProjectsByProjectIdPackageExportsError = GetApiProjectsByProjectIdPackageExportsErrors[keyof GetApiProjectsByProjectIdPackageExportsErrors];
1518
+ export type GetApiProjectsByProjectIdPackageExportsResponses = {
1519
+ /**
1520
+ * Success
1521
+ */
1522
+ 200: {
1523
+ packages: Array<string>;
1524
+ exports: Array<{
1525
+ name: string;
1526
+ kind: 'function' | 'constant' | 'type' | 'class' | 'value';
1527
+ typeOnly: boolean;
1528
+ declaration: string;
1529
+ }>;
1530
+ };
1531
+ };
1532
+ export type GetApiProjectsByProjectIdPackageExportsResponse = GetApiProjectsByProjectIdPackageExportsResponses[keyof GetApiProjectsByProjectIdPackageExportsResponses];
1533
+ export type GetApiProjectsByProjectIdSourceIndexData = {
1534
+ body?: never;
1535
+ path: {
1536
+ projectId: string;
1537
+ };
1538
+ query?: never;
1539
+ url: '/api/projects/{projectId}/source-index';
1540
+ };
1541
+ export type GetApiProjectsByProjectIdSourceIndexErrors = {
1542
+ /**
1543
+ * Error
1544
+ */
1545
+ 400: {
1546
+ error: string;
1547
+ };
1548
+ };
1549
+ export type GetApiProjectsByProjectIdSourceIndexError = GetApiProjectsByProjectIdSourceIndexErrors[keyof GetApiProjectsByProjectIdSourceIndexErrors];
1550
+ export type GetApiProjectsByProjectIdSourceIndexResponses = {
1551
+ /**
1552
+ * Success
1553
+ */
1554
+ 200: {
1555
+ revision: string;
1556
+ files: Array<{
1557
+ path: string;
1558
+ language: 'typescript' | 'javascript';
1559
+ bundleId: string;
1560
+ runtime?: 'frontend';
1561
+ entryWorkflowId?: string;
1562
+ imports?: Array<{
1563
+ source: string;
1564
+ module: string;
1565
+ typeOnly: boolean;
1566
+ default?: string;
1567
+ namespace?: string;
1568
+ named: Array<{
1569
+ name: string;
1570
+ alias?: string;
1571
+ typeOnly: boolean;
1572
+ }>;
1573
+ }>;
1574
+ symbols: Array<{
1575
+ id: string;
1576
+ name: string;
1577
+ kind: 'function' | 'workflow' | 'module-workflow' | 'type-alias' | 'interface' | 'enum' | 'constant' | 'variable' | 'class' | 'service';
1578
+ exported: boolean;
1579
+ location: {
1580
+ path: string;
1581
+ start: number;
1582
+ end: number;
1583
+ line: number;
1584
+ column: number;
1585
+ };
1586
+ declaration?: string;
1587
+ owner?: string;
1588
+ signature?: {
1589
+ params?: Array<{
1590
+ name: string;
1591
+ type?: string;
1592
+ optional?: boolean;
1593
+ rest?: boolean;
1594
+ visibility?: 'public' | 'protected' | 'private' | '#private';
1595
+ readonly?: boolean;
1596
+ decorators?: Array<{
1597
+ name: string;
1598
+ text: string;
1599
+ arguments: Array<string>;
1600
+ }>;
1601
+ initializer?: string;
1602
+ }>;
1603
+ returns?: string;
1604
+ typeText?: string;
1605
+ decorators?: Array<{
1606
+ name: string;
1607
+ text: string;
1608
+ arguments: Array<string>;
1609
+ }>;
1610
+ typeParameters?: Array<string>;
1611
+ extends?: string;
1612
+ implements?: Array<string>;
1613
+ abstract?: boolean;
1614
+ instances?: Array<string>;
1615
+ members?: Array<{
1616
+ name: string;
1617
+ kind: 'constructor' | 'method' | 'property' | 'getter' | 'setter' | 'accessor' | 'index-signature' | 'static-block';
1618
+ type?: string;
1619
+ returns?: string;
1620
+ parameters?: Array<{
1621
+ name: string;
1622
+ type?: string;
1623
+ optional?: boolean;
1624
+ rest?: boolean;
1625
+ visibility?: 'public' | 'protected' | 'private' | '#private';
1626
+ readonly?: boolean;
1627
+ decorators?: Array<{
1628
+ name: string;
1629
+ text: string;
1630
+ arguments: Array<string>;
1631
+ }>;
1632
+ initializer?: string;
1633
+ }>;
1634
+ typeParameters?: Array<string>;
1635
+ visibility?: 'public' | 'protected' | 'private' | '#private';
1636
+ static?: boolean;
1637
+ readonly?: boolean;
1638
+ declare?: boolean;
1639
+ definite?: boolean;
1640
+ abstract?: boolean;
1641
+ optional?: boolean;
1642
+ override?: boolean;
1643
+ async?: boolean;
1644
+ generator?: boolean;
1645
+ decorators?: Array<{
1646
+ name: string;
1647
+ text: string;
1648
+ arguments: Array<string>;
1649
+ }>;
1650
+ initializer?: string;
1651
+ workflowId?: string;
1652
+ }>;
1653
+ };
1654
+ constant?: {
1655
+ serializable: boolean;
1656
+ value?: unknown;
1657
+ declarationKind?: 'const';
1658
+ expression?: string;
1659
+ };
1660
+ variable?: {
1661
+ declarationKind: 'let' | 'var';
1662
+ initializer?: string;
1663
+ };
1664
+ service?: {
1665
+ classSymbol?: string;
1666
+ methods: Array<string>;
1667
+ lifecycle: 'invocation' | 'workflow-run' | 'worker';
1668
+ };
1669
+ controlFlow?: Array<{
1670
+ id: string;
1671
+ kind: 'if' | 'switch' | 'for' | 'while' | 'do-while' | 'for-in' | 'for-of' | 'break' | 'continue' | 'label' | 'try' | 'catch' | 'finally';
1672
+ path: Array<number>;
1673
+ parentId?: string;
1674
+ location: {
1675
+ path: string;
1676
+ start: number;
1677
+ end: number;
1678
+ line: number;
1679
+ column: number;
1680
+ };
1681
+ source: string;
1682
+ }>;
1683
+ }>;
1684
+ exports?: Array<{
1685
+ name: string;
1686
+ local?: string;
1687
+ module?: string;
1688
+ typeOnly: boolean;
1689
+ }>;
1690
+ diagnostics: Array<{
1691
+ severity: 'error' | 'warning';
1692
+ code: string;
1693
+ message: string;
1694
+ location?: {
1695
+ path: string;
1696
+ start: number;
1697
+ end: number;
1698
+ line: number;
1699
+ column: number;
1700
+ };
1701
+ }>;
1702
+ }>;
1703
+ references: Array<{
1704
+ from: string;
1705
+ to: string;
1706
+ kind: 'call' | 'type' | 'value' | 'construct' | 'method';
1707
+ location: {
1708
+ path: string;
1709
+ start: number;
1710
+ end: number;
1711
+ line: number;
1712
+ column: number;
1713
+ };
1714
+ }>;
1715
+ };
1716
+ };
1717
+ export type GetApiProjectsByProjectIdSourceIndexResponse = GetApiProjectsByProjectIdSourceIndexResponses[keyof GetApiProjectsByProjectIdSourceIndexResponses];
1718
+ export type GetApiProjectsByProjectIdSourceSupportData = {
1719
+ body?: never;
1720
+ path: {
1721
+ projectId: string;
1722
+ };
1723
+ query?: never;
1724
+ url: '/api/projects/{projectId}/source-support';
1725
+ };
1726
+ export type GetApiProjectsByProjectIdSourceSupportErrors = {
1727
+ /**
1728
+ * Error
1729
+ */
1730
+ 400: {
1731
+ error: string;
1732
+ };
1733
+ };
1734
+ export type GetApiProjectsByProjectIdSourceSupportError = GetApiProjectsByProjectIdSourceSupportErrors[keyof GetApiProjectsByProjectIdSourceSupportErrors];
1735
+ export type GetApiProjectsByProjectIdSourceSupportResponses = {
1736
+ /**
1737
+ * Success
1738
+ */
1739
+ 200: {
1740
+ revision: string;
1741
+ items: Array<{
1742
+ id: string;
1743
+ name: string;
1744
+ path: string;
1745
+ kind: 'type-alias' | 'interface' | 'enum' | 'constant';
1746
+ scope?: 'workflow' | 'file' | 'project';
1747
+ owner?: string;
1748
+ exported?: boolean;
1749
+ declaration?: string;
1750
+ value?: unknown;
1751
+ schema?: {
1752
+ [key: string]: unknown;
1753
+ };
1754
+ }>;
1755
+ };
1756
+ };
1757
+ export type GetApiProjectsByProjectIdSourceSupportResponse = GetApiProjectsByProjectIdSourceSupportResponses[keyof GetApiProjectsByProjectIdSourceSupportResponses];
1758
+ export type GetApiStoreProjectsData = {
1759
+ body?: never;
1760
+ path?: never;
1761
+ query?: never;
1762
+ url: '/api/store/projects';
1763
+ };
1764
+ export type GetApiStoreProjectsErrors = {
1765
+ /**
1766
+ * Error
1767
+ */
1768
+ 400: {
1769
+ error: string;
1770
+ };
1771
+ /**
1772
+ * Error
1773
+ */
1774
+ 403: {
1775
+ error: string;
1776
+ };
1777
+ /**
1778
+ * Error
1779
+ */
1780
+ 404: {
1781
+ error: string;
1782
+ };
1783
+ };
1784
+ export type GetApiStoreProjectsError = GetApiStoreProjectsErrors[keyof GetApiStoreProjectsErrors];
1785
+ export type GetApiStoreProjectsResponses = {
1786
+ /**
1787
+ * Success
1788
+ */
1789
+ 200: Array<{
1790
+ id: string;
1791
+ orgId: string;
1792
+ ownerUserId: string;
1793
+ name: string;
1794
+ slug: string;
1795
+ description?: string;
1796
+ visibility: {
1797
+ scope: 'user' | 'group' | 'org' | 'public';
1798
+ owner: string;
1799
+ editors?: Array<string>;
1800
+ groupId?: string;
1801
+ orgId?: string;
1802
+ };
1803
+ repo?: {
1804
+ provider?: 'github' | 'gitlab' | 'bitbucket' | 'other';
1805
+ url: string;
1806
+ owner?: string;
1807
+ name?: string;
1808
+ defaultBranch?: string;
1809
+ };
1810
+ cloudflare?: {
1811
+ workerName?: string;
1812
+ dataDoName: string;
1813
+ };
1814
+ createdAt: number;
1815
+ updatedAt: number;
1816
+ }>;
1817
+ };
1818
+ export type GetApiStoreProjectsResponse = GetApiStoreProjectsResponses[keyof GetApiStoreProjectsResponses];
1819
+ export type GetApiProjectsByProjectIdData = {
1820
+ body?: never;
1821
+ path: {
1822
+ projectId: string;
1823
+ };
1824
+ query?: never;
1825
+ url: '/api/projects/{projectId}';
1826
+ };
1827
+ export type GetApiProjectsByProjectIdErrors = {
1828
+ /**
1829
+ * Error
1830
+ */
1831
+ 403: {
1832
+ error: string;
1833
+ };
1834
+ /**
1835
+ * Error
1836
+ */
1837
+ 404: {
1838
+ error: string;
1839
+ };
1840
+ };
1841
+ export type GetApiProjectsByProjectIdError = GetApiProjectsByProjectIdErrors[keyof GetApiProjectsByProjectIdErrors];
1842
+ export type GetApiProjectsByProjectIdResponses = {
1843
+ /**
1844
+ * Success
1845
+ */
1846
+ 200: {
1847
+ id: string;
1848
+ orgId: string;
1849
+ ownerUserId: string;
1850
+ name: string;
1851
+ slug: string;
1852
+ description?: string;
1853
+ visibility: {
1854
+ scope: 'user' | 'group' | 'org' | 'public';
1855
+ owner: string;
1856
+ editors?: Array<string>;
1857
+ groupId?: string;
1858
+ orgId?: string;
1859
+ };
1860
+ repo?: {
1861
+ provider?: 'github' | 'gitlab' | 'bitbucket' | 'other';
1862
+ url: string;
1863
+ owner?: string;
1864
+ name?: string;
1865
+ defaultBranch?: string;
1866
+ };
1867
+ cloudflare?: {
1868
+ workerName?: string;
1869
+ dataDoName: string;
1870
+ };
1871
+ createdAt: number;
1872
+ updatedAt: number;
1873
+ };
1874
+ };
1875
+ export type GetApiProjectsByProjectIdResponse = GetApiProjectsByProjectIdResponses[keyof GetApiProjectsByProjectIdResponses];
1876
+ export type GetApiProjectsByProjectIdDataTableSchemaData = {
1877
+ body?: never;
1878
+ path: {
1879
+ projectId: string;
1880
+ };
1881
+ query?: {
1882
+ workspace?: string;
1883
+ };
1884
+ url: '/api/projects/{projectId}/data-table-schema';
1885
+ };
1886
+ export type GetApiProjectsByProjectIdDataTableSchemaErrors = {
1887
+ /**
1888
+ * Error
1889
+ */
1890
+ 400: {
1891
+ error: string;
1892
+ };
1893
+ /**
1894
+ * Error
1895
+ */
1896
+ 403: {
1897
+ error: string;
1898
+ };
1899
+ /**
1900
+ * Error
1901
+ */
1902
+ 404: {
1903
+ error: string;
1904
+ };
1905
+ };
1906
+ export type GetApiProjectsByProjectIdDataTableSchemaError = GetApiProjectsByProjectIdDataTableSchemaErrors[keyof GetApiProjectsByProjectIdDataTableSchemaErrors];
1907
+ export type GetApiProjectsByProjectIdDataTableSchemaResponses = {
1908
+ /**
1909
+ * Success
1910
+ */
1911
+ 200: {
1912
+ available: boolean;
1913
+ canManage: boolean;
1914
+ tables: Array<{
1915
+ id: string;
1916
+ projectId: string;
1917
+ name: string;
1918
+ slug: string;
1919
+ description?: string;
1920
+ storageMode: 'sqlite' | 'kv_blob';
1921
+ columns: Array<{
1922
+ id: string;
1923
+ key: string;
1924
+ name: string;
1925
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
1926
+ required: boolean;
1927
+ defaultValue?: unknown;
1928
+ position: number;
1929
+ }>;
1930
+ rowCount: number;
1931
+ schemaVersion: number;
1932
+ createdAt: number;
1933
+ updatedAt: number;
1934
+ }>;
1935
+ relationships: Array<{
1936
+ sourceTableId: string;
1937
+ sourceColumn: string;
1938
+ targetTableId: string;
1939
+ onDelete?: 'restrict' | 'set_null';
1940
+ id: string;
1941
+ projectId: string;
1942
+ }>;
1943
+ views: Array<{
1944
+ name: string;
1945
+ tableId: string;
1946
+ relationshipIds?: Array<string>;
1947
+ filters?: Array<{
1948
+ column: string;
1949
+ operator: 'eq' | 'ne' | 'contains' | 'gt' | 'gte' | 'lt' | 'lte' | 'is_null' | 'not_null';
1950
+ value?: string | number | boolean | null;
1951
+ }>;
1952
+ sort?: {
1953
+ column: string;
1954
+ direction: 'asc' | 'desc';
1955
+ };
1956
+ id: string;
1957
+ projectId: string;
1958
+ revision: number;
1959
+ }>;
1960
+ };
1961
+ };
1962
+ export type GetApiProjectsByProjectIdDataTableSchemaResponse = GetApiProjectsByProjectIdDataTableSchemaResponses[keyof GetApiProjectsByProjectIdDataTableSchemaResponses];
1963
+ export type PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryData = {
1964
+ body: {
1965
+ offset?: number;
1966
+ limit?: number;
1967
+ };
1968
+ path: {
1969
+ projectId: string;
1970
+ viewId: string;
1971
+ };
1972
+ query?: {
1973
+ workspace?: string;
1974
+ };
1975
+ url: '/api/projects/{projectId}/data-table-schema/views/{viewId}/query';
1976
+ };
1977
+ export type PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryErrors = {
1978
+ /**
1979
+ * Error
1980
+ */
1981
+ 400: {
1982
+ error: string;
1983
+ };
1984
+ /**
1985
+ * Error
1986
+ */
1987
+ 403: {
1988
+ error: string;
1989
+ };
1990
+ /**
1991
+ * Error
1992
+ */
1993
+ 404: {
1994
+ error: string;
1995
+ };
1996
+ };
1997
+ export type PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryError = PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryErrors[keyof PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryErrors];
1998
+ export type PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryResponses = {
1999
+ /**
2000
+ * Success
2001
+ */
2002
+ 200: {
2003
+ columns: Array<string>;
2004
+ rows: Array<{
2005
+ [key: string]: unknown;
2006
+ }>;
2007
+ total: number;
2008
+ nextOffset: number | null;
2009
+ };
2010
+ };
2011
+ export type PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryResponse = PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryResponses[keyof PostApiProjectsByProjectIdDataTableSchemaViewsByViewIdQueryResponses];
2012
+ export type GetApiProjectsByProjectIdDataTablesData = {
2013
+ body?: never;
2014
+ path: {
2015
+ projectId: string;
2016
+ };
2017
+ query?: {
2018
+ search?: string;
2019
+ global?: 'true';
2020
+ fields?: string;
2021
+ };
2022
+ url: '/api/projects/{projectId}/data-tables';
2023
+ };
2024
+ export type GetApiProjectsByProjectIdDataTablesErrors = {
2025
+ /**
2026
+ * Error
2027
+ */
2028
+ 400: {
2029
+ error: string;
2030
+ };
2031
+ /**
2032
+ * Error
2033
+ */
2034
+ 403: {
2035
+ error: string;
2036
+ };
2037
+ /**
2038
+ * Error
2039
+ */
2040
+ 404: {
2041
+ error: string;
2042
+ };
2043
+ };
2044
+ export type GetApiProjectsByProjectIdDataTablesError = GetApiProjectsByProjectIdDataTablesErrors[keyof GetApiProjectsByProjectIdDataTablesErrors];
2045
+ export type GetApiProjectsByProjectIdDataTablesResponses = {
2046
+ /**
2047
+ * Success
2048
+ */
2049
+ 200: Array<{
2050
+ id: string;
2051
+ projectId: string;
2052
+ name: string;
2053
+ slug: string;
2054
+ description?: string;
2055
+ storageMode: 'sqlite' | 'kv_blob';
2056
+ columns: Array<{
2057
+ id: string;
2058
+ key: string;
2059
+ name: string;
2060
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2061
+ required: boolean;
2062
+ defaultValue?: unknown;
2063
+ position: number;
2064
+ }>;
2065
+ rowCount: number;
2066
+ schemaVersion: number;
2067
+ createdAt: number;
2068
+ updatedAt: number;
2069
+ }>;
2070
+ };
2071
+ export type GetApiProjectsByProjectIdDataTablesResponse = GetApiProjectsByProjectIdDataTablesResponses[keyof GetApiProjectsByProjectIdDataTablesResponses];
2072
+ export type PostApiProjectsByProjectIdDataTablesData = {
2073
+ body: {
2074
+ name: string;
2075
+ slug?: string;
2076
+ description?: string;
2077
+ storageMode?: 'sqlite' | 'kv_blob';
2078
+ columns?: Array<{
2079
+ id?: string;
2080
+ key: string;
2081
+ name: string;
2082
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2083
+ required?: boolean;
2084
+ defaultValue?: unknown;
2085
+ position: number;
2086
+ }>;
2087
+ };
2088
+ path: {
2089
+ projectId: string;
2090
+ };
2091
+ query?: never;
2092
+ url: '/api/projects/{projectId}/data-tables';
2093
+ };
2094
+ export type PostApiProjectsByProjectIdDataTablesErrors = {
2095
+ /**
2096
+ * Error
2097
+ */
2098
+ 400: {
2099
+ error: string;
2100
+ };
2101
+ /**
2102
+ * Error
2103
+ */
2104
+ 403: {
2105
+ error: string;
2106
+ };
2107
+ /**
2108
+ * Error
2109
+ */
2110
+ 404: {
2111
+ error: string;
2112
+ };
2113
+ /**
2114
+ * Error
2115
+ */
2116
+ 409: {
2117
+ error: string;
2118
+ };
2119
+ };
2120
+ export type PostApiProjectsByProjectIdDataTablesError = PostApiProjectsByProjectIdDataTablesErrors[keyof PostApiProjectsByProjectIdDataTablesErrors];
2121
+ export type PostApiProjectsByProjectIdDataTablesResponses = {
2122
+ /**
2123
+ * Success
2124
+ */
2125
+ 201: {
2126
+ id: string;
2127
+ projectId: string;
2128
+ name: string;
2129
+ slug: string;
2130
+ description?: string;
2131
+ storageMode: 'sqlite' | 'kv_blob';
2132
+ columns: Array<{
2133
+ id: string;
2134
+ key: string;
2135
+ name: string;
2136
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2137
+ required: boolean;
2138
+ defaultValue?: unknown;
2139
+ position: number;
2140
+ }>;
2141
+ rowCount: number;
2142
+ schemaVersion: number;
2143
+ createdAt: number;
2144
+ updatedAt: number;
2145
+ };
2146
+ };
2147
+ export type PostApiProjectsByProjectIdDataTablesResponse = PostApiProjectsByProjectIdDataTablesResponses[keyof PostApiProjectsByProjectIdDataTablesResponses];
2148
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdData = {
2149
+ body?: never;
2150
+ path: {
2151
+ projectId: string;
2152
+ tableId: string;
2153
+ };
2154
+ query?: never;
2155
+ url: '/api/projects/{projectId}/data-tables/{tableId}';
2156
+ };
2157
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdErrors = {
2158
+ /**
2159
+ * Error
2160
+ */
2161
+ 403: {
2162
+ error: string;
2163
+ };
2164
+ /**
2165
+ * Error
2166
+ */
2167
+ 404: {
2168
+ error: string;
2169
+ };
2170
+ };
2171
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdError = DeleteApiProjectsByProjectIdDataTablesByTableIdErrors[keyof DeleteApiProjectsByProjectIdDataTablesByTableIdErrors];
2172
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdResponses = {
2173
+ /**
2174
+ * Success
2175
+ */
2176
+ 200: {
2177
+ ok: true;
2178
+ };
2179
+ };
2180
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdResponse = DeleteApiProjectsByProjectIdDataTablesByTableIdResponses[keyof DeleteApiProjectsByProjectIdDataTablesByTableIdResponses];
2181
+ export type GetApiProjectsByProjectIdDataTablesByTableIdData = {
2182
+ body?: never;
2183
+ path: {
2184
+ projectId: string;
2185
+ tableId: string;
2186
+ };
2187
+ query?: never;
2188
+ url: '/api/projects/{projectId}/data-tables/{tableId}';
2189
+ };
2190
+ export type GetApiProjectsByProjectIdDataTablesByTableIdErrors = {
2191
+ /**
2192
+ * Error
2193
+ */
2194
+ 403: {
2195
+ error: string;
2196
+ };
2197
+ /**
2198
+ * Error
2199
+ */
2200
+ 404: {
2201
+ error: string;
2202
+ };
2203
+ };
2204
+ export type GetApiProjectsByProjectIdDataTablesByTableIdError = GetApiProjectsByProjectIdDataTablesByTableIdErrors[keyof GetApiProjectsByProjectIdDataTablesByTableIdErrors];
2205
+ export type GetApiProjectsByProjectIdDataTablesByTableIdResponses = {
2206
+ /**
2207
+ * Success
2208
+ */
2209
+ 200: {
2210
+ id: string;
2211
+ projectId: string;
2212
+ name: string;
2213
+ slug: string;
2214
+ description?: string;
2215
+ storageMode: 'sqlite' | 'kv_blob';
2216
+ columns: Array<{
2217
+ id: string;
2218
+ key: string;
2219
+ name: string;
2220
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2221
+ required: boolean;
2222
+ defaultValue?: unknown;
2223
+ position: number;
2224
+ }>;
2225
+ rowCount: number;
2226
+ schemaVersion: number;
2227
+ createdAt: number;
2228
+ updatedAt: number;
2229
+ };
2230
+ };
2231
+ export type GetApiProjectsByProjectIdDataTablesByTableIdResponse = GetApiProjectsByProjectIdDataTablesByTableIdResponses[keyof GetApiProjectsByProjectIdDataTablesByTableIdResponses];
2232
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdData = {
2233
+ body: {
2234
+ name?: string;
2235
+ slug?: string;
2236
+ description?: string | null;
2237
+ columns?: Array<{
2238
+ id?: string;
2239
+ key: string;
2240
+ name: string;
2241
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2242
+ required?: boolean;
2243
+ defaultValue?: unknown;
2244
+ position: number;
2245
+ }>;
2246
+ };
2247
+ path: {
2248
+ projectId: string;
2249
+ tableId: string;
2250
+ };
2251
+ query?: never;
2252
+ url: '/api/projects/{projectId}/data-tables/{tableId}';
2253
+ };
2254
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdErrors = {
2255
+ /**
2256
+ * Error
2257
+ */
2258
+ 400: {
2259
+ error: string;
2260
+ };
2261
+ /**
2262
+ * Error
2263
+ */
2264
+ 403: {
2265
+ error: string;
2266
+ };
2267
+ /**
2268
+ * Error
2269
+ */
2270
+ 404: {
2271
+ error: string;
2272
+ };
2273
+ /**
2274
+ * Error
2275
+ */
2276
+ 409: {
2277
+ error: string;
2278
+ };
2279
+ };
2280
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdError = PatchApiProjectsByProjectIdDataTablesByTableIdErrors[keyof PatchApiProjectsByProjectIdDataTablesByTableIdErrors];
2281
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdResponses = {
2282
+ /**
2283
+ * Success
2284
+ */
2285
+ 200: {
2286
+ id: string;
2287
+ projectId: string;
2288
+ name: string;
2289
+ slug: string;
2290
+ description?: string;
2291
+ storageMode: 'sqlite' | 'kv_blob';
2292
+ columns: Array<{
2293
+ id: string;
2294
+ key: string;
2295
+ name: string;
2296
+ type: 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'json';
2297
+ required: boolean;
2298
+ defaultValue?: unknown;
2299
+ position: number;
2300
+ }>;
2301
+ rowCount: number;
2302
+ schemaVersion: number;
2303
+ createdAt: number;
2304
+ updatedAt: number;
2305
+ };
2306
+ };
2307
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdResponse = PatchApiProjectsByProjectIdDataTablesByTableIdResponses[keyof PatchApiProjectsByProjectIdDataTablesByTableIdResponses];
2308
+ export type GetApiProjectsByProjectIdDataTablesByTableIdRowsData = {
2309
+ body?: never;
2310
+ path: {
2311
+ projectId: string;
2312
+ tableId: string;
2313
+ };
2314
+ query?: {
2315
+ cursor?: string;
2316
+ limit?: number;
2317
+ };
2318
+ url: '/api/projects/{projectId}/data-tables/{tableId}/rows';
2319
+ };
2320
+ export type GetApiProjectsByProjectIdDataTablesByTableIdRowsErrors = {
2321
+ /**
2322
+ * Error
2323
+ */
2324
+ 400: {
2325
+ error: string;
2326
+ };
2327
+ /**
2328
+ * Error
2329
+ */
2330
+ 403: {
2331
+ error: string;
2332
+ };
2333
+ /**
2334
+ * Error
2335
+ */
2336
+ 404: {
2337
+ error: string;
2338
+ };
2339
+ };
2340
+ export type GetApiProjectsByProjectIdDataTablesByTableIdRowsError = GetApiProjectsByProjectIdDataTablesByTableIdRowsErrors[keyof GetApiProjectsByProjectIdDataTablesByTableIdRowsErrors];
2341
+ export type GetApiProjectsByProjectIdDataTablesByTableIdRowsResponses = {
2342
+ /**
2343
+ * Success
2344
+ */
2345
+ 200: {
2346
+ rows: Array<{
2347
+ id: string;
2348
+ tableId: string;
2349
+ data: {
2350
+ [key: string]: unknown;
2351
+ };
2352
+ version: number;
2353
+ createdAt: number;
2354
+ updatedAt: number;
2355
+ }>;
2356
+ nextCursor?: string;
2357
+ };
2358
+ };
2359
+ export type GetApiProjectsByProjectIdDataTablesByTableIdRowsResponse = GetApiProjectsByProjectIdDataTablesByTableIdRowsResponses[keyof GetApiProjectsByProjectIdDataTablesByTableIdRowsResponses];
2360
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsData = {
2361
+ body: {
2362
+ data: {
2363
+ [key: string]: unknown;
2364
+ };
2365
+ };
2366
+ path: {
2367
+ projectId: string;
2368
+ tableId: string;
2369
+ };
2370
+ query?: never;
2371
+ url: '/api/projects/{projectId}/data-tables/{tableId}/rows';
2372
+ };
2373
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsErrors = {
2374
+ /**
2375
+ * Error
2376
+ */
2377
+ 400: {
2378
+ error: string;
2379
+ };
2380
+ /**
2381
+ * Error
2382
+ */
2383
+ 403: {
2384
+ error: string;
2385
+ };
2386
+ /**
2387
+ * Error
2388
+ */
2389
+ 404: {
2390
+ error: string;
2391
+ };
2392
+ /**
2393
+ * Error
2394
+ */
2395
+ 409: {
2396
+ error: string;
2397
+ };
2398
+ };
2399
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsError = PostApiProjectsByProjectIdDataTablesByTableIdRowsErrors[keyof PostApiProjectsByProjectIdDataTablesByTableIdRowsErrors];
2400
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsResponses = {
2401
+ /**
2402
+ * Success
2403
+ */
2404
+ 201: {
2405
+ id: string;
2406
+ tableId: string;
2407
+ data: {
2408
+ [key: string]: unknown;
2409
+ };
2410
+ version: number;
2411
+ createdAt: number;
2412
+ updatedAt: number;
2413
+ };
2414
+ };
2415
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsResponse = PostApiProjectsByProjectIdDataTablesByTableIdRowsResponses[keyof PostApiProjectsByProjectIdDataTablesByTableIdRowsResponses];
2416
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdData = {
2417
+ body?: never;
2418
+ path: {
2419
+ projectId: string;
2420
+ tableId: string;
2421
+ rowId: string;
2422
+ };
2423
+ query?: never;
2424
+ url: '/api/projects/{projectId}/data-tables/{tableId}/rows/{rowId}';
2425
+ };
2426
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors = {
2427
+ /**
2428
+ * Error
2429
+ */
2430
+ 403: {
2431
+ error: string;
2432
+ };
2433
+ /**
2434
+ * Error
2435
+ */
2436
+ 404: {
2437
+ error: string;
2438
+ };
2439
+ };
2440
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdError = DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors[keyof DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors];
2441
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses = {
2442
+ /**
2443
+ * Success
2444
+ */
2445
+ 200: {
2446
+ ok: true;
2447
+ };
2448
+ };
2449
+ export type DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponse = DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses[keyof DeleteApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses];
2450
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdData = {
2451
+ body: {
2452
+ data: {
2453
+ [key: string]: unknown;
2454
+ };
2455
+ expectedVersion?: number;
2456
+ };
2457
+ path: {
2458
+ projectId: string;
2459
+ tableId: string;
2460
+ rowId: string;
2461
+ };
2462
+ query?: never;
2463
+ url: '/api/projects/{projectId}/data-tables/{tableId}/rows/{rowId}';
2464
+ };
2465
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors = {
2466
+ /**
2467
+ * Error
2468
+ */
2469
+ 400: {
2470
+ error: string;
2471
+ };
2472
+ /**
2473
+ * Error
2474
+ */
2475
+ 403: {
2476
+ error: string;
2477
+ };
2478
+ /**
2479
+ * Error
2480
+ */
2481
+ 404: {
2482
+ error: string;
2483
+ };
2484
+ /**
2485
+ * Error
2486
+ */
2487
+ 409: {
2488
+ error: string;
2489
+ };
2490
+ };
2491
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdError = PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors[keyof PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdErrors];
2492
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses = {
2493
+ /**
2494
+ * Success
2495
+ */
2496
+ 200: {
2497
+ id: string;
2498
+ tableId: string;
2499
+ data: {
2500
+ [key: string]: unknown;
2501
+ };
2502
+ version: number;
2503
+ createdAt: number;
2504
+ updatedAt: number;
2505
+ };
2506
+ };
2507
+ export type PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponse = PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses[keyof PatchApiProjectsByProjectIdDataTablesByTableIdRowsByRowIdResponses];
2508
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkData = {
2509
+ body: {
2510
+ mutations: Array<{
2511
+ data: {
2512
+ [key: string]: unknown;
2513
+ };
2514
+ operation: 'insert';
2515
+ } | {
2516
+ data: {
2517
+ [key: string]: unknown;
2518
+ };
2519
+ expectedVersion?: number;
2520
+ operation: 'update';
2521
+ rowId: string;
2522
+ } | {
2523
+ operation: 'delete';
2524
+ rowId: string;
2525
+ }>;
2526
+ };
2527
+ path: {
2528
+ projectId: string;
2529
+ tableId: string;
2530
+ };
2531
+ query?: never;
2532
+ url: '/api/projects/{projectId}/data-tables/{tableId}/rows/bulk';
2533
+ };
2534
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkErrors = {
2535
+ /**
2536
+ * Error
2537
+ */
2538
+ 400: {
2539
+ error: string;
2540
+ };
2541
+ /**
2542
+ * Error
2543
+ */
2544
+ 403: {
2545
+ error: string;
2546
+ };
2547
+ /**
2548
+ * Error
2549
+ */
2550
+ 404: {
2551
+ error: string;
2552
+ };
2553
+ /**
2554
+ * Error
2555
+ */
2556
+ 409: {
2557
+ error: string;
2558
+ };
2559
+ };
2560
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkError = PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkErrors[keyof PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkErrors];
2561
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkResponses = {
2562
+ /**
2563
+ * Success
2564
+ */
2565
+ 200: {
2566
+ rows: Array<{
2567
+ id: string;
2568
+ tableId: string;
2569
+ data: {
2570
+ [key: string]: unknown;
2571
+ };
2572
+ version: number;
2573
+ createdAt: number;
2574
+ updatedAt: number;
2575
+ }>;
2576
+ deletedRowIds: Array<string>;
2577
+ };
2578
+ };
2579
+ export type PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkResponse = PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkResponses[keyof PostApiProjectsByProjectIdDataTablesByTableIdRowsBulkResponses];
2580
+ export type GetApiNodesData = {
2581
+ body?: never;
2582
+ path?: never;
2583
+ query?: {
2584
+ scope?: string;
2585
+ q?: string;
2586
+ offset?: number;
2587
+ limit?: number;
2588
+ global?: 'true';
2589
+ };
2590
+ url: '/api/nodes';
2591
+ };
2592
+ export type GetApiNodesErrors = {
2593
+ /**
2594
+ * Error
2595
+ */
2596
+ 403: {
2597
+ error: string;
2598
+ };
2599
+ };
2600
+ export type GetApiNodesError = GetApiNodesErrors[keyof GetApiNodesErrors];
2601
+ export type GetApiNodesResponses = {
2602
+ /**
2603
+ * Success
2604
+ */
2605
+ 200: {
2606
+ items: Array<{
2607
+ id: string;
2608
+ language?: string;
2609
+ icon?: string;
2610
+ label?: string;
2611
+ inputs?: {
2612
+ [key: string]: unknown;
2613
+ };
2614
+ outputs?: {
2615
+ [key: string]: unknown;
2616
+ };
2617
+ command?: string;
2618
+ scope?: 'user' | 'group' | 'org' | 'public';
2619
+ owner?: string;
2620
+ }>;
2621
+ total: number;
2622
+ offset: number;
2623
+ limit: number;
2624
+ };
2625
+ };
2626
+ export type GetApiNodesResponse = GetApiNodesResponses[keyof GetApiNodesResponses];
2627
+ export type GetApiNodesByNodeIdSourceData = {
2628
+ body?: never;
2629
+ path: {
2630
+ nodeId: string;
2631
+ };
2632
+ query?: never;
2633
+ url: '/api/nodes/{nodeId}/source';
2634
+ };
2635
+ export type GetApiNodesByNodeIdSourceErrors = {
2636
+ /**
2637
+ * Error
2638
+ */
2639
+ 403: {
2640
+ error: string;
2641
+ };
2642
+ /**
2643
+ * Error
2644
+ */
2645
+ 404: {
2646
+ error: string;
2647
+ };
2648
+ };
2649
+ export type GetApiNodesByNodeIdSourceError = GetApiNodesByNodeIdSourceErrors[keyof GetApiNodesByNodeIdSourceErrors];
2650
+ export type GetApiNodesByNodeIdSourceResponses = {
2651
+ /**
2652
+ * Success
2653
+ */
2654
+ 200: {
2655
+ path: string;
2656
+ content: string;
2657
+ language?: string;
2658
+ mtime: number;
2659
+ revision: string;
2660
+ readOnly?: boolean;
2661
+ location?: {
2662
+ path: string;
2663
+ start: number;
2664
+ end: number;
2665
+ line: number;
2666
+ column: number;
2667
+ };
2668
+ };
2669
+ };
2670
+ export type GetApiNodesByNodeIdSourceResponse = GetApiNodesByNodeIdSourceResponses[keyof GetApiNodesByNodeIdSourceResponses];
2671
+ export type PutApiNodesByNodeIdSourceData = {
2672
+ body: {
2673
+ content: string;
2674
+ baseRevision: string;
2675
+ };
2676
+ path: {
2677
+ nodeId: string;
2678
+ };
2679
+ query?: never;
2680
+ url: '/api/nodes/{nodeId}/source';
2681
+ };
2682
+ export type PutApiNodesByNodeIdSourceErrors = {
2683
+ /**
2684
+ * Error
2685
+ */
2686
+ 400: {
2687
+ error: string;
2688
+ };
2689
+ /**
2690
+ * Error
2691
+ */
2692
+ 403: {
2693
+ error: string;
2694
+ };
2695
+ /**
2696
+ * Error
2697
+ */
2698
+ 409: {
2699
+ error: string;
2700
+ };
2701
+ };
2702
+ export type PutApiNodesByNodeIdSourceError = PutApiNodesByNodeIdSourceErrors[keyof PutApiNodesByNodeIdSourceErrors];
2703
+ export type PutApiNodesByNodeIdSourceResponses = {
2704
+ /**
2705
+ * Success
2706
+ */
2707
+ 200: {
2708
+ ok: true;
2709
+ mtime: number;
2710
+ revision: string;
2711
+ describeError?: string;
2712
+ resynced?: boolean;
2713
+ } | {
2714
+ ok: false;
2715
+ conflict: true;
2716
+ content: string;
2717
+ mtime: number;
2718
+ revision: string;
2719
+ reason?: string;
2720
+ };
2721
+ };
2722
+ export type PutApiNodesByNodeIdSourceResponse = PutApiNodesByNodeIdSourceResponses[keyof PutApiNodesByNodeIdSourceResponses];
2723
+ export type PutApiNodesByNodeIdSourceSignatureData = {
2724
+ body: {
2725
+ inputs: {
2726
+ [key: string]: unknown;
2727
+ };
2728
+ outputs: {
2729
+ [key: string]: unknown;
2730
+ };
2731
+ baseRevision: string;
2732
+ };
2733
+ path: {
2734
+ nodeId: string;
2735
+ };
2736
+ query?: never;
2737
+ url: '/api/nodes/{nodeId}/source/signature';
2738
+ };
2739
+ export type PutApiNodesByNodeIdSourceSignatureErrors = {
2740
+ /**
2741
+ * Error
2742
+ */
2743
+ 400: {
2744
+ error: string;
2745
+ };
2746
+ /**
2747
+ * Error
2748
+ */
2749
+ 403: {
2750
+ error: string;
2751
+ };
2752
+ /**
2753
+ * Error
2754
+ */
2755
+ 409: {
2756
+ error: string;
2757
+ };
2758
+ };
2759
+ export type PutApiNodesByNodeIdSourceSignatureError = PutApiNodesByNodeIdSourceSignatureErrors[keyof PutApiNodesByNodeIdSourceSignatureErrors];
2760
+ export type PutApiNodesByNodeIdSourceSignatureResponses = {
2761
+ /**
2762
+ * Success
2763
+ */
2764
+ 200: {
2765
+ ok: true;
2766
+ mtime: number;
2767
+ revision: string;
2768
+ describeError?: string;
2769
+ resynced?: boolean;
2770
+ } | {
2771
+ ok: false;
2772
+ conflict: true;
2773
+ content: string;
2774
+ mtime: number;
2775
+ revision: string;
2776
+ reason?: string;
2777
+ };
2778
+ };
2779
+ export type PutApiNodesByNodeIdSourceSignatureResponse = PutApiNodesByNodeIdSourceSignatureResponses[keyof PutApiNodesByNodeIdSourceSignatureResponses];
2780
+ export type PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsData = {
2781
+ body: {
2782
+ [key: string]: unknown;
2783
+ };
2784
+ headers?: {
2785
+ 'idempotency-key'?: string;
2786
+ };
2787
+ path: {
2788
+ workflowId: string;
2789
+ triggerId: string;
2790
+ };
2791
+ query?: {
2792
+ project?: string;
2793
+ workspace?: string;
2794
+ };
2795
+ url: '/api/workflows/{workflowId}/triggers/{triggerId}/events';
2796
+ };
2797
+ export type PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsErrors = {
2798
+ /**
2799
+ * Error
2800
+ */
2801
+ 400: {
2802
+ error: string;
2803
+ };
2804
+ /**
2805
+ * Error
2806
+ */
2807
+ 403: {
2808
+ error: string;
2809
+ };
2810
+ /**
2811
+ * Error
2812
+ */
2813
+ 404: {
2814
+ error: string;
2815
+ };
2816
+ /**
2817
+ * Error
2818
+ */
2819
+ 409: {
2820
+ error: string;
2821
+ };
2822
+ /**
2823
+ * Error
2824
+ */
2825
+ 429: {
2826
+ error: string;
2827
+ };
2828
+ /**
2829
+ * Error
2830
+ */
2831
+ 503: {
2832
+ error: string;
2833
+ };
2834
+ };
2835
+ export type PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsError = PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsErrors[keyof PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsErrors];
2836
+ export type PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsResponses = {
2837
+ /**
2838
+ * Success
2839
+ */
2840
+ 202: {
2841
+ requestHash: string;
2842
+ dispatchPending: boolean;
2843
+ runId: string;
2844
+ workflowId: string;
2845
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'interrupted';
2846
+ submittedAt: number;
2847
+ startedAt?: number;
2848
+ finishedAt?: number;
2849
+ result?: {
2850
+ workflowId: string;
2851
+ runId: string;
2852
+ env?: string;
2853
+ status: 'ok' | 'error' | 'partial';
2854
+ nodes: {
2855
+ [key: string]: {
2856
+ status: 'ok' | 'error' | 'skipped';
2857
+ attempts: number;
2858
+ durationMs: number;
2859
+ command?: string;
2860
+ inputs?: unknown;
2861
+ outputs?: unknown;
2862
+ error?: {
2863
+ code: string;
2864
+ message: string;
2865
+ retryable?: boolean;
2866
+ };
2867
+ note?: 'disabled' | 'pinned' | 'upstream-of-from-node';
2868
+ };
2869
+ };
2870
+ outputs: {
2871
+ [key: string]: unknown;
2872
+ };
2873
+ durationMs: number;
2874
+ };
2875
+ error?: string;
2876
+ };
2877
+ };
2878
+ export type PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsResponse = PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsResponses[keyof PostApiWorkflowsByWorkflowIdTriggersByTriggerIdEventsResponses];
2879
+ export type PostApiWorkflowsByWorkflowIdExecutionsData = {
2880
+ body: {
2881
+ idempotencyKey: string;
2882
+ baseRevision?: string;
2883
+ env?: string;
2884
+ input?: {
2885
+ [key: string]: unknown;
2886
+ };
2887
+ fromNode?: string;
2888
+ pins?: {
2889
+ [key: string]: unknown;
2890
+ };
2891
+ };
2892
+ path: {
2893
+ workflowId: string;
2894
+ };
2895
+ query?: never;
2896
+ url: '/api/workflows/{workflowId}/executions';
2897
+ };
2898
+ export type PostApiWorkflowsByWorkflowIdExecutionsErrors = {
2899
+ /**
2900
+ * Error
2901
+ */
2902
+ 400: {
2903
+ error: string;
2904
+ };
2905
+ /**
2906
+ * Error
2907
+ */
2908
+ 403: {
2909
+ error: string;
2910
+ };
2911
+ /**
2912
+ * Error
2913
+ */
2914
+ 404: {
2915
+ error: string;
2916
+ };
2917
+ /**
2918
+ * Error
2919
+ */
2920
+ 409: {
2921
+ error: string;
2922
+ };
2923
+ /**
2924
+ * Error
2925
+ */
2926
+ 413: {
2927
+ error: string;
2928
+ };
2929
+ /**
2930
+ * Error
2931
+ */
2932
+ 429: {
2933
+ error: string;
2934
+ };
2935
+ /**
2936
+ * Error
2937
+ */
2938
+ 503: {
2939
+ error: string;
2940
+ };
2941
+ };
2942
+ export type PostApiWorkflowsByWorkflowIdExecutionsError = PostApiWorkflowsByWorkflowIdExecutionsErrors[keyof PostApiWorkflowsByWorkflowIdExecutionsErrors];
2943
+ export type PostApiWorkflowsByWorkflowIdExecutionsResponses = {
2944
+ /**
2945
+ * Success
2946
+ */
2947
+ 202: {
2948
+ requestHash: string;
2949
+ dispatchPending: boolean;
2950
+ runId: string;
2951
+ workflowId: string;
2952
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'interrupted';
2953
+ submittedAt: number;
2954
+ startedAt?: number;
2955
+ finishedAt?: number;
2956
+ result?: {
2957
+ workflowId: string;
2958
+ runId: string;
2959
+ env?: string;
2960
+ status: 'ok' | 'error' | 'partial';
2961
+ nodes: {
2962
+ [key: string]: {
2963
+ status: 'ok' | 'error' | 'skipped';
2964
+ attempts: number;
2965
+ durationMs: number;
2966
+ command?: string;
2967
+ inputs?: unknown;
2968
+ outputs?: unknown;
2969
+ error?: {
2970
+ code: string;
2971
+ message: string;
2972
+ retryable?: boolean;
2973
+ };
2974
+ note?: 'disabled' | 'pinned' | 'upstream-of-from-node';
2975
+ };
2976
+ };
2977
+ outputs: {
2978
+ [key: string]: unknown;
2979
+ };
2980
+ durationMs: number;
2981
+ };
2982
+ error?: string;
2983
+ };
2984
+ };
2985
+ export type PostApiWorkflowsByWorkflowIdExecutionsResponse = PostApiWorkflowsByWorkflowIdExecutionsResponses[keyof PostApiWorkflowsByWorkflowIdExecutionsResponses];
2986
+ export type GetApiExecutionsByRunIdData = {
2987
+ body?: never;
2988
+ path: {
2989
+ runId: string;
2990
+ };
2991
+ query?: never;
2992
+ url: '/api/executions/{runId}';
2993
+ };
2994
+ export type GetApiExecutionsByRunIdErrors = {
2995
+ /**
2996
+ * Error
2997
+ */
2998
+ 404: {
2999
+ error: string;
3000
+ };
3001
+ };
3002
+ export type GetApiExecutionsByRunIdError = GetApiExecutionsByRunIdErrors[keyof GetApiExecutionsByRunIdErrors];
3003
+ export type GetApiExecutionsByRunIdResponses = {
3004
+ /**
3005
+ * Success
3006
+ */
3007
+ 200: {
3008
+ requestHash: string;
3009
+ dispatchPending: boolean;
3010
+ runId: string;
3011
+ workflowId: string;
3012
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'interrupted';
3013
+ submittedAt: number;
3014
+ startedAt?: number;
3015
+ finishedAt?: number;
3016
+ result?: {
3017
+ workflowId: string;
3018
+ runId: string;
3019
+ env?: string;
3020
+ status: 'ok' | 'error' | 'partial';
3021
+ nodes: {
3022
+ [key: string]: {
3023
+ status: 'ok' | 'error' | 'skipped';
3024
+ attempts: number;
3025
+ durationMs: number;
3026
+ command?: string;
3027
+ inputs?: unknown;
3028
+ outputs?: unknown;
3029
+ error?: {
3030
+ code: string;
3031
+ message: string;
3032
+ retryable?: boolean;
3033
+ };
3034
+ note?: 'disabled' | 'pinned' | 'upstream-of-from-node';
3035
+ };
3036
+ };
3037
+ outputs: {
3038
+ [key: string]: unknown;
3039
+ };
3040
+ durationMs: number;
3041
+ };
3042
+ error?: string;
3043
+ };
3044
+ };
3045
+ export type GetApiExecutionsByRunIdResponse = GetApiExecutionsByRunIdResponses[keyof GetApiExecutionsByRunIdResponses];
3046
+ export type GetApiExecutionsByRunIdEventsData = {
3047
+ body?: never;
3048
+ path: {
3049
+ runId: string;
3050
+ };
3051
+ query?: {
3052
+ after?: number;
3053
+ };
3054
+ url: '/api/executions/{runId}/events';
3055
+ };
3056
+ export type GetApiExecutionsByRunIdEventsResponses = {
3057
+ /**
3058
+ * SSE stream
3059
+ */
3060
+ 200: unknown;
3061
+ };
3062
+ export type PostApiExecutionsByRunIdCancelData = {
3063
+ body?: never;
3064
+ path: {
3065
+ runId: string;
3066
+ };
3067
+ query?: never;
3068
+ url: '/api/executions/{runId}/cancel';
3069
+ };
3070
+ export type PostApiExecutionsByRunIdCancelErrors = {
3071
+ /**
3072
+ * Error
3073
+ */
3074
+ 404: {
3075
+ error: string;
3076
+ };
3077
+ };
3078
+ export type PostApiExecutionsByRunIdCancelError = PostApiExecutionsByRunIdCancelErrors[keyof PostApiExecutionsByRunIdCancelErrors];
3079
+ export type PostApiExecutionsByRunIdCancelResponses = {
3080
+ /**
3081
+ * Success
3082
+ */
3083
+ 200: {
3084
+ ok: true;
3085
+ cancelled: boolean;
3086
+ };
3087
+ };
3088
+ export type PostApiExecutionsByRunIdCancelResponse = PostApiExecutionsByRunIdCancelResponses[keyof PostApiExecutionsByRunIdCancelResponses];
3089
+ export type GetApiWorkflowsData = {
3090
+ body?: never;
3091
+ path?: never;
3092
+ query?: {
3093
+ archived?: 'true' | 'false';
3094
+ scope?: string;
3095
+ q?: string;
3096
+ tag?: string;
3097
+ active?: 'true' | 'false';
3098
+ sort?: 'updated' | 'created' | 'name';
3099
+ order?: 'asc' | 'desc';
3100
+ offset?: number;
3101
+ limit?: number;
3102
+ };
3103
+ url: '/api/workflows';
3104
+ };
3105
+ export type GetApiWorkflowsResponses = {
3106
+ /**
3107
+ * Success
3108
+ */
3109
+ 200: {
3110
+ items: Array<{
3111
+ source?: {
3112
+ path: string;
3113
+ symbol: string;
3114
+ kind: 'module' | 'function';
3115
+ checksum: string;
3116
+ };
3117
+ label?: string;
3118
+ archived?: boolean;
3119
+ id: string;
3120
+ description?: string;
3121
+ nodeCount: number;
3122
+ edgeCount: number;
3123
+ scope?: 'user' | 'group' | 'org' | 'public';
3124
+ owner?: string;
3125
+ active?: boolean;
3126
+ tags?: Array<string>;
3127
+ folder?: string;
3128
+ createdAt?: number;
3129
+ updatedAt?: number;
3130
+ }>;
3131
+ total: number;
3132
+ offset: number;
3133
+ limit: number;
3134
+ folders: Array<string>;
3135
+ facets: {
3136
+ tags: Array<string>;
3137
+ };
3138
+ };
3139
+ };
3140
+ export type GetApiWorkflowsResponse = GetApiWorkflowsResponses[keyof GetApiWorkflowsResponses];
3141
+ export type PostApiWorkflowsData = {
3142
+ body: {
3143
+ id: string;
3144
+ description?: string;
3145
+ };
3146
+ path?: never;
3147
+ query?: never;
3148
+ url: '/api/workflows';
3149
+ };
3150
+ export type PostApiWorkflowsErrors = {
3151
+ /**
3152
+ * Error
3153
+ */
3154
+ 400: {
3155
+ error: string;
3156
+ };
3157
+ /**
3158
+ * Error
3159
+ */
3160
+ 409: {
3161
+ error: string;
3162
+ };
3163
+ };
3164
+ export type PostApiWorkflowsError = PostApiWorkflowsErrors[keyof PostApiWorkflowsErrors];
3165
+ export type PostApiWorkflowsResponses = {
3166
+ /**
3167
+ * Success
3168
+ */
3169
+ 201: {
3170
+ ok: true;
3171
+ id: string;
3172
+ };
3173
+ };
3174
+ export type PostApiWorkflowsResponse = PostApiWorkflowsResponses[keyof PostApiWorkflowsResponses];
3175
+ export type GetApiWorkflowsByWorkflowIdNodeCatalogData = {
3176
+ body?: never;
3177
+ path: {
3178
+ workflowId: string;
3179
+ };
3180
+ query?: {
3181
+ q?: string;
3182
+ offset?: number;
3183
+ limit?: number;
3184
+ };
3185
+ url: '/api/workflows/{workflowId}/node-catalog';
3186
+ };
3187
+ export type GetApiWorkflowsByWorkflowIdNodeCatalogErrors = {
3188
+ /**
3189
+ * Error
3190
+ */
3191
+ 404: {
3192
+ error: string;
3193
+ };
3194
+ };
3195
+ export type GetApiWorkflowsByWorkflowIdNodeCatalogError = GetApiWorkflowsByWorkflowIdNodeCatalogErrors[keyof GetApiWorkflowsByWorkflowIdNodeCatalogErrors];
3196
+ export type GetApiWorkflowsByWorkflowIdNodeCatalogResponses = {
3197
+ /**
3198
+ * Success
3199
+ */
3200
+ 200: {
3201
+ items: Array<{
3202
+ id: string;
3203
+ label: string;
3204
+ symbol?: string;
3205
+ category: string;
3206
+ description: string;
3207
+ icon: string;
3208
+ kind: 'native';
3209
+ params?: {
3210
+ [key: string]: unknown;
3211
+ };
3212
+ defaultParams?: {
3213
+ [key: string]: unknown;
3214
+ };
3215
+ } | {
3216
+ id: string;
3217
+ label: string;
3218
+ symbol?: string;
3219
+ category: string;
3220
+ description: string;
3221
+ icon: string;
3222
+ kind: 'workflow';
3223
+ workflowId: string;
3224
+ }>;
3225
+ total: number;
3226
+ offset: number;
3227
+ limit: number;
3228
+ };
3229
+ };
3230
+ export type GetApiWorkflowsByWorkflowIdNodeCatalogResponse = GetApiWorkflowsByWorkflowIdNodeCatalogResponses[keyof GetApiWorkflowsByWorkflowIdNodeCatalogResponses];
3231
+ export type GetApiWorkflowsByWorkflowIdGraphData = {
3232
+ body?: never;
3233
+ path: {
3234
+ workflowId: string;
3235
+ };
3236
+ query?: {
3237
+ project?: string;
3238
+ workspace?: string;
3239
+ };
3240
+ url: '/api/workflows/{workflowId}/graph';
3241
+ };
3242
+ export type GetApiWorkflowsByWorkflowIdGraphErrors = {
3243
+ /**
3244
+ * Error
3245
+ */
3246
+ 404: {
3247
+ error: string;
3248
+ };
3249
+ };
3250
+ export type GetApiWorkflowsByWorkflowIdGraphError = GetApiWorkflowsByWorkflowIdGraphErrors[keyof GetApiWorkflowsByWorkflowIdGraphErrors];
3251
+ export type GetApiWorkflowsByWorkflowIdGraphResponses = {
3252
+ /**
3253
+ * Success
3254
+ */
3255
+ 200: {
3256
+ triggers?: Array<{
3257
+ id: string;
3258
+ name: string;
3259
+ enabled?: boolean;
3260
+ kind: 'cron';
3261
+ provider: 'native' | 'external';
3262
+ expression: string;
3263
+ timezone: string;
3264
+ input?: {
3265
+ [key: string]: unknown;
3266
+ };
3267
+ } | {
3268
+ id: string;
3269
+ name: string;
3270
+ enabled?: boolean;
3271
+ kind: 'webhook';
3272
+ payloadPath?: string;
3273
+ }>;
3274
+ id: string;
3275
+ executionId?: string;
3276
+ revision: string;
3277
+ source?: {
3278
+ path: string;
3279
+ symbol: string;
3280
+ kind: 'module' | 'function';
3281
+ checksum: string;
3282
+ };
3283
+ inputs?: {
3284
+ [key: string]: unknown;
3285
+ };
3286
+ types?: {
3287
+ [key: string]: {
3288
+ [key: string]: unknown;
3289
+ };
3290
+ };
3291
+ nodes: Array<{
3292
+ role?: 'entry' | 'step';
3293
+ symbol?: string;
3294
+ description?: string;
3295
+ id: string;
3296
+ language?: string;
3297
+ icon?: string;
3298
+ label?: string;
3299
+ inputs?: {
3300
+ [key: string]: unknown;
3301
+ };
3302
+ outputs?: {
3303
+ [key: string]: unknown;
3304
+ };
3305
+ sourceExpressions?: {
3306
+ [key: string]: string;
3307
+ };
3308
+ kind?: 'function' | 'class' | 'service' | 'const';
3309
+ setup?: {
3310
+ [key: string]: unknown;
3311
+ };
3312
+ provides?: Array<string>;
3313
+ runtime?: {
3314
+ timeout_ms?: number;
3315
+ retries?: number;
3316
+ retry_backoff_ms?: number;
3317
+ concurrency?: number;
3318
+ async?: boolean;
3319
+ };
3320
+ command?: string;
3321
+ disabled?: boolean;
3322
+ position?: {
3323
+ x: number;
3324
+ y: number;
3325
+ };
3326
+ scope?: 'user' | 'group' | 'org' | 'public';
3327
+ owner?: string;
3328
+ expressions?: {
3329
+ [key: string]: string;
3330
+ };
3331
+ bindings?: {
3332
+ [key: string]: {
3333
+ kind: 'literal';
3334
+ value?: unknown;
3335
+ } | {
3336
+ kind: 'symbol';
3337
+ symbol: string;
3338
+ value?: unknown;
3339
+ };
3340
+ };
3341
+ }>;
3342
+ edges: Array<{
3343
+ from: {
3344
+ node: string;
3345
+ output?: string;
3346
+ };
3347
+ to: {
3348
+ node: string;
3349
+ input?: string;
3350
+ };
3351
+ kind?: 'data' | 'dependency' | 'control';
3352
+ }>;
3353
+ promises?: Array<{
3354
+ node: string;
3355
+ mode: 'all' | 'allSettled' | 'race' | 'any' | 'reject' | 'settled' | 'then' | 'catch' | 'finally';
3356
+ }>;
3357
+ roots: Array<string>;
3358
+ terminals: Array<string>;
3359
+ stickyNotes?: Array<{
3360
+ id: string;
3361
+ position: {
3362
+ x: number;
3363
+ y: number;
3364
+ };
3365
+ size: {
3366
+ width: number;
3367
+ height: number;
3368
+ };
3369
+ text: string;
3370
+ color: string;
3371
+ }>;
3372
+ groups?: Array<{
3373
+ id: string;
3374
+ position: {
3375
+ x: number;
3376
+ y: number;
3377
+ };
3378
+ size: {
3379
+ width: number;
3380
+ height: number;
3381
+ };
3382
+ label?: string;
3383
+ nodeIds: Array<string>;
3384
+ }>;
3385
+ };
3386
+ };
3387
+ export type GetApiWorkflowsByWorkflowIdGraphResponse = GetApiWorkflowsByWorkflowIdGraphResponses[keyof GetApiWorkflowsByWorkflowIdGraphResponses];
3388
+ export type PostApiWorkflowsByWorkflowIdRunData = {
3389
+ body: {
3390
+ env?: string;
3391
+ input?: unknown;
3392
+ };
3393
+ path: {
3394
+ workflowId: string;
3395
+ };
3396
+ query?: never;
3397
+ url: '/api/workflows/{workflowId}/run';
3398
+ };
3399
+ export type PostApiWorkflowsByWorkflowIdRunResponses = {
3400
+ /**
3401
+ * SSE stream
3402
+ */
3403
+ 200: unknown;
3404
+ };
3405
+ export type PostApiWorkflowsByWorkflowIdTopologyData = {
3406
+ body: {
3407
+ baseRevision: string;
3408
+ entry?: string;
3409
+ edges: Array<{
3410
+ from: {
3411
+ node: string;
3412
+ output?: string;
3413
+ };
3414
+ to: {
3415
+ node: string;
3416
+ input?: string;
3417
+ };
3418
+ kind?: 'data' | 'dependency' | 'control';
3419
+ }>;
3420
+ nodes?: Array<string>;
3421
+ expressions?: {
3422
+ [key: string]: {
3423
+ [key: string]: string;
3424
+ };
3425
+ };
3426
+ bindings?: {
3427
+ [key: string]: {
3428
+ [key: string]: {
3429
+ kind: 'literal';
3430
+ value?: unknown;
3431
+ } | {
3432
+ kind: 'symbol';
3433
+ symbol: string;
3434
+ value?: unknown;
3435
+ };
3436
+ };
3437
+ };
3438
+ positions?: {
3439
+ [key: string]: {
3440
+ x: number;
3441
+ y: number;
3442
+ };
3443
+ };
3444
+ stickyNotes?: Array<{
3445
+ id: string;
3446
+ position: {
3447
+ x: number;
3448
+ y: number;
3449
+ };
3450
+ size: {
3451
+ width: number;
3452
+ height: number;
3453
+ };
3454
+ text: string;
3455
+ color: string;
3456
+ }>;
3457
+ groups?: Array<{
3458
+ id: string;
3459
+ position: {
3460
+ x: number;
3461
+ y: number;
3462
+ };
3463
+ size: {
3464
+ width: number;
3465
+ height: number;
3466
+ };
3467
+ label?: string;
3468
+ nodeIds?: Array<string>;
3469
+ }>;
3470
+ };
3471
+ path: {
3472
+ workflowId: string;
3473
+ };
3474
+ query?: never;
3475
+ url: '/api/workflows/{workflowId}/topology';
3476
+ };
3477
+ export type PostApiWorkflowsByWorkflowIdTopologyErrors = {
3478
+ /**
3479
+ * Error
3480
+ */
3481
+ 400: {
3482
+ error: string;
3483
+ };
3484
+ /**
3485
+ * Error
3486
+ */
3487
+ 403: {
3488
+ error: string;
3489
+ };
3490
+ /**
3491
+ * Error
3492
+ */
3493
+ 404: {
3494
+ error: string;
3495
+ };
3496
+ /**
3497
+ * Error
3498
+ */
3499
+ 409: {
3500
+ conflict: true;
3501
+ error: string;
3502
+ graph: {
3503
+ triggers?: Array<{
3504
+ id: string;
3505
+ name: string;
3506
+ enabled?: boolean;
3507
+ kind: 'cron';
3508
+ provider: 'native' | 'external';
3509
+ expression: string;
3510
+ timezone: string;
3511
+ input?: {
3512
+ [key: string]: unknown;
3513
+ };
3514
+ } | {
3515
+ id: string;
3516
+ name: string;
3517
+ enabled?: boolean;
3518
+ kind: 'webhook';
3519
+ payloadPath?: string;
3520
+ }>;
3521
+ id: string;
3522
+ executionId?: string;
3523
+ revision: string;
3524
+ source?: {
3525
+ path: string;
3526
+ symbol: string;
3527
+ kind: 'module' | 'function';
3528
+ checksum: string;
3529
+ };
3530
+ inputs?: {
3531
+ [key: string]: unknown;
3532
+ };
3533
+ types?: {
3534
+ [key: string]: {
3535
+ [key: string]: unknown;
3536
+ };
3537
+ };
3538
+ nodes: Array<{
3539
+ role?: 'entry' | 'step';
3540
+ symbol?: string;
3541
+ description?: string;
3542
+ id: string;
3543
+ language?: string;
3544
+ icon?: string;
3545
+ label?: string;
3546
+ inputs?: {
3547
+ [key: string]: unknown;
3548
+ };
3549
+ outputs?: {
3550
+ [key: string]: unknown;
3551
+ };
3552
+ sourceExpressions?: {
3553
+ [key: string]: string;
3554
+ };
3555
+ kind?: 'function' | 'class' | 'service' | 'const';
3556
+ setup?: {
3557
+ [key: string]: unknown;
3558
+ };
3559
+ provides?: Array<string>;
3560
+ runtime?: {
3561
+ timeout_ms?: number;
3562
+ retries?: number;
3563
+ retry_backoff_ms?: number;
3564
+ concurrency?: number;
3565
+ async?: boolean;
3566
+ };
3567
+ command?: string;
3568
+ disabled?: boolean;
3569
+ position?: {
3570
+ x: number;
3571
+ y: number;
3572
+ };
3573
+ scope?: 'user' | 'group' | 'org' | 'public';
3574
+ owner?: string;
3575
+ expressions?: {
3576
+ [key: string]: string;
3577
+ };
3578
+ bindings?: {
3579
+ [key: string]: {
3580
+ kind: 'literal';
3581
+ value?: unknown;
3582
+ } | {
3583
+ kind: 'symbol';
3584
+ symbol: string;
3585
+ value?: unknown;
3586
+ };
3587
+ };
3588
+ }>;
3589
+ edges: Array<{
3590
+ from: {
3591
+ node: string;
3592
+ output?: string;
3593
+ };
3594
+ to: {
3595
+ node: string;
3596
+ input?: string;
3597
+ };
3598
+ kind?: 'data' | 'dependency' | 'control';
3599
+ }>;
3600
+ promises?: Array<{
3601
+ node: string;
3602
+ mode: 'all' | 'allSettled' | 'race' | 'any' | 'reject' | 'settled' | 'then' | 'catch' | 'finally';
3603
+ }>;
3604
+ roots: Array<string>;
3605
+ terminals: Array<string>;
3606
+ stickyNotes?: Array<{
3607
+ id: string;
3608
+ position: {
3609
+ x: number;
3610
+ y: number;
3611
+ };
3612
+ size: {
3613
+ width: number;
3614
+ height: number;
3615
+ };
3616
+ text: string;
3617
+ color: string;
3618
+ }>;
3619
+ groups?: Array<{
3620
+ id: string;
3621
+ position: {
3622
+ x: number;
3623
+ y: number;
3624
+ };
3625
+ size: {
3626
+ width: number;
3627
+ height: number;
3628
+ };
3629
+ label?: string;
3630
+ nodeIds: Array<string>;
3631
+ }>;
3632
+ };
3633
+ revision: string;
3634
+ };
3635
+ };
3636
+ export type PostApiWorkflowsByWorkflowIdTopologyError = PostApiWorkflowsByWorkflowIdTopologyErrors[keyof PostApiWorkflowsByWorkflowIdTopologyErrors];
3637
+ export type PostApiWorkflowsByWorkflowIdTopologyResponses = {
3638
+ /**
3639
+ * Success
3640
+ */
3641
+ 200: {
3642
+ graph: {
3643
+ triggers?: Array<{
3644
+ id: string;
3645
+ name: string;
3646
+ enabled?: boolean;
3647
+ kind: 'cron';
3648
+ provider: 'native' | 'external';
3649
+ expression: string;
3650
+ timezone: string;
3651
+ input?: {
3652
+ [key: string]: unknown;
3653
+ };
3654
+ } | {
3655
+ id: string;
3656
+ name: string;
3657
+ enabled?: boolean;
3658
+ kind: 'webhook';
3659
+ payloadPath?: string;
3660
+ }>;
3661
+ id: string;
3662
+ executionId?: string;
3663
+ revision: string;
3664
+ source?: {
3665
+ path: string;
3666
+ symbol: string;
3667
+ kind: 'module' | 'function';
3668
+ checksum: string;
3669
+ };
3670
+ inputs?: {
3671
+ [key: string]: unknown;
3672
+ };
3673
+ types?: {
3674
+ [key: string]: {
3675
+ [key: string]: unknown;
3676
+ };
3677
+ };
3678
+ nodes: Array<{
3679
+ role?: 'entry' | 'step';
3680
+ symbol?: string;
3681
+ description?: string;
3682
+ id: string;
3683
+ language?: string;
3684
+ icon?: string;
3685
+ label?: string;
3686
+ inputs?: {
3687
+ [key: string]: unknown;
3688
+ };
3689
+ outputs?: {
3690
+ [key: string]: unknown;
3691
+ };
3692
+ sourceExpressions?: {
3693
+ [key: string]: string;
3694
+ };
3695
+ kind?: 'function' | 'class' | 'service' | 'const';
3696
+ setup?: {
3697
+ [key: string]: unknown;
3698
+ };
3699
+ provides?: Array<string>;
3700
+ runtime?: {
3701
+ timeout_ms?: number;
3702
+ retries?: number;
3703
+ retry_backoff_ms?: number;
3704
+ concurrency?: number;
3705
+ async?: boolean;
3706
+ };
3707
+ command?: string;
3708
+ disabled?: boolean;
3709
+ position?: {
3710
+ x: number;
3711
+ y: number;
3712
+ };
3713
+ scope?: 'user' | 'group' | 'org' | 'public';
3714
+ owner?: string;
3715
+ expressions?: {
3716
+ [key: string]: string;
3717
+ };
3718
+ bindings?: {
3719
+ [key: string]: {
3720
+ kind: 'literal';
3721
+ value?: unknown;
3722
+ } | {
3723
+ kind: 'symbol';
3724
+ symbol: string;
3725
+ value?: unknown;
3726
+ };
3727
+ };
3728
+ }>;
3729
+ edges: Array<{
3730
+ from: {
3731
+ node: string;
3732
+ output?: string;
3733
+ };
3734
+ to: {
3735
+ node: string;
3736
+ input?: string;
3737
+ };
3738
+ kind?: 'data' | 'dependency' | 'control';
3739
+ }>;
3740
+ promises?: Array<{
3741
+ node: string;
3742
+ mode: 'all' | 'allSettled' | 'race' | 'any' | 'reject' | 'settled' | 'then' | 'catch' | 'finally';
3743
+ }>;
3744
+ roots: Array<string>;
3745
+ terminals: Array<string>;
3746
+ stickyNotes?: Array<{
3747
+ id: string;
3748
+ position: {
3749
+ x: number;
3750
+ y: number;
3751
+ };
3752
+ size: {
3753
+ width: number;
3754
+ height: number;
3755
+ };
3756
+ text: string;
3757
+ color: string;
3758
+ }>;
3759
+ groups?: Array<{
3760
+ id: string;
3761
+ position: {
3762
+ x: number;
3763
+ y: number;
3764
+ };
3765
+ size: {
3766
+ width: number;
3767
+ height: number;
3768
+ };
3769
+ label?: string;
3770
+ nodeIds: Array<string>;
3771
+ }>;
3772
+ };
3773
+ revision: string;
3774
+ code?: string;
3775
+ };
3776
+ };
3777
+ export type PostApiWorkflowsByWorkflowIdTopologyResponse = PostApiWorkflowsByWorkflowIdTopologyResponses[keyof PostApiWorkflowsByWorkflowIdTopologyResponses];
3778
+ export type PostApiWorkflowsByWorkflowIdValidateConnectionData = {
3779
+ body: {
3780
+ from: {
3781
+ node: string;
3782
+ output?: string;
3783
+ };
3784
+ to: {
3785
+ node: string;
3786
+ input?: string;
3787
+ };
3788
+ };
3789
+ path: {
3790
+ workflowId: string;
3791
+ };
3792
+ query?: never;
3793
+ url: '/api/workflows/{workflowId}/validate-connection';
3794
+ };
3795
+ export type PostApiWorkflowsByWorkflowIdValidateConnectionErrors = {
3796
+ /**
3797
+ * Error
3798
+ */
3799
+ 400: {
3800
+ error: string;
3801
+ };
3802
+ /**
3803
+ * Error
3804
+ */
3805
+ 404: {
3806
+ error: string;
3807
+ };
3808
+ };
3809
+ export type PostApiWorkflowsByWorkflowIdValidateConnectionError = PostApiWorkflowsByWorkflowIdValidateConnectionErrors[keyof PostApiWorkflowsByWorkflowIdValidateConnectionErrors];
3810
+ export type PostApiWorkflowsByWorkflowIdValidateConnectionResponses = {
3811
+ /**
3812
+ * Success
3813
+ */
3814
+ 200: {
3815
+ ok: true;
3816
+ } | {
3817
+ ok: false;
3818
+ code: 'from_node_missing' | 'to_node_missing' | 'self_edge' | 'duplicate_edge' | 'from_port_missing' | 'to_port_missing' | 'type_mismatch' | 'cycle';
3819
+ message: string;
3820
+ };
3821
+ };
3822
+ export type PostApiWorkflowsByWorkflowIdValidateConnectionResponse = PostApiWorkflowsByWorkflowIdValidateConnectionResponses[keyof PostApiWorkflowsByWorkflowIdValidateConnectionResponses];
3823
+ export type GetApiMarketplaceData = {
3824
+ body?: never;
3825
+ path?: never;
3826
+ query?: {
3827
+ q?: string;
3828
+ category?: string;
3829
+ tag?: string;
3830
+ installed?: 'true' | 'false';
3831
+ offset?: number;
3832
+ limit?: number;
3833
+ scope?: string;
3834
+ fields?: string;
3835
+ };
3836
+ url: '/api/marketplace';
3837
+ };
3838
+ export type GetApiMarketplaceErrors = {
3839
+ /**
3840
+ * Error
3841
+ */
3842
+ 400: {
3843
+ error: string;
3844
+ };
3845
+ };
3846
+ export type GetApiMarketplaceError = GetApiMarketplaceErrors[keyof GetApiMarketplaceErrors];
3847
+ export type GetApiMarketplaceResponses = {
3848
+ /**
3849
+ * Success
3850
+ */
3851
+ 200: {
3852
+ items: Array<{
3853
+ id: string;
3854
+ name: string;
3855
+ version: string;
3856
+ description?: string;
3857
+ icon?: string;
3858
+ author?: string;
3859
+ homepage?: string;
3860
+ category?: string;
3861
+ tags: Array<string>;
3862
+ nodes?: Array<{
3863
+ id: string;
3864
+ label?: string;
3865
+ symbol?: string;
3866
+ description?: string;
3867
+ inputs?: {
3868
+ [key: string]: unknown;
3869
+ };
3870
+ outputs?: {
3871
+ [key: string]: unknown;
3872
+ };
3873
+ defaults?: {
3874
+ [key: string]: unknown;
3875
+ };
3876
+ connections?: Array<string>;
3877
+ }>;
3878
+ installed: boolean;
3879
+ scope?: 'user' | 'group' | 'org' | 'public';
3880
+ permissions?: Array<{
3881
+ resource: string;
3882
+ access: string;
3883
+ }>;
3884
+ }>;
3885
+ total: number;
3886
+ offset: number;
3887
+ limit: number;
3888
+ facets: {
3889
+ categories: Array<string>;
3890
+ tags: Array<string>;
3891
+ };
3892
+ };
3893
+ };
3894
+ export type GetApiMarketplaceResponse = GetApiMarketplaceResponses[keyof GetApiMarketplaceResponses];
3895
+ export type GetApiMarketplacePluginsByIdData = {
3896
+ body?: never;
3897
+ path: {
3898
+ id: string;
3899
+ };
3900
+ query?: {
3901
+ q?: string;
3902
+ offset?: number;
3903
+ limit?: number;
3904
+ scope?: string;
3905
+ };
3906
+ url: '/api/marketplace/plugins/{id}';
3907
+ };
3908
+ export type GetApiMarketplacePluginsByIdErrors = {
3909
+ /**
3910
+ * Error
3911
+ */
3912
+ 404: {
3913
+ error: string;
3914
+ };
3915
+ };
3916
+ export type GetApiMarketplacePluginsByIdError = GetApiMarketplacePluginsByIdErrors[keyof GetApiMarketplacePluginsByIdErrors];
3917
+ export type GetApiMarketplacePluginsByIdResponses = {
3918
+ /**
3919
+ * Success
3920
+ */
3921
+ 200: {
3922
+ id: string;
3923
+ name: string;
3924
+ version: string;
3925
+ description?: string;
3926
+ icon?: string;
3927
+ author?: string;
3928
+ homepage?: string;
3929
+ license?: string;
3930
+ source: 'marketplace';
3931
+ nodeCount: number;
3932
+ category?: string;
3933
+ tags: Array<string>;
3934
+ nodes: Array<{
3935
+ id: string;
3936
+ label?: string;
3937
+ symbol?: string;
3938
+ description?: string;
3939
+ inputs?: {
3940
+ [key: string]: unknown;
3941
+ };
3942
+ outputs?: {
3943
+ [key: string]: unknown;
3944
+ };
3945
+ defaults?: {
3946
+ [key: string]: unknown;
3947
+ };
3948
+ connections?: Array<string>;
3949
+ }>;
3950
+ connections?: {
3951
+ [key: string]: {
3952
+ label: string;
3953
+ description?: string;
3954
+ fields: {
3955
+ [key: string]: {
3956
+ label: string;
3957
+ description?: string;
3958
+ secret?: boolean;
3959
+ required?: boolean;
3960
+ };
3961
+ };
3962
+ };
3963
+ };
3964
+ installed: boolean;
3965
+ scope: Array<'user' | 'group' | 'org' | 'public'>;
3966
+ permissions: Array<{
3967
+ resource: string;
3968
+ access: string;
3969
+ }>;
3970
+ nodesTotal: number;
3971
+ nodesOffset: number;
3972
+ nodesLimit: number;
3973
+ attachedProjects: Array<unknown>;
3974
+ };
3975
+ };
3976
+ export type GetApiMarketplacePluginsByIdResponse = GetApiMarketplacePluginsByIdResponses[keyof GetApiMarketplacePluginsByIdResponses];
3977
+ export type GetApiPluginsData = {
3978
+ body?: never;
3979
+ path?: never;
3980
+ query?: {
3981
+ global?: 'true';
3982
+ fields?: string;
3983
+ };
3984
+ url: '/api/plugins';
3985
+ };
3986
+ export type GetApiPluginsResponses = {
3987
+ /**
3988
+ * Success
3989
+ */
3990
+ 200: Array<{
3991
+ id: string;
3992
+ name: string;
3993
+ version: string;
3994
+ description?: string;
3995
+ icon?: string;
3996
+ author?: string;
3997
+ homepage?: string;
3998
+ license?: string;
3999
+ source: string;
4000
+ nodeCount: number;
4001
+ category?: string;
4002
+ tags: Array<string>;
4003
+ nodes?: Array<{
4004
+ id: string;
4005
+ label?: string;
4006
+ symbol?: string;
4007
+ description?: string;
4008
+ inputs?: {
4009
+ [key: string]: unknown;
4010
+ };
4011
+ outputs?: {
4012
+ [key: string]: unknown;
4013
+ };
4014
+ defaults?: {
4015
+ [key: string]: unknown;
4016
+ };
4017
+ connections?: Array<string>;
4018
+ }>;
4019
+ }>;
4020
+ };
4021
+ export type GetApiPluginsResponse = GetApiPluginsResponses[keyof GetApiPluginsResponses];
4022
+ export type GetApiPluginsSearchData = {
4023
+ body?: never;
4024
+ path?: never;
4025
+ query?: {
4026
+ q?: string;
4027
+ offset?: number;
4028
+ limit?: number;
4029
+ global?: 'true';
4030
+ fields?: string;
4031
+ };
4032
+ url: '/api/plugins/search';
4033
+ };
4034
+ export type GetApiPluginsSearchResponses = {
4035
+ /**
4036
+ * Success
4037
+ */
4038
+ 200: {
4039
+ items: Array<{
4040
+ id: string;
4041
+ name: string;
4042
+ version: string;
4043
+ description?: string;
4044
+ icon?: string;
4045
+ author?: string;
4046
+ homepage?: string;
4047
+ license?: string;
4048
+ source: string;
4049
+ nodeCount: number;
4050
+ category?: string;
4051
+ tags: Array<string>;
4052
+ nodes?: Array<{
4053
+ id: string;
4054
+ label?: string;
4055
+ symbol?: string;
4056
+ description?: string;
4057
+ inputs?: {
4058
+ [key: string]: unknown;
4059
+ };
4060
+ outputs?: {
4061
+ [key: string]: unknown;
4062
+ };
4063
+ defaults?: {
4064
+ [key: string]: unknown;
4065
+ };
4066
+ connections?: Array<string>;
4067
+ }>;
4068
+ }>;
4069
+ total: number;
4070
+ offset: number;
4071
+ limit: number;
4072
+ };
4073
+ };
4074
+ export type GetApiPluginsSearchResponse = GetApiPluginsSearchResponses[keyof GetApiPluginsSearchResponses];
4075
+ export type GetApiPluginsNodesData = {
4076
+ body?: never;
4077
+ path?: never;
4078
+ query?: {
4079
+ q?: string;
4080
+ offset?: number;
4081
+ limit?: number;
4082
+ global?: 'true';
4083
+ };
4084
+ url: '/api/plugins/nodes';
4085
+ };
4086
+ export type GetApiPluginsNodesErrors = {
4087
+ /**
4088
+ * Error
4089
+ */
4090
+ 403: {
4091
+ error: string;
4092
+ };
4093
+ };
4094
+ export type GetApiPluginsNodesError = GetApiPluginsNodesErrors[keyof GetApiPluginsNodesErrors];
4095
+ export type GetApiPluginsNodesResponses = {
4096
+ /**
4097
+ * Success
4098
+ */
4099
+ 200: {
4100
+ items: Array<{
4101
+ id: string;
4102
+ label?: string;
4103
+ symbol?: string;
4104
+ description?: string;
4105
+ inputs?: {
4106
+ [key: string]: unknown;
4107
+ };
4108
+ outputs?: {
4109
+ [key: string]: unknown;
4110
+ };
4111
+ defaults?: {
4112
+ [key: string]: unknown;
4113
+ };
4114
+ connections?: Array<string>;
4115
+ pluginId: string;
4116
+ pluginName: string;
4117
+ pluginVersion: string;
4118
+ }>;
4119
+ total: number;
4120
+ offset: number;
4121
+ limit: number;
4122
+ };
4123
+ };
4124
+ export type GetApiPluginsNodesResponse = GetApiPluginsNodesResponses[keyof GetApiPluginsNodesResponses];
4125
+ export type GetApiPluginsByPluginIdData = {
4126
+ body?: never;
4127
+ path: {
4128
+ pluginId: string;
4129
+ };
4130
+ query?: {
4131
+ global?: 'true';
4132
+ q?: string;
4133
+ offset?: number;
4134
+ limit?: number;
4135
+ };
4136
+ url: '/api/plugins/{pluginId}';
4137
+ };
4138
+ export type GetApiPluginsByPluginIdErrors = {
4139
+ /**
4140
+ * Error
4141
+ */
4142
+ 404: {
4143
+ error: string;
4144
+ };
4145
+ };
4146
+ export type GetApiPluginsByPluginIdError = GetApiPluginsByPluginIdErrors[keyof GetApiPluginsByPluginIdErrors];
4147
+ export type GetApiPluginsByPluginIdResponses = {
4148
+ /**
4149
+ * Success
4150
+ */
4151
+ 200: {
4152
+ id: string;
4153
+ name: string;
4154
+ version: string;
4155
+ description?: string;
4156
+ icon?: string;
4157
+ author?: string;
4158
+ homepage?: string;
4159
+ license?: string;
4160
+ source: string;
4161
+ nodeCount: number;
4162
+ category?: string;
4163
+ tags: Array<string>;
4164
+ nodes: Array<{
4165
+ id: string;
4166
+ label?: string;
4167
+ symbol?: string;
4168
+ description?: string;
4169
+ inputs?: {
4170
+ [key: string]: unknown;
4171
+ };
4172
+ outputs?: {
4173
+ [key: string]: unknown;
4174
+ };
4175
+ defaults?: {
4176
+ [key: string]: unknown;
4177
+ };
4178
+ connections?: Array<string>;
4179
+ language?: string;
4180
+ command: string;
4181
+ icon?: string;
4182
+ trigger?: boolean;
4183
+ env?: Array<string>;
4184
+ }>;
4185
+ installed: true;
4186
+ connections?: {
4187
+ [key: string]: {
4188
+ label: string;
4189
+ description?: string;
4190
+ fields: {
4191
+ [key: string]: {
4192
+ label: string;
4193
+ description?: string;
4194
+ secret?: boolean;
4195
+ required?: boolean;
4196
+ };
4197
+ };
4198
+ };
4199
+ };
4200
+ scope: Array<'user' | 'group' | 'org' | 'public'>;
4201
+ permissions: Array<{
4202
+ resource: string;
4203
+ access: string;
4204
+ }>;
4205
+ nodesTotal: number;
4206
+ nodesOffset: number;
4207
+ nodesLimit: number;
4208
+ attachedProjects: Array<{
4209
+ id: string;
4210
+ name: string;
4211
+ path?: string;
4212
+ }>;
4213
+ };
4214
+ };
4215
+ export type GetApiPluginsByPluginIdResponse = GetApiPluginsByPluginIdResponses[keyof GetApiPluginsByPluginIdResponses];
4216
+ export type PostApiPluginsByPluginIdNodesByNodeIdAddData = {
4217
+ body: {
4218
+ instanceId?: string;
4219
+ workflowId?: string;
4220
+ draft?: boolean;
4221
+ position?: {
4222
+ x: number;
4223
+ y: number;
4224
+ };
4225
+ };
4226
+ path: {
4227
+ pluginId: string;
4228
+ nodeId: string;
4229
+ };
4230
+ query?: never;
4231
+ url: '/api/plugins/{pluginId}/nodes/{nodeId}/add';
4232
+ };
4233
+ export type PostApiPluginsByPluginIdNodesByNodeIdAddErrors = {
4234
+ /**
4235
+ * Error
4236
+ */
4237
+ 400: {
4238
+ error: string;
4239
+ };
4240
+ /**
4241
+ * Error
4242
+ */
4243
+ 404: {
4244
+ error: string;
4245
+ };
4246
+ /**
4247
+ * Error
4248
+ */
4249
+ 409: {
4250
+ error: string;
4251
+ };
4252
+ };
4253
+ export type PostApiPluginsByPluginIdNodesByNodeIdAddError = PostApiPluginsByPluginIdNodesByNodeIdAddErrors[keyof PostApiPluginsByPluginIdNodesByNodeIdAddErrors];
4254
+ export type PostApiPluginsByPluginIdNodesByNodeIdAddResponses = {
4255
+ /**
4256
+ * Success
4257
+ */
4258
+ 200: {
4259
+ instanceId: string;
4260
+ node: {
4261
+ role?: 'entry' | 'step';
4262
+ symbol?: string;
4263
+ description?: string;
4264
+ id: string;
4265
+ language?: string;
4266
+ icon?: string;
4267
+ label?: string;
4268
+ inputs?: {
4269
+ [key: string]: unknown;
4270
+ };
4271
+ outputs?: {
4272
+ [key: string]: unknown;
4273
+ };
4274
+ sourceExpressions?: {
4275
+ [key: string]: string;
4276
+ };
4277
+ kind?: 'function' | 'class' | 'service' | 'const';
4278
+ setup?: {
4279
+ [key: string]: unknown;
4280
+ };
4281
+ provides?: Array<string>;
4282
+ runtime?: {
4283
+ timeout_ms?: number;
4284
+ retries?: number;
4285
+ retry_backoff_ms?: number;
4286
+ concurrency?: number;
4287
+ async?: boolean;
4288
+ };
4289
+ command?: string;
4290
+ disabled?: boolean;
4291
+ position?: {
4292
+ x: number;
4293
+ y: number;
4294
+ };
4295
+ scope?: 'user' | 'group' | 'org' | 'public';
4296
+ owner?: string;
4297
+ expressions?: {
4298
+ [key: string]: string;
4299
+ };
4300
+ bindings?: {
4301
+ [key: string]: {
4302
+ kind: 'literal';
4303
+ value?: unknown;
4304
+ } | {
4305
+ kind: 'symbol';
4306
+ symbol: string;
4307
+ value?: unknown;
4308
+ };
4309
+ };
4310
+ };
4311
+ };
4312
+ };
4313
+ export type PostApiPluginsByPluginIdNodesByNodeIdAddResponse = PostApiPluginsByPluginIdNodesByNodeIdAddResponses[keyof PostApiPluginsByPluginIdNodesByNodeIdAddResponses];
4314
+ export type GetApiMarketplaceAnalyticsData = {
4315
+ body?: never;
4316
+ path?: never;
4317
+ query?: never;
4318
+ url: '/api/marketplace/analytics';
4319
+ };
4320
+ export type GetApiMarketplaceAnalyticsErrors = {
4321
+ /**
4322
+ * Error
4323
+ */
4324
+ 400: {
4325
+ error: string;
4326
+ };
4327
+ };
4328
+ export type GetApiMarketplaceAnalyticsError = GetApiMarketplaceAnalyticsErrors[keyof GetApiMarketplaceAnalyticsErrors];
4329
+ export type GetApiMarketplaceAnalyticsResponses = {
4330
+ /**
4331
+ * Success
4332
+ */
4333
+ 200: {
4334
+ summary: {
4335
+ pluginCount: number;
4336
+ installs: number;
4337
+ activeInstalls: number;
4338
+ invokes: number;
4339
+ errors: number;
4340
+ attempts: number;
4341
+ activeRate: number;
4342
+ reliability: number;
4343
+ };
4344
+ plugins: Array<{
4345
+ pluginId: string;
4346
+ installs: number;
4347
+ activeInstalls: number;
4348
+ invokes: number;
4349
+ errors: number;
4350
+ attempts: number;
4351
+ errorRate: number;
4352
+ activityShare: number;
4353
+ }>;
4354
+ };
4355
+ };
4356
+ export type GetApiMarketplaceAnalyticsResponse = GetApiMarketplaceAnalyticsResponses[keyof GetApiMarketplaceAnalyticsResponses];
4357
+ export type GetApiTemplatesData = {
4358
+ body?: never;
4359
+ path?: never;
4360
+ query?: never;
4361
+ url: '/api/templates';
4362
+ };
4363
+ export type GetApiTemplatesResponses = {
4364
+ /**
4365
+ * Success
4366
+ */
4367
+ 200: Array<{
4368
+ id: string;
4369
+ name: string;
4370
+ description: string;
4371
+ nodeCount: number;
4372
+ }>;
4373
+ };
4374
+ export type GetApiTemplatesResponse = GetApiTemplatesResponses[keyof GetApiTemplatesResponses];
4375
+ export type GetApiNativeNodesData = {
4376
+ body?: never;
4377
+ path?: never;
4378
+ query?: never;
4379
+ url: '/api/native-nodes';
4380
+ };
4381
+ export type GetApiNativeNodesResponses = {
4382
+ /**
4383
+ * Success
4384
+ */
4385
+ 200: Array<{
4386
+ id: string;
4387
+ label: string;
4388
+ symbol?: string;
4389
+ category: 'math' | 'flow' | 'data' | 'text' | 'logic' | 'datetime' | 'code' | 'console' | 'integration';
4390
+ description: string;
4391
+ icon: string;
4392
+ params?: {
4393
+ [key: string]: unknown;
4394
+ };
4395
+ defaultParams?: {
4396
+ [key: string]: unknown;
4397
+ };
4398
+ inputs: {
4399
+ [key: string]: unknown;
4400
+ };
4401
+ outputs: {
4402
+ [key: string]: unknown;
4403
+ };
4404
+ }>;
4405
+ };
4406
+ export type GetApiNativeNodesResponse = GetApiNativeNodesResponses[keyof GetApiNativeNodesResponses];
4407
+ export type PostApiNativeNodesByCatalogIdMaterializeData = {
4408
+ body: {
4409
+ workflowId?: string;
4410
+ draft?: boolean;
4411
+ instanceId?: string;
4412
+ language?: 'typescript';
4413
+ position?: {
4414
+ x: number;
4415
+ y: number;
4416
+ };
4417
+ params?: {
4418
+ [key: string]: unknown;
4419
+ };
4420
+ };
4421
+ path: {
4422
+ catalogId: string;
4423
+ };
4424
+ query?: never;
4425
+ url: '/api/native-nodes/{catalogId}/materialize';
4426
+ };
4427
+ export type PostApiNativeNodesByCatalogIdMaterializeErrors = {
4428
+ /**
4429
+ * Error
4430
+ */
4431
+ 400: {
4432
+ error: string;
4433
+ };
4434
+ /**
4435
+ * Error
4436
+ */
4437
+ 403: {
4438
+ error: string;
4439
+ };
4440
+ /**
4441
+ * Error
4442
+ */
4443
+ 404: {
4444
+ error: string;
4445
+ };
4446
+ /**
4447
+ * Error
4448
+ */
4449
+ 409: {
4450
+ error: string;
4451
+ };
4452
+ };
4453
+ export type PostApiNativeNodesByCatalogIdMaterializeError = PostApiNativeNodesByCatalogIdMaterializeErrors[keyof PostApiNativeNodesByCatalogIdMaterializeErrors];
4454
+ export type PostApiNativeNodesByCatalogIdMaterializeResponses = {
4455
+ /**
4456
+ * Success
4457
+ */
4458
+ 200: {
4459
+ role: 'entry' | 'step';
4460
+ ok: true;
4461
+ instanceId: string;
4462
+ filePath: string;
4463
+ artifactPath?: string;
4464
+ command: string;
4465
+ language: 'typescript';
4466
+ signature: {
4467
+ language: string;
4468
+ command: string;
4469
+ sourceExpressions?: {
4470
+ [key: string]: string;
4471
+ };
4472
+ sourceExcerpt?: {
4473
+ path: string;
4474
+ start: number;
4475
+ end: number;
4476
+ line: number;
4477
+ column: number;
4478
+ content: string;
4479
+ };
4480
+ defaults?: {
4481
+ [key: string]: unknown;
4482
+ };
4483
+ requiredEnv?: Array<string>;
4484
+ workflowId?: string;
4485
+ kind?: 'function' | 'class' | 'service' | 'const';
4486
+ cwd?: string;
4487
+ inputs?: {
4488
+ [key: string]: unknown;
4489
+ };
4490
+ outputs?: {
4491
+ [key: string]: unknown;
4492
+ };
4493
+ setup?: {
4494
+ [key: string]: unknown;
4495
+ };
4496
+ checksum?: string;
4497
+ orphaned?: boolean;
4498
+ service?: {
4499
+ host: string;
4500
+ method?: string;
4501
+ lifecycle: 'invocation' | 'workflow-run' | 'worker';
4502
+ };
4503
+ };
4504
+ presentation: {
4505
+ icon?: string;
4506
+ label?: string;
4507
+ symbol?: string;
4508
+ description?: string;
4509
+ color?: string;
4510
+ position?: {
4511
+ x: number;
4512
+ y: number;
4513
+ };
4514
+ };
4515
+ };
4516
+ };
4517
+ export type PostApiNativeNodesByCatalogIdMaterializeResponse = PostApiNativeNodesByCatalogIdMaterializeResponses[keyof PostApiNativeNodesByCatalogIdMaterializeResponses];
4518
+ export type GetApiWorkspacesData = {
4519
+ body?: never;
4520
+ path?: never;
4521
+ query?: never;
4522
+ url: '/api/workspaces';
4523
+ };
4524
+ export type GetApiWorkspacesErrors = {
4525
+ /**
4526
+ * Error
4527
+ */
4528
+ 502: {
4529
+ error: string;
4530
+ };
4531
+ };
4532
+ export type GetApiWorkspacesError = GetApiWorkspacesErrors[keyof GetApiWorkspacesErrors];
4533
+ export type GetApiWorkspacesResponses = {
4534
+ /**
4535
+ * Success
4536
+ */
4537
+ 200: {
4538
+ personal: {
4539
+ kind: 'user';
4540
+ id: string;
4541
+ name: string;
4542
+ };
4543
+ orgs: Array<{
4544
+ kind: 'org';
4545
+ id: string;
4546
+ name: string;
4547
+ role: string;
4548
+ permissions: {
4549
+ [key: string]: boolean;
4550
+ };
4551
+ teams: Array<{
4552
+ kind: 'team';
4553
+ id: string;
4554
+ name: string;
4555
+ role: string;
4556
+ permissions: {
4557
+ [key: string]: boolean;
4558
+ };
4559
+ }>;
4560
+ }>;
4561
+ remote: boolean;
4562
+ };
4563
+ };
4564
+ export type GetApiWorkspacesResponse = GetApiWorkspacesResponses[keyof GetApiWorkspacesResponses];
4565
+ export type GetApiWorkspacesPermissionsData = {
4566
+ body?: never;
4567
+ path?: never;
4568
+ query?: never;
4569
+ url: '/api/workspaces/permissions';
4570
+ };
4571
+ export type GetApiWorkspacesPermissionsErrors = {
4572
+ /**
4573
+ * Error
4574
+ */
4575
+ 400: {
4576
+ error: string;
4577
+ };
4578
+ };
4579
+ export type GetApiWorkspacesPermissionsError = GetApiWorkspacesPermissionsErrors[keyof GetApiWorkspacesPermissionsErrors];
4580
+ export type GetApiWorkspacesPermissionsResponses = {
4581
+ /**
4582
+ * Success
4583
+ */
4584
+ 200: {
4585
+ role: string;
4586
+ actions: Array<string>;
4587
+ permissions: {
4588
+ [key: string]: boolean;
4589
+ };
4590
+ projectId?: string | null;
4591
+ capabilities: {
4592
+ collaboration: boolean;
4593
+ };
4594
+ };
4595
+ };
4596
+ export type GetApiWorkspacesPermissionsResponse = GetApiWorkspacesPermissionsResponses[keyof GetApiWorkspacesPermissionsResponses];
4597
+ //# sourceMappingURL=types.gen.d.ts.map