@blaxel/core 0.2.0-dev1

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 (86) hide show
  1. package/LICENSE +21 -0
  2. package/dist/agents/index.d.ts +15 -0
  3. package/dist/agents/index.js +114 -0
  4. package/dist/authentication/apikey.d.ts +10 -0
  5. package/dist/authentication/apikey.js +24 -0
  6. package/dist/authentication/clientcredentials.d.ts +15 -0
  7. package/dist/authentication/clientcredentials.js +70 -0
  8. package/dist/authentication/credentials.d.ts +6 -0
  9. package/dist/authentication/credentials.js +17 -0
  10. package/dist/authentication/deviceMode.d.ts +15 -0
  11. package/dist/authentication/deviceMode.js +70 -0
  12. package/dist/authentication/index.d.ts +3 -0
  13. package/dist/authentication/index.js +63 -0
  14. package/dist/authentication/types.d.ts +9 -0
  15. package/dist/authentication/types.js +2 -0
  16. package/dist/cache/index.d.ts +1 -0
  17. package/dist/cache/index.js +26 -0
  18. package/dist/client/authentication.d.ts +25 -0
  19. package/dist/client/authentication.js +15 -0
  20. package/dist/client/client.d.ts +2 -0
  21. package/dist/client/client.gen.d.ts +12 -0
  22. package/dist/client/client.gen.js +8 -0
  23. package/dist/client/client.js +17 -0
  24. package/dist/client/index.d.ts +2 -0
  25. package/dist/client/index.js +19 -0
  26. package/dist/client/interceptors.d.ts +3 -0
  27. package/dist/client/interceptors.js +17 -0
  28. package/dist/client/sdk.gen.d.ts +410 -0
  29. package/dist/client/sdk.gen.js +1436 -0
  30. package/dist/client/types.gen.d.ts +3534 -0
  31. package/dist/client/types.gen.js +4 -0
  32. package/dist/common/autoload.d.ts +3 -0
  33. package/dist/common/autoload.js +27 -0
  34. package/dist/common/env.d.ts +5 -0
  35. package/dist/common/env.js +43 -0
  36. package/dist/common/errors.d.ts +1 -0
  37. package/dist/common/errors.js +17 -0
  38. package/dist/common/internal.d.ts +2 -0
  39. package/dist/common/internal.js +19 -0
  40. package/dist/common/logger.d.ts +1 -0
  41. package/dist/common/logger.js +4 -0
  42. package/dist/common/node.d.ts +3 -0
  43. package/dist/common/node.js +14 -0
  44. package/dist/common/settings.d.ts +26 -0
  45. package/dist/common/settings.js +84 -0
  46. package/dist/index.d.ts +14 -0
  47. package/dist/index.js +30 -0
  48. package/dist/mcp/client.d.ts +19 -0
  49. package/dist/mcp/client.js +151 -0
  50. package/dist/mcp/index.d.ts +2 -0
  51. package/dist/mcp/index.js +18 -0
  52. package/dist/mcp/server.d.ts +24 -0
  53. package/dist/mcp/server.js +213 -0
  54. package/dist/models/index.d.ts +8 -0
  55. package/dist/models/index.js +31 -0
  56. package/dist/sandbox/action.d.ts +18 -0
  57. package/dist/sandbox/action.js +74 -0
  58. package/dist/sandbox/client/client.gen.d.ts +12 -0
  59. package/dist/sandbox/client/client.gen.js +6 -0
  60. package/dist/sandbox/client/index.d.ts +2 -0
  61. package/dist/sandbox/client/index.js +19 -0
  62. package/dist/sandbox/client/sdk.gen.d.ts +83 -0
  63. package/dist/sandbox/client/sdk.gen.js +153 -0
  64. package/dist/sandbox/client/types.gen.d.ts +410 -0
  65. package/dist/sandbox/client/types.gen.js +4 -0
  66. package/dist/sandbox/filesystem.d.ts +18 -0
  67. package/dist/sandbox/filesystem.js +121 -0
  68. package/dist/sandbox/index.d.ts +1 -0
  69. package/dist/sandbox/index.js +17 -0
  70. package/dist/sandbox/network.d.ts +5 -0
  71. package/dist/sandbox/network.js +10 -0
  72. package/dist/sandbox/process.d.ts +12 -0
  73. package/dist/sandbox/process.js +61 -0
  74. package/dist/sandbox/sandbox.d.ts +23 -0
  75. package/dist/sandbox/sandbox.js +92 -0
  76. package/dist/telemetry/telemetry.d.ts +58 -0
  77. package/dist/telemetry/telemetry.js +59 -0
  78. package/dist/tools/index.d.ts +10 -0
  79. package/dist/tools/index.js +52 -0
  80. package/dist/tools/mcpTool.d.ts +21 -0
  81. package/dist/tools/mcpTool.js +193 -0
  82. package/dist/tools/types.d.ts +8 -0
  83. package/dist/tools/types.js +2 -0
  84. package/dist/tools/zodSchema.d.ts +9 -0
  85. package/dist/tools/zodSchema.js +46 -0
  86. package/package.json +76 -0
@@ -0,0 +1,3534 @@
1
+ /**
2
+ * ACL
3
+ */
4
+ export type Acl = TimeFields & {
5
+ /**
6
+ * ACL id
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Resource ID
11
+ */
12
+ resource_id?: string;
13
+ /**
14
+ * Resource type
15
+ */
16
+ resource_type?: string;
17
+ /**
18
+ * Role
19
+ */
20
+ role?: string;
21
+ /**
22
+ * Subject ID
23
+ */
24
+ subject_id?: string;
25
+ /**
26
+ * Subject type
27
+ */
28
+ subject_type?: string;
29
+ /**
30
+ * Workspace name
31
+ */
32
+ workspace?: string;
33
+ };
34
+ /**
35
+ * Agent
36
+ */
37
+ export type Agent = {
38
+ events?: CoreEvents;
39
+ metadata?: Metadata;
40
+ spec?: AgentSpec;
41
+ /**
42
+ * Agent status
43
+ */
44
+ status?: string;
45
+ };
46
+ /**
47
+ * Agent specification
48
+ */
49
+ export type AgentSpec = CoreSpec & {
50
+ /**
51
+ * Description, small description computed from the prompt
52
+ */
53
+ description?: string;
54
+ functions?: FunctionsList;
55
+ /**
56
+ * Knowledgebase Name
57
+ */
58
+ knowledgebase?: string;
59
+ /**
60
+ * Model name
61
+ */
62
+ model?: string;
63
+ /**
64
+ * Prompt, describe what your agent does
65
+ */
66
+ prompt?: string;
67
+ repository?: Repository;
68
+ /**
69
+ * Store id
70
+ */
71
+ storeId?: string;
72
+ triggers?: Triggers;
73
+ };
74
+ /**
75
+ * Long-lived API key for accessing Blaxel
76
+ */
77
+ export type ApiKey = TimeFields & OwnerFields & {
78
+ /**
79
+ * Api key
80
+ */
81
+ apiKey?: string;
82
+ /**
83
+ * Duration until expiration (in seconds)
84
+ */
85
+ expires_in?: string;
86
+ /**
87
+ * Api key id, to retrieve it from the API
88
+ */
89
+ id?: string;
90
+ /**
91
+ * Name for the API key
92
+ */
93
+ name?: string;
94
+ /**
95
+ * User subject identifier
96
+ */
97
+ sub?: string;
98
+ /**
99
+ * Subject type
100
+ */
101
+ sub_type?: string;
102
+ };
103
+ /**
104
+ * Array of metrics
105
+ */
106
+ export type ArrayMetric = Array<Metric>;
107
+ /**
108
+ * Configuration
109
+ */
110
+ export type Configuration = {
111
+ /**
112
+ * Continents
113
+ */
114
+ continents?: Array<unknown>;
115
+ /**
116
+ * Countries
117
+ */
118
+ countries?: Array<unknown>;
119
+ /**
120
+ * Private locations managed with blaxel operator
121
+ */
122
+ privateLocations?: Array<unknown>;
123
+ };
124
+ /**
125
+ * Continent
126
+ */
127
+ export type Continent = {
128
+ /**
129
+ * Continent display name
130
+ */
131
+ displayName?: string;
132
+ /**
133
+ * Continent code
134
+ */
135
+ name?: string;
136
+ };
137
+ /**
138
+ * Core event
139
+ */
140
+ export type CoreEvent = {
141
+ /**
142
+ * Event message
143
+ */
144
+ message?: string;
145
+ /**
146
+ * RevisionID link to the event
147
+ */
148
+ revision?: string;
149
+ /**
150
+ * Event status
151
+ */
152
+ status?: string;
153
+ /**
154
+ * Event time
155
+ */
156
+ time?: string;
157
+ /**
158
+ * Event type
159
+ */
160
+ type?: string;
161
+ };
162
+ /**
163
+ * Core events
164
+ */
165
+ export type CoreEvents = Array<CoreEvent>;
166
+ /**
167
+ * Core specification
168
+ */
169
+ export type CoreSpec = {
170
+ /**
171
+ * Optional configurations for the object
172
+ */
173
+ configurations?: {
174
+ key?: SpecConfiguration;
175
+ };
176
+ /**
177
+ * Enable or disable the resource
178
+ */
179
+ enabled?: boolean;
180
+ flavors?: Flavors;
181
+ integrationConnections?: IntegrationConnectionsList;
182
+ policies?: PoliciesList;
183
+ privateClusters?: ModelPrivateCluster;
184
+ revision?: RevisionConfiguration;
185
+ runtime?: Runtime;
186
+ /**
187
+ * Sandbox mode
188
+ */
189
+ sandbox?: boolean;
190
+ };
191
+ /**
192
+ * Configuration
193
+ */
194
+ export type Country = {
195
+ /**
196
+ * Country display name
197
+ */
198
+ displayName?: string;
199
+ /**
200
+ * Country code
201
+ */
202
+ name?: string;
203
+ };
204
+ /**
205
+ * Entrypoint of the artifact
206
+ */
207
+ export type Entrypoint = {
208
+ /**
209
+ * Args of the entrypoint
210
+ */
211
+ args?: Array<unknown>;
212
+ /**
213
+ * Command of the entrypoint
214
+ */
215
+ command?: string;
216
+ /**
217
+ * Env of the entrypoint
218
+ */
219
+ env?: {
220
+ [key: string]: unknown;
221
+ };
222
+ };
223
+ /**
224
+ * A type of hardware available for deployments
225
+ */
226
+ export type Flavor = {
227
+ /**
228
+ * Flavor name (e.g. t4)
229
+ */
230
+ name?: string;
231
+ /**
232
+ * Flavor type (e.g. cpu, gpu)
233
+ */
234
+ type?: string;
235
+ };
236
+ /**
237
+ * Types of hardware available for deployments
238
+ */
239
+ export type Flavors = Array<Flavor>;
240
+ /**
241
+ * Form of the artifact
242
+ */
243
+ export type Form = {
244
+ /**
245
+ * Config of the artifact
246
+ */
247
+ config?: {
248
+ [key: string]: unknown;
249
+ };
250
+ /**
251
+ * OAuth of the artifact
252
+ */
253
+ oauth?: {
254
+ [key: string]: unknown;
255
+ };
256
+ /**
257
+ * Secrets of the artifact
258
+ */
259
+ secrets?: {
260
+ [key: string]: unknown;
261
+ };
262
+ };
263
+ /**
264
+ * Function
265
+ */
266
+ export type _Function = {
267
+ events?: CoreEvents;
268
+ metadata?: Metadata;
269
+ spec?: FunctionSpec;
270
+ /**
271
+ * Function status
272
+ */
273
+ status?: string;
274
+ };
275
+ /**
276
+ * Function kit
277
+ */
278
+ export type FunctionKit = {
279
+ /**
280
+ * Description of the function kit, very important for the agent to work with your kit
281
+ */
282
+ description?: string;
283
+ /**
284
+ * The kit name, very important for the agent to work with your kit
285
+ */
286
+ name?: string;
287
+ schema?: FunctionSchema;
288
+ };
289
+ /**
290
+ * Function schema
291
+ */
292
+ export type FunctionSchema = {
293
+ /**
294
+ * List of schemas that this schema extends
295
+ */
296
+ allOf?: Array<unknown>;
297
+ /**
298
+ * List of possible schemas, any of which this schema could be
299
+ */
300
+ anyOf?: Array<unknown>;
301
+ /**
302
+ * Description of the schema
303
+ */
304
+ description?: string;
305
+ /**
306
+ * Enum values
307
+ */
308
+ enum?: Array<string>;
309
+ /**
310
+ * Format of the schema
311
+ */
312
+ format?: string;
313
+ items?: FunctionSchema;
314
+ /**
315
+ * Maximum length for string types
316
+ */
317
+ maxLength?: number;
318
+ /**
319
+ * Maximum value for number types
320
+ */
321
+ maximum?: number;
322
+ /**
323
+ * Minimum length for string types
324
+ */
325
+ minLength?: number;
326
+ /**
327
+ * Minimum value for number types
328
+ */
329
+ minimum?: number;
330
+ /**
331
+ * Schema that this schema must not be
332
+ */
333
+ not?: {
334
+ [key: string]: unknown;
335
+ };
336
+ /**
337
+ * List of schemas, one of which this schema must be
338
+ */
339
+ oneOf?: Array<unknown>;
340
+ /**
341
+ * Pattern for string types
342
+ */
343
+ pattern?: string;
344
+ /**
345
+ * Properties of the schema
346
+ */
347
+ properties?: {
348
+ [key: string]: FunctionSchema;
349
+ };
350
+ /**
351
+ * Required properties of the schema
352
+ */
353
+ required?: Array<string>;
354
+ /**
355
+ * Title of the schema
356
+ */
357
+ title?: string;
358
+ /**
359
+ * Type of the schema
360
+ */
361
+ type?: string;
362
+ };
363
+ /**
364
+ * Helper type for AdditionalProperties which can be either a boolean or a schema
365
+ */
366
+ export type FunctionSchemaOrBool = {
367
+ [key: string]: unknown;
368
+ };
369
+ /**
370
+ * Function specification
371
+ */
372
+ export type FunctionSpec = CoreSpec & {
373
+ /**
374
+ * Function description, very important for the agent function to work with an LLM
375
+ */
376
+ description?: string;
377
+ /**
378
+ * Function kits
379
+ */
380
+ kit?: Array<FunctionKit>;
381
+ schema?: FunctionSchema;
382
+ };
383
+ export type FunctionsList = Array<string>;
384
+ /**
385
+ * Histogram bucket
386
+ */
387
+ export type HistogramBucket = {
388
+ /**
389
+ * Count
390
+ */
391
+ count?: number;
392
+ /**
393
+ * End
394
+ */
395
+ end?: number;
396
+ /**
397
+ * Start
398
+ */
399
+ start?: number;
400
+ };
401
+ /**
402
+ * Histogram stats
403
+ */
404
+ export type HistogramStats = {
405
+ /**
406
+ * Average request duration
407
+ */
408
+ average?: number;
409
+ /**
410
+ * P50 request duration
411
+ */
412
+ p50?: number;
413
+ /**
414
+ * P90 request duration
415
+ */
416
+ p90?: number;
417
+ /**
418
+ * P99 request duration
419
+ */
420
+ p99?: number;
421
+ };
422
+ /**
423
+ * Integration Connection
424
+ */
425
+ export type IntegrationConnection = {
426
+ metadata?: Metadata;
427
+ spec?: IntegrationConnectionSpec;
428
+ };
429
+ /**
430
+ * Integration connection specification
431
+ */
432
+ export type IntegrationConnectionSpec = {
433
+ /**
434
+ * Additional configuration for the integration
435
+ */
436
+ config?: {
437
+ [key: string]: string;
438
+ };
439
+ /**
440
+ * Integration type
441
+ */
442
+ integration?: string;
443
+ /**
444
+ * Sandbox mode
445
+ */
446
+ sandbox?: boolean;
447
+ /**
448
+ * Integration secret
449
+ */
450
+ secret?: {
451
+ [key: string]: string;
452
+ };
453
+ };
454
+ export type IntegrationConnectionsList = Array<string>;
455
+ /**
456
+ * Model obtained from an external authentication provider, such as HuggingFace, OpenAI, etc...
457
+ */
458
+ export type IntegrationModel = {
459
+ /**
460
+ * Provider model author
461
+ */
462
+ author?: string;
463
+ /**
464
+ * Provider model created at
465
+ */
466
+ created_at?: string;
467
+ /**
468
+ * Provider model downloads
469
+ */
470
+ downloads?: number;
471
+ /**
472
+ * Model endpoint URL
473
+ */
474
+ endpoint?: string;
475
+ /**
476
+ * Provider model ID
477
+ */
478
+ id?: string;
479
+ /**
480
+ * Provider model library name
481
+ */
482
+ library_name?: string;
483
+ /**
484
+ * Provider model likes
485
+ */
486
+ likes?: number;
487
+ /**
488
+ * Is the model private
489
+ */
490
+ model_private?: string;
491
+ /**
492
+ * Provider model name
493
+ */
494
+ name?: string;
495
+ /**
496
+ * Provider model pipeline tag
497
+ */
498
+ pipeline_tag?: string;
499
+ /**
500
+ * Provider model tags
501
+ */
502
+ tags?: Array<string>;
503
+ /**
504
+ * Provider model trending score
505
+ */
506
+ trending_score?: number;
507
+ };
508
+ /**
509
+ * Integration repository
510
+ */
511
+ export type IntegrationRepository = {
512
+ /**
513
+ * Repository ID
514
+ */
515
+ id?: string;
516
+ /**
517
+ * Whether the repository has Blaxel imports
518
+ */
519
+ isBl?: boolean;
520
+ /**
521
+ * Repository name
522
+ */
523
+ name?: string;
524
+ /**
525
+ * Repository owner
526
+ */
527
+ organization?: string;
528
+ /**
529
+ * Repository URL
530
+ */
531
+ url?: string;
532
+ };
533
+ /**
534
+ * Knowledgebase
535
+ */
536
+ export type Knowledgebase = {
537
+ events?: CoreEvents;
538
+ metadata?: Metadata;
539
+ spec?: KnowledgebaseSpec;
540
+ /**
541
+ * Knowledgebase status
542
+ */
543
+ status?: string;
544
+ };
545
+ /**
546
+ * Knowledgebase specification
547
+ */
548
+ export type KnowledgebaseSpec = {
549
+ /**
550
+ * Collection name
551
+ */
552
+ collectionName?: string;
553
+ /**
554
+ * Embedding model
555
+ */
556
+ embeddingModel?: string;
557
+ /**
558
+ * Embedding model type
559
+ */
560
+ embeddingModelType?: string;
561
+ /**
562
+ * Enable or disable the agent
563
+ */
564
+ enabled?: boolean;
565
+ integrationConnections?: IntegrationConnectionsList;
566
+ /**
567
+ * Options specific to the knowledge base
568
+ */
569
+ options?: {
570
+ [key: string]: string;
571
+ };
572
+ policies?: PoliciesList;
573
+ revision?: RevisionConfiguration;
574
+ /**
575
+ * Sandbox mode
576
+ */
577
+ sandbox?: boolean;
578
+ };
579
+ export type KnowledgebasesList = Array<string>;
580
+ /**
581
+ * Last N requests
582
+ */
583
+ export type LastNRequestsMetric = {
584
+ /**
585
+ * Timestamp
586
+ */
587
+ date?: string;
588
+ /**
589
+ * Status code
590
+ */
591
+ statusCode?: string;
592
+ /**
593
+ * Workload ID
594
+ */
595
+ workloadId?: string;
596
+ /**
597
+ * Workload type
598
+ */
599
+ workloadType?: string;
600
+ /**
601
+ * Workspace
602
+ */
603
+ workspace?: string;
604
+ };
605
+ /**
606
+ * Latency metrics
607
+ */
608
+ export type LatencyMetric = {
609
+ globalHistogram?: HistogramBucket;
610
+ globalStats?: HistogramStats;
611
+ histogramPerCode?: HistogramBucket;
612
+ statsPerCode?: HistogramStats;
613
+ };
614
+ /**
615
+ * Location availability for policies
616
+ */
617
+ export type LocationResponse = {
618
+ /**
619
+ * Continent of the location
620
+ */
621
+ continent?: string;
622
+ /**
623
+ * Country of the location
624
+ */
625
+ country?: string;
626
+ /**
627
+ * Hardware flavors available in the location
628
+ */
629
+ flavors?: Array<Flavor>;
630
+ /**
631
+ * Name of the location
632
+ */
633
+ location?: string;
634
+ /**
635
+ * Status of the location
636
+ */
637
+ status?: string;
638
+ };
639
+ /**
640
+ * Definition of an MCP from the MCP Hub
641
+ */
642
+ export type McpDefinition = TimeFields & {
643
+ /**
644
+ * Categories of the artifact
645
+ */
646
+ categories?: Array<unknown>;
647
+ /**
648
+ * If the artifact is coming soon
649
+ */
650
+ coming_soon?: boolean;
651
+ /**
652
+ * Description of the artifact
653
+ */
654
+ description?: string;
655
+ /**
656
+ * Display name of the artifact
657
+ */
658
+ displayName?: string;
659
+ /**
660
+ * If the artifact is enterprise
661
+ */
662
+ enterprise?: boolean;
663
+ /**
664
+ * Entrypoint of the artifact
665
+ */
666
+ entrypoint?: {
667
+ [key: string]: unknown;
668
+ };
669
+ /**
670
+ * Form of the artifact
671
+ */
672
+ form?: {
673
+ [key: string]: unknown;
674
+ };
675
+ /**
676
+ * Hidden secrets of the artifact
677
+ */
678
+ hiddenSecrets?: Array<string>;
679
+ /**
680
+ * Icon of the artifact
681
+ */
682
+ icon?: string;
683
+ /**
684
+ * Image of the artifact
685
+ */
686
+ image?: string;
687
+ /**
688
+ * Integration of the artifact
689
+ */
690
+ integration?: string;
691
+ /**
692
+ * Long description of the artifact
693
+ */
694
+ longDescription?: string;
695
+ /**
696
+ * Name of the artifact
697
+ */
698
+ name?: string;
699
+ /**
700
+ * URL of the artifact
701
+ */
702
+ url?: string;
703
+ };
704
+ /**
705
+ * Metrics for memory allocation
706
+ */
707
+ export type MemoryAllocationMetric = {
708
+ /**
709
+ * Total memory allocation in GB-seconds
710
+ */
711
+ totalAllocation?: number;
712
+ };
713
+ /**
714
+ * Metadata
715
+ */
716
+ export type Metadata = TimeFields & OwnerFields & {
717
+ /**
718
+ * Model display name
719
+ */
720
+ displayName?: string;
721
+ labels?: MetadataLabels;
722
+ /**
723
+ * Model name
724
+ */
725
+ name?: string;
726
+ /**
727
+ * Workspace name
728
+ */
729
+ workspace?: string;
730
+ };
731
+ /**
732
+ * Labels
733
+ */
734
+ export type MetadataLabels = {
735
+ [key: string]: string;
736
+ };
737
+ /**
738
+ * Metric
739
+ */
740
+ export type Metric = {
741
+ /**
742
+ * Metric value
743
+ */
744
+ rate?: number;
745
+ /**
746
+ * Metric value
747
+ */
748
+ requestTotal?: number;
749
+ /**
750
+ * Metric timestamp
751
+ */
752
+ timestamp?: string;
753
+ };
754
+ /**
755
+ * Metrics for resources
756
+ */
757
+ export type Metrics = {
758
+ /**
759
+ * Metrics for agents
760
+ */
761
+ agents?: unknown;
762
+ /**
763
+ * Metrics for functions
764
+ */
765
+ functions?: unknown;
766
+ /**
767
+ * Historical requests for all resources globally
768
+ */
769
+ inferenceGlobal?: Array<unknown>;
770
+ /**
771
+ * Historical requests for all resources globally
772
+ */
773
+ items?: Array<unknown>;
774
+ /**
775
+ * Metric value
776
+ */
777
+ lastNRequests?: number;
778
+ /**
779
+ * Metrics for models
780
+ */
781
+ models?: {
782
+ [key: string]: unknown;
783
+ };
784
+ /**
785
+ * Number of requests for all resources globally
786
+ */
787
+ requestTotal?: number;
788
+ /**
789
+ * Number of requests for all resources globally per code
790
+ */
791
+ requestTotalPerCode?: {
792
+ [key: string]: unknown;
793
+ };
794
+ /**
795
+ * Number of requests per second for all resources globally
796
+ */
797
+ rps?: number;
798
+ /**
799
+ * Number of requests per second for all resources globally per code
800
+ */
801
+ rpsPerCode?: {
802
+ [key: string]: unknown;
803
+ };
804
+ };
805
+ /**
806
+ * Logical object representing a model
807
+ */
808
+ export type Model = {
809
+ events?: CoreEvents;
810
+ metadata?: Metadata;
811
+ spec?: ModelSpec;
812
+ /**
813
+ * Model status
814
+ */
815
+ status?: string;
816
+ };
817
+ /**
818
+ * Private cluster where the model deployment is deployed
819
+ */
820
+ export type ModelPrivateCluster = {
821
+ /**
822
+ * The base url of the model in the private cluster
823
+ */
824
+ baseUrl?: string;
825
+ /**
826
+ * If true, the private cluster is available
827
+ */
828
+ enabled?: boolean;
829
+ /**
830
+ * The name of the private cluster
831
+ */
832
+ name?: string;
833
+ };
834
+ /**
835
+ * Model specification
836
+ */
837
+ export type ModelSpec = CoreSpec & unknown;
838
+ /**
839
+ * OAuth of the artifact
840
+ */
841
+ export type OAuth = {
842
+ /**
843
+ * Scope of the OAuth
844
+ */
845
+ scope?: Array<unknown>;
846
+ /**
847
+ * Type of the OAuth
848
+ */
849
+ type?: string;
850
+ };
851
+ /**
852
+ * Owner fields for Persistance
853
+ */
854
+ export type OwnerFields = {
855
+ /**
856
+ * The user or service account who created the resource
857
+ */
858
+ createdBy?: string;
859
+ /**
860
+ * The user or service account who updated the resource
861
+ */
862
+ updatedBy?: string;
863
+ };
864
+ /**
865
+ * Pending invitation in workspace
866
+ */
867
+ export type PendingInvitation = TimeFields & OwnerFields & {
868
+ /**
869
+ * User email
870
+ */
871
+ email?: string;
872
+ /**
873
+ * User sub
874
+ */
875
+ invitedBy?: string;
876
+ /**
877
+ * ACL role
878
+ */
879
+ role?: string;
880
+ /**
881
+ * Workspace name
882
+ */
883
+ workspace?: string;
884
+ };
885
+ /**
886
+ * Pending invitation accept
887
+ */
888
+ export type PendingInvitationAccept = {
889
+ /**
890
+ * User email
891
+ */
892
+ email?: string;
893
+ workspace?: Workspace;
894
+ };
895
+ /**
896
+ * Pending invitation in workspace
897
+ */
898
+ export type PendingInvitationRender = {
899
+ /**
900
+ * User email
901
+ */
902
+ email?: string;
903
+ /**
904
+ * Invitation date
905
+ */
906
+ invitedAt?: string;
907
+ invitedBy?: PendingInvitationRenderInvitedBy;
908
+ /**
909
+ * ACL role
910
+ */
911
+ role?: string;
912
+ workspace?: PendingInvitationRenderWorkspace;
913
+ workspaceDetails?: PendingInvitationWorkspaceDetails;
914
+ };
915
+ /**
916
+ * Invited by
917
+ */
918
+ export type PendingInvitationRenderInvitedBy = {
919
+ /**
920
+ * User email
921
+ */
922
+ email?: string;
923
+ /**
924
+ * User family name
925
+ */
926
+ family_name?: string;
927
+ /**
928
+ * User given name
929
+ */
930
+ given_name?: string;
931
+ /**
932
+ * User sub
933
+ */
934
+ sub?: string;
935
+ };
936
+ /**
937
+ * Workspace
938
+ */
939
+ export type PendingInvitationRenderWorkspace = {
940
+ /**
941
+ * Workspace display name
942
+ */
943
+ displayName?: string;
944
+ /**
945
+ * Workspace name
946
+ */
947
+ name?: string;
948
+ };
949
+ /**
950
+ * Workspace details
951
+ */
952
+ export type PendingInvitationWorkspaceDetails = {
953
+ /**
954
+ * List of user emails in the workspace
955
+ */
956
+ emails?: Array<unknown>;
957
+ /**
958
+ * Number of users in the workspace
959
+ */
960
+ user_number?: number;
961
+ };
962
+ /**
963
+ * Pod template specification
964
+ */
965
+ export type PodTemplateSpec = {
966
+ [key: string]: unknown;
967
+ };
968
+ export type PoliciesList = Array<string>;
969
+ /**
970
+ * Rule that controls how a deployment is made and served (e.g. location restrictions)
971
+ */
972
+ export type Policy = {
973
+ metadata?: Metadata;
974
+ spec?: PolicySpec;
975
+ };
976
+ /**
977
+ * Policy location
978
+ */
979
+ export type PolicyLocation = {
980
+ /**
981
+ * Policy location name
982
+ */
983
+ name?: string;
984
+ /**
985
+ * Policy location type
986
+ */
987
+ type?: string;
988
+ };
989
+ /**
990
+ * PolicyLocations is a local type that wraps a slice of Location
991
+ */
992
+ export type PolicyLocations = Array<PolicyLocation>;
993
+ /**
994
+ * PolicyMaxTokens is a local type that wraps a slice of PolicyMaxTokens
995
+ */
996
+ export type PolicyMaxTokens = {
997
+ /**
998
+ * Granularity
999
+ */
1000
+ granularity?: string;
1001
+ /**
1002
+ * Input
1003
+ */
1004
+ input?: number;
1005
+ /**
1006
+ * Output
1007
+ */
1008
+ output?: number;
1009
+ /**
1010
+ * RatioInputOverOutput
1011
+ */
1012
+ ratioInputOverOutput?: number;
1013
+ /**
1014
+ * Step
1015
+ */
1016
+ step?: number;
1017
+ /**
1018
+ * Total
1019
+ */
1020
+ total?: number;
1021
+ };
1022
+ /**
1023
+ * PolicyResourceType is a type of resource, e.g. model, function, etc.
1024
+ */
1025
+ export type PolicyResourceType = string;
1026
+ /**
1027
+ * PolicyResourceTypes is a local type that wraps a slice of PolicyResourceType
1028
+ */
1029
+ export type PolicyResourceTypes = Array<PolicyResourceType>;
1030
+ /**
1031
+ * Policy specification
1032
+ */
1033
+ export type PolicySpec = {
1034
+ flavors?: Flavors;
1035
+ locations?: PolicyLocations;
1036
+ maxTokens?: PolicyMaxTokens;
1037
+ resourceTypes?: PolicyResourceTypes;
1038
+ /**
1039
+ * Sandbox mode
1040
+ */
1041
+ sandbox?: boolean;
1042
+ /**
1043
+ * Policy type, can be location or flavor
1044
+ */
1045
+ type?: string;
1046
+ };
1047
+ /**
1048
+ * A port for a resource
1049
+ */
1050
+ export type Port = {
1051
+ /**
1052
+ * The name of the port
1053
+ */
1054
+ name?: string;
1055
+ /**
1056
+ * The protocol of the port
1057
+ */
1058
+ protocol?: string;
1059
+ /**
1060
+ * The target port of the port
1061
+ */
1062
+ target?: number;
1063
+ };
1064
+ /**
1065
+ * Set of ports for a resource
1066
+ */
1067
+ export type Ports = Array<Port>;
1068
+ /**
1069
+ * A private cluster where models can be located on.
1070
+ */
1071
+ export type PrivateCluster = TimeFields & OwnerFields & {
1072
+ /**
1073
+ * The private cluster's continent, used to determine the closest private cluster to serve inference requests based on the user's location
1074
+ */
1075
+ continent?: string;
1076
+ /**
1077
+ * The country where the private cluster is located, used to determine the closest private cluster to serve inference requests based on the user's location
1078
+ */
1079
+ country?: string;
1080
+ /**
1081
+ * The private cluster's display Name
1082
+ */
1083
+ displayName?: string;
1084
+ /**
1085
+ * Whether the private cluster is healthy or not, used to determine if the private cluster is ready to run inference
1086
+ */
1087
+ healthy?: boolean;
1088
+ /**
1089
+ * The private cluster's unique name
1090
+ */
1091
+ lastHealthCheckTime?: string;
1092
+ /**
1093
+ * The private cluster's latitude, used to determine the closest private cluster to serve inference requests based on the user's location
1094
+ */
1095
+ latitude?: string;
1096
+ /**
1097
+ * The private cluster's longitude, used to determine the closest private cluster to serve inference requests based on the user's location
1098
+ */
1099
+ longitude?: string;
1100
+ /**
1101
+ * The name of the private cluster, it must be unique
1102
+ */
1103
+ name?: string;
1104
+ /**
1105
+ * The service account (operator) that owns the cluster
1106
+ */
1107
+ ownedBy?: string;
1108
+ /**
1109
+ * The workspace the private cluster belongs to
1110
+ */
1111
+ workspace?: string;
1112
+ };
1113
+ /**
1114
+ * Private location available for policies
1115
+ */
1116
+ export type PrivateLocation = {
1117
+ /**
1118
+ * Location name
1119
+ */
1120
+ name?: string;
1121
+ };
1122
+ /**
1123
+ * Repository
1124
+ */
1125
+ export type Repository = {
1126
+ /**
1127
+ * Repository type
1128
+ */
1129
+ type?: string;
1130
+ /**
1131
+ * Repository URL
1132
+ */
1133
+ url?: string;
1134
+ };
1135
+ /**
1136
+ * Request duration over time metric
1137
+ */
1138
+ export type RequestDurationOverTimeMetric = {
1139
+ /**
1140
+ * Average request duration
1141
+ */
1142
+ average?: number;
1143
+ /**
1144
+ * P50 request duration
1145
+ */
1146
+ p50?: number;
1147
+ /**
1148
+ * P90 request duration
1149
+ */
1150
+ p90?: number;
1151
+ /**
1152
+ * P99 request duration
1153
+ */
1154
+ p99?: number;
1155
+ /**
1156
+ * Timestamp
1157
+ */
1158
+ timestamp?: string;
1159
+ };
1160
+ /**
1161
+ * Request duration over time metrics
1162
+ */
1163
+ export type RequestDurationOverTimeMetrics = {
1164
+ requestDurationOverTime?: RequestDurationOverTimeMetric;
1165
+ };
1166
+ /**
1167
+ * Request total by origin metric
1168
+ */
1169
+ export type RequestTotalByOriginMetric = {
1170
+ /**
1171
+ * Request total by origin
1172
+ */
1173
+ requestTotalByOrigin?: {
1174
+ [key: string]: unknown;
1175
+ };
1176
+ /**
1177
+ * Request total by origin and code
1178
+ */
1179
+ requestTotalByOriginAndCode?: {
1180
+ [key: string]: unknown;
1181
+ };
1182
+ };
1183
+ /**
1184
+ * Metrics for request total
1185
+ */
1186
+ export type RequestTotalMetric = {
1187
+ /**
1188
+ * Historical requests for all resources globally
1189
+ */
1190
+ items?: Array<unknown>;
1191
+ /**
1192
+ * Number of requests for all resources globally
1193
+ */
1194
+ requestTotal?: number;
1195
+ /**
1196
+ * Number of requests for all resources globally per code
1197
+ */
1198
+ requestTotalPerCode?: {
1199
+ [key: string]: unknown;
1200
+ };
1201
+ /**
1202
+ * Number of requests per second for all resources globally
1203
+ */
1204
+ rps?: number;
1205
+ /**
1206
+ * Number of requests for all resources globally
1207
+ */
1208
+ rpsPerCode?: {
1209
+ [key: string]: unknown;
1210
+ };
1211
+ };
1212
+ /**
1213
+ * Request total response data
1214
+ */
1215
+ export type RequestTotalResponseData = {
1216
+ /**
1217
+ * Request total
1218
+ */
1219
+ requestTotal?: number;
1220
+ /**
1221
+ * Status code
1222
+ */
1223
+ statusCode?: string;
1224
+ /**
1225
+ * Workload ID
1226
+ */
1227
+ workloadId?: string;
1228
+ /**
1229
+ * Workload type
1230
+ */
1231
+ workloadType?: string;
1232
+ /**
1233
+ * Workspace
1234
+ */
1235
+ workspace?: string;
1236
+ };
1237
+ /**
1238
+ * Log for a resource deployment (eg. model deployment, function deployment)
1239
+ */
1240
+ export type ResourceLog = {
1241
+ /**
1242
+ * Content of the log
1243
+ */
1244
+ message?: string;
1245
+ /**
1246
+ * Severity of the log
1247
+ */
1248
+ severity?: number;
1249
+ /**
1250
+ * The timestamp of the log
1251
+ */
1252
+ timestamp?: string;
1253
+ /**
1254
+ * Trace ID of the log
1255
+ */
1256
+ trace_id?: string;
1257
+ };
1258
+ /**
1259
+ * Metrics for a single resource deployment (eg. model deployment, function deployment)
1260
+ */
1261
+ export type ResourceMetrics = {
1262
+ inferenceErrorsGlobal?: ArrayMetric;
1263
+ inferenceGlobal?: ArrayMetric;
1264
+ lastNRequests?: ArrayMetric;
1265
+ latency?: LatencyMetric;
1266
+ latencyPrevious?: LatencyMetric;
1267
+ memoryAllocation?: MemoryAllocationMetric;
1268
+ modelTtft?: LatencyMetric;
1269
+ modelTtftOverTime?: TimeToFirstTokenOverTimeMetrics;
1270
+ requestDurationOverTime?: RequestDurationOverTimeMetrics;
1271
+ /**
1272
+ * Number of requests for the resource globally
1273
+ */
1274
+ requestTotal?: number;
1275
+ requestTotalByOrigin?: RequestTotalByOriginMetric;
1276
+ requestTotalByOriginPrevious?: RequestTotalByOriginMetric;
1277
+ /**
1278
+ * Number of requests for the resource globally per code
1279
+ */
1280
+ requestTotalPerCode?: {
1281
+ [key: string]: unknown;
1282
+ };
1283
+ /**
1284
+ * Number of requests for the resource globally per code for the previous period
1285
+ */
1286
+ requestTotalPerCodePrevious?: {
1287
+ [key: string]: unknown;
1288
+ };
1289
+ /**
1290
+ * Number of requests for the resource globally for the previous period
1291
+ */
1292
+ requestTotalPrevious?: number;
1293
+ /**
1294
+ * Number of requests per second for the resource globally
1295
+ */
1296
+ rps?: number;
1297
+ /**
1298
+ * Number of requests per second for the resource globally per code
1299
+ */
1300
+ rpsPerCode?: {
1301
+ [key: string]: unknown;
1302
+ };
1303
+ /**
1304
+ * Number of requests per second for the resource globally per code for the previous period
1305
+ */
1306
+ rpsPerCodePrevious?: {
1307
+ [key: string]: unknown;
1308
+ };
1309
+ /**
1310
+ * Number of requests per second for the resource globally for the previous period
1311
+ */
1312
+ rpsPrevious?: number;
1313
+ tokenRate?: TokenRateMetrics;
1314
+ tokenTotal?: TokenTotalMetric;
1315
+ };
1316
+ /**
1317
+ * Revision configuration
1318
+ */
1319
+ export type RevisionConfiguration = {
1320
+ /**
1321
+ * Active revision id
1322
+ */
1323
+ active?: string;
1324
+ /**
1325
+ * Canary revision id
1326
+ */
1327
+ canary?: string;
1328
+ /**
1329
+ * Canary revision percent
1330
+ */
1331
+ canaryPercent?: number;
1332
+ /**
1333
+ * Traffic percentage
1334
+ */
1335
+ traffic?: number;
1336
+ };
1337
+ /**
1338
+ * Revision metadata
1339
+ */
1340
+ export type RevisionMetadata = {
1341
+ /**
1342
+ * Is the revision active
1343
+ */
1344
+ active?: boolean;
1345
+ /**
1346
+ * Is the revision canary
1347
+ */
1348
+ canary?: boolean;
1349
+ /**
1350
+ * Revision created at
1351
+ */
1352
+ createdAt?: string;
1353
+ /**
1354
+ * Revision created by
1355
+ */
1356
+ createdBy?: string;
1357
+ /**
1358
+ * Revision ID
1359
+ */
1360
+ id?: string;
1361
+ /**
1362
+ * Is the revision previous active
1363
+ */
1364
+ previousActive?: boolean;
1365
+ /**
1366
+ * Status of the revision
1367
+ */
1368
+ status?: string;
1369
+ /**
1370
+ * Percent of traffic to the revision
1371
+ */
1372
+ trafficPercent?: number;
1373
+ };
1374
+ /**
1375
+ * Set of configurations for a deployment
1376
+ */
1377
+ export type Runtime = {
1378
+ /**
1379
+ * The arguments to pass to the deployment runtime
1380
+ */
1381
+ args?: Array<unknown>;
1382
+ /**
1383
+ * The command to run the deployment
1384
+ */
1385
+ command?: Array<unknown>;
1386
+ /**
1387
+ * The configuration for the deployment
1388
+ */
1389
+ configuration?: {
1390
+ [key: string]: unknown;
1391
+ };
1392
+ /**
1393
+ * The CPU for the deployment in cores, only available for private cluster
1394
+ */
1395
+ cpu?: number;
1396
+ /**
1397
+ * Endpoint Name of the model. In case of hf_private_endpoint, it is the endpoint name. In case of hf_public_endpoint, it is not used.
1398
+ */
1399
+ endpointName?: string;
1400
+ /**
1401
+ * The env variables to set in the deployment. Should be a list of Kubernetes EnvVar types
1402
+ */
1403
+ envs?: Array<unknown>;
1404
+ /**
1405
+ * The generation of the deployment
1406
+ */
1407
+ generation?: string;
1408
+ /**
1409
+ * The Docker image for the deployment
1410
+ */
1411
+ image?: string;
1412
+ /**
1413
+ * The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
1414
+ */
1415
+ maxScale?: number;
1416
+ /**
1417
+ * The memory for the deployment in MB
1418
+ */
1419
+ memory?: number;
1420
+ /**
1421
+ * The port to serve the metrics on
1422
+ */
1423
+ metricPort?: number;
1424
+ /**
1425
+ * The maximum number of replicas for the deployment.
1426
+ */
1427
+ minScale?: number;
1428
+ /**
1429
+ * The slug name of the origin model at HuggingFace.
1430
+ */
1431
+ model?: string;
1432
+ /**
1433
+ * The organization of the model
1434
+ */
1435
+ organization?: string;
1436
+ ports?: Ports;
1437
+ /**
1438
+ * The readiness probe. Should be a Kubernetes Probe type
1439
+ */
1440
+ startupProbe?: {
1441
+ [key: string]: unknown;
1442
+ };
1443
+ /**
1444
+ * The timeout for the deployment in seconds
1445
+ */
1446
+ timeout?: number;
1447
+ /**
1448
+ * The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
1449
+ */
1450
+ type?: string;
1451
+ };
1452
+ /**
1453
+ * Micro VM for running agentic tasks
1454
+ */
1455
+ export type Sandbox = {
1456
+ events?: CoreEvents;
1457
+ metadata?: Metadata;
1458
+ spec?: SandboxSpec;
1459
+ /**
1460
+ * Sandbox status
1461
+ */
1462
+ status?: string;
1463
+ };
1464
+ /**
1465
+ * Sandbox definition for admin store operations
1466
+ */
1467
+ export type SandboxDefinition = {
1468
+ /**
1469
+ * Categories of the defintion
1470
+ */
1471
+ categories?: Array<unknown>;
1472
+ /**
1473
+ * If the definition is coming soon
1474
+ */
1475
+ coming_soon?: boolean;
1476
+ /**
1477
+ * Description of the defintion
1478
+ */
1479
+ description?: string;
1480
+ /**
1481
+ * Display name of the definition
1482
+ */
1483
+ displayName?: string;
1484
+ /**
1485
+ * If the definition is enterprise
1486
+ */
1487
+ enterprise?: boolean;
1488
+ /**
1489
+ * Icon of the definition
1490
+ */
1491
+ icon?: string;
1492
+ /**
1493
+ * Image of the Sandbox definition
1494
+ */
1495
+ image?: string;
1496
+ /**
1497
+ * Long description of the defintion
1498
+ */
1499
+ longDescription?: string;
1500
+ /**
1501
+ * Memory of the Sandbox definition in MB
1502
+ */
1503
+ memory?: number;
1504
+ /**
1505
+ * Name of the artifact
1506
+ */
1507
+ name?: string;
1508
+ ports?: Ports;
1509
+ /**
1510
+ * URL of the definition
1511
+ */
1512
+ url?: string;
1513
+ };
1514
+ /**
1515
+ * Sandbox specification
1516
+ */
1517
+ export type SandboxSpec = CoreSpec & unknown;
1518
+ /**
1519
+ * Name of a Sandbox definition
1520
+ */
1521
+ export type SandboxStoreDefinitionName = unknown;
1522
+ /**
1523
+ * Micro VM for running agentic tasks
1524
+ */
1525
+ export type Sandboxes = {
1526
+ events?: CoreEvents;
1527
+ metadata?: Metadata;
1528
+ spec?: SandboxSpec;
1529
+ /**
1530
+ * Sandbox status
1531
+ */
1532
+ status?: string;
1533
+ };
1534
+ /**
1535
+ * Configuration for a serverless deployment
1536
+ */
1537
+ export type ServerlessConfig = {
1538
+ /**
1539
+ * The configuration for the deployment
1540
+ */
1541
+ configuration?: {
1542
+ [key: string]: unknown;
1543
+ };
1544
+ /**
1545
+ * The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
1546
+ */
1547
+ maxScale?: number;
1548
+ /**
1549
+ * The maximum number of replicas for the deployment.
1550
+ */
1551
+ minScale?: number;
1552
+ /**
1553
+ * The timeout for the deployment in seconds
1554
+ */
1555
+ timeout?: number;
1556
+ };
1557
+ /**
1558
+ * Configuration, this is a key value storage. In your object you can retrieve the value with config[key]
1559
+ */
1560
+ export type SpecConfiguration = {
1561
+ /**
1562
+ * ACconfiguration secret
1563
+ */
1564
+ secret?: boolean;
1565
+ /**
1566
+ * Configuration value
1567
+ */
1568
+ value?: string;
1569
+ };
1570
+ /**
1571
+ * Response when starting a Sandbox
1572
+ */
1573
+ export type StartSandbox = {
1574
+ /**
1575
+ * Human readable message about the start operation
1576
+ */
1577
+ message?: string;
1578
+ metadata?: Metadata;
1579
+ /**
1580
+ * Status of the Sandbox start operation
1581
+ */
1582
+ status?: string;
1583
+ };
1584
+ /**
1585
+ * Response when stopping a Sandbox
1586
+ */
1587
+ export type StopSandbox = {
1588
+ /**
1589
+ * Human readable message about the stop operation
1590
+ */
1591
+ message?: string;
1592
+ metadata?: Metadata;
1593
+ /**
1594
+ * Status of the Sandbox stop operation
1595
+ */
1596
+ status?: string;
1597
+ };
1598
+ /**
1599
+ * Store agent
1600
+ */
1601
+ export type StoreAgent = TimeFields & OwnerFields & {
1602
+ /**
1603
+ * Store agent configuration
1604
+ */
1605
+ configuration?: Array<StoreConfiguration>;
1606
+ /**
1607
+ * Store agent description
1608
+ */
1609
+ description?: string;
1610
+ /**
1611
+ * Store agent display name
1612
+ */
1613
+ displayName?: string;
1614
+ /**
1615
+ * Store agent image
1616
+ */
1617
+ image?: string;
1618
+ /**
1619
+ * Store agent labels
1620
+ */
1621
+ labels?: {
1622
+ [key: string]: unknown;
1623
+ };
1624
+ /**
1625
+ * Store agent name
1626
+ */
1627
+ name?: string;
1628
+ /**
1629
+ * Store agent prompt, this is to define what the agent does
1630
+ */
1631
+ prompt?: string;
1632
+ };
1633
+ /**
1634
+ * Store configuration for resources (eg: agent, function, etc)
1635
+ */
1636
+ export type StoreConfiguration = {
1637
+ /**
1638
+ * Available models for the configuration
1639
+ */
1640
+ availableModels?: Array<string>;
1641
+ /**
1642
+ * Store configuration description
1643
+ */
1644
+ description?: string;
1645
+ /**
1646
+ * Store configuration display name
1647
+ */
1648
+ displayName?: string;
1649
+ /**
1650
+ * Conditional rendering for the configuration, example: provider === 'openai'
1651
+ */
1652
+ if?: string;
1653
+ /**
1654
+ * Store configuration name
1655
+ */
1656
+ name?: string;
1657
+ options?: Array<StoreConfigurationOption>;
1658
+ /**
1659
+ * Store configuration required
1660
+ */
1661
+ required?: boolean;
1662
+ /**
1663
+ * Store configuration secret
1664
+ */
1665
+ secret?: boolean;
1666
+ /**
1667
+ * Store configuration type
1668
+ */
1669
+ type?: string;
1670
+ };
1671
+ /**
1672
+ * Store configuration options for a select type configuration
1673
+ */
1674
+ export type StoreConfigurationOption = {
1675
+ /**
1676
+ * Conditional rendering for the configuration option, example: provider === 'openai'
1677
+ */
1678
+ if?: string;
1679
+ /**
1680
+ * Store configuration option label
1681
+ */
1682
+ label?: string;
1683
+ /**
1684
+ * Store configuration option value
1685
+ */
1686
+ value?: string;
1687
+ };
1688
+ /**
1689
+ * Blaxel template
1690
+ */
1691
+ export type Template = {
1692
+ /**
1693
+ * Default branch of the template
1694
+ */
1695
+ defaultBranch?: string;
1696
+ /**
1697
+ * Description of the template
1698
+ */
1699
+ description?: string;
1700
+ /**
1701
+ * Number of downloads/clones of the repository
1702
+ */
1703
+ downloadCount?: number;
1704
+ /**
1705
+ * Number of forks the repository has
1706
+ */
1707
+ forksCount?: number;
1708
+ /**
1709
+ * URL to the template's icon
1710
+ */
1711
+ icon?: string;
1712
+ /**
1713
+ * URL to the template's icon in dark mode
1714
+ */
1715
+ iconDark?: string;
1716
+ /**
1717
+ * Name of the template
1718
+ */
1719
+ name?: string;
1720
+ /**
1721
+ * SHA of the variable
1722
+ */
1723
+ sha?: string;
1724
+ /**
1725
+ * Number of stars the repository has
1726
+ */
1727
+ starCount?: number;
1728
+ /**
1729
+ * Topic of the template
1730
+ */
1731
+ topics?: Array<string>;
1732
+ /**
1733
+ * URL of the template
1734
+ */
1735
+ url?: string;
1736
+ /**
1737
+ * Variables of the template
1738
+ */
1739
+ variables?: Array<TemplateVariable>;
1740
+ };
1741
+ /**
1742
+ * Blaxel template variable
1743
+ */
1744
+ export type TemplateVariable = {
1745
+ /**
1746
+ * Description of the variable
1747
+ */
1748
+ description?: string;
1749
+ /**
1750
+ * Integration of the variable
1751
+ */
1752
+ integration?: string;
1753
+ /**
1754
+ * Name of the variable
1755
+ */
1756
+ name?: string;
1757
+ /**
1758
+ * Path of the variable
1759
+ */
1760
+ path?: string;
1761
+ /**
1762
+ * Whether the variable is secret
1763
+ */
1764
+ secret?: boolean;
1765
+ };
1766
+ /**
1767
+ * Time fields for Persistance
1768
+ */
1769
+ export type TimeFields = {
1770
+ /**
1771
+ * The date and time when the resource was created
1772
+ */
1773
+ createdAt?: string;
1774
+ /**
1775
+ * The date and time when the resource was updated
1776
+ */
1777
+ updatedAt?: string;
1778
+ };
1779
+ /**
1780
+ * Time to first token over time metrics
1781
+ */
1782
+ export type TimeToFirstTokenOverTimeMetrics = {
1783
+ timeToFirstTokenOverTime?: RequestDurationOverTimeMetric;
1784
+ };
1785
+ /**
1786
+ * Token rate metric
1787
+ */
1788
+ export type TokenRateMetric = {
1789
+ /**
1790
+ * Model ID
1791
+ */
1792
+ model?: string;
1793
+ /**
1794
+ * Provider name
1795
+ */
1796
+ provider?: string;
1797
+ /**
1798
+ * Provider integration name
1799
+ */
1800
+ providerName?: string;
1801
+ /**
1802
+ * Timestamp
1803
+ */
1804
+ timestamp?: string;
1805
+ /**
1806
+ * Total tokens
1807
+ */
1808
+ tokenTotal?: number;
1809
+ /**
1810
+ * Trend
1811
+ */
1812
+ trend?: number;
1813
+ };
1814
+ /**
1815
+ * Token rate metrics
1816
+ */
1817
+ export type TokenRateMetrics = {
1818
+ tokenRate?: TokenRateMetric;
1819
+ tokenRateInput?: TokenRateMetric;
1820
+ tokenRateOutput?: TokenRateMetric;
1821
+ };
1822
+ /**
1823
+ * Token total metric
1824
+ */
1825
+ export type TokenTotalMetric = {
1826
+ /**
1827
+ * Average input token per request
1828
+ */
1829
+ averageTokenInputPerRequest?: number;
1830
+ /**
1831
+ * Average output token per request
1832
+ */
1833
+ averageTokenOutputPerRequest?: number;
1834
+ /**
1835
+ * Average token per request
1836
+ */
1837
+ averageTokenPerRequest?: number;
1838
+ /**
1839
+ * Total input tokens
1840
+ */
1841
+ tokenInput?: number;
1842
+ /**
1843
+ * Total output tokens
1844
+ */
1845
+ tokenOutput?: number;
1846
+ /**
1847
+ * Total tokens
1848
+ */
1849
+ tokenTotal?: number;
1850
+ };
1851
+ /**
1852
+ * Trace IDs response
1853
+ */
1854
+ export type TraceIdsResponse = {
1855
+ [key: string]: unknown;
1856
+ };
1857
+ /**
1858
+ * Trigger configuration
1859
+ */
1860
+ export type Trigger = {
1861
+ /**
1862
+ * The configuration of the trigger
1863
+ */
1864
+ configuration?: {
1865
+ [key: string]: unknown;
1866
+ };
1867
+ /**
1868
+ * The id of the trigger
1869
+ */
1870
+ id?: string;
1871
+ /**
1872
+ * The type of trigger, can be http or http-async
1873
+ */
1874
+ type?: string;
1875
+ };
1876
+ /**
1877
+ * Triggers to use your agent
1878
+ */
1879
+ export type Triggers = Array<Trigger>;
1880
+ /**
1881
+ * WebSocket connection details
1882
+ */
1883
+ export type WebsocketChannel = TimeFields & {
1884
+ /**
1885
+ * Unique connection ID
1886
+ */
1887
+ connection_id?: string;
1888
+ /**
1889
+ * Workspace the connection belongs to
1890
+ */
1891
+ workspace?: string;
1892
+ };
1893
+ /**
1894
+ * Workspace
1895
+ */
1896
+ export type Workspace = TimeFields & OwnerFields & {
1897
+ /**
1898
+ * Workspace account id
1899
+ */
1900
+ accountId?: string;
1901
+ /**
1902
+ * Workspace display name
1903
+ */
1904
+ displayName?: string;
1905
+ /**
1906
+ * Workspace labels
1907
+ */
1908
+ labels?: {
1909
+ [key: string]: unknown;
1910
+ };
1911
+ /**
1912
+ * Workspace name
1913
+ */
1914
+ name?: string;
1915
+ /**
1916
+ * Workspace write region
1917
+ */
1918
+ region?: string;
1919
+ runtime?: WorkspaceRuntime;
1920
+ };
1921
+ /**
1922
+ * Workspace runtime
1923
+ */
1924
+ export type WorkspaceRuntime = {
1925
+ /**
1926
+ * Workspace generation
1927
+ */
1928
+ generation?: string;
1929
+ };
1930
+ /**
1931
+ * Workspace user
1932
+ */
1933
+ export type WorkspaceUser = {
1934
+ /**
1935
+ * Whether the user has accepted the workspace invitation
1936
+ */
1937
+ accepted?: boolean;
1938
+ /**
1939
+ * Workspace user email
1940
+ */
1941
+ email?: string;
1942
+ /**
1943
+ * Whether the user's email has been verified
1944
+ */
1945
+ email_verified?: boolean;
1946
+ /**
1947
+ * Workspace user family name
1948
+ */
1949
+ family_name?: string;
1950
+ /**
1951
+ * Workspace user given name
1952
+ */
1953
+ given_name?: string;
1954
+ /**
1955
+ * Workspace user role
1956
+ */
1957
+ role?: string;
1958
+ /**
1959
+ * Workspace user identifier
1960
+ */
1961
+ sub?: string;
1962
+ };
1963
+ export type ListAgentsData = {
1964
+ body?: never;
1965
+ path?: never;
1966
+ query?: never;
1967
+ url: '/agents';
1968
+ };
1969
+ export type ListAgentsResponses = {
1970
+ /**
1971
+ * successful operation
1972
+ */
1973
+ 200: Array<Agent>;
1974
+ };
1975
+ export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
1976
+ export type CreateAgentData = {
1977
+ body: Agent;
1978
+ path?: never;
1979
+ query?: never;
1980
+ url: '/agents';
1981
+ };
1982
+ export type CreateAgentResponses = {
1983
+ /**
1984
+ * successful operation
1985
+ */
1986
+ 200: Agent;
1987
+ };
1988
+ export type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
1989
+ export type DeleteAgentData = {
1990
+ body?: never;
1991
+ path: {
1992
+ /**
1993
+ * Name of the agent
1994
+ */
1995
+ agentName: string;
1996
+ };
1997
+ query?: never;
1998
+ url: '/agents/{agentName}';
1999
+ };
2000
+ export type DeleteAgentResponses = {
2001
+ /**
2002
+ * successful operation
2003
+ */
2004
+ 200: Agent;
2005
+ };
2006
+ export type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
2007
+ export type GetAgentData = {
2008
+ body?: never;
2009
+ path: {
2010
+ /**
2011
+ * Name of the agent
2012
+ */
2013
+ agentName: string;
2014
+ };
2015
+ query?: never;
2016
+ url: '/agents/{agentName}';
2017
+ };
2018
+ export type GetAgentResponses = {
2019
+ /**
2020
+ * successful operation
2021
+ */
2022
+ 200: Agent;
2023
+ };
2024
+ export type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
2025
+ export type UpdateAgentData = {
2026
+ body: Agent;
2027
+ path: {
2028
+ /**
2029
+ * Name of the agent
2030
+ */
2031
+ agentName: string;
2032
+ };
2033
+ query?: never;
2034
+ url: '/agents/{agentName}';
2035
+ };
2036
+ export type UpdateAgentResponses = {
2037
+ /**
2038
+ * successful operation
2039
+ */
2040
+ 200: Agent;
2041
+ };
2042
+ export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
2043
+ export type ListAgentRevisionsData = {
2044
+ body?: never;
2045
+ path: {
2046
+ /**
2047
+ * Name of the agent
2048
+ */
2049
+ agentName: string;
2050
+ };
2051
+ query?: never;
2052
+ url: '/agents/{agentName}/revisions';
2053
+ };
2054
+ export type ListAgentRevisionsResponses = {
2055
+ /**
2056
+ * successful operation
2057
+ */
2058
+ 200: Array<RevisionMetadata>;
2059
+ };
2060
+ export type ListAgentRevisionsResponse = ListAgentRevisionsResponses[keyof ListAgentRevisionsResponses];
2061
+ export type GetConfigurationData = {
2062
+ body?: never;
2063
+ path?: never;
2064
+ query?: never;
2065
+ url: '/configuration';
2066
+ };
2067
+ export type GetConfigurationResponses = {
2068
+ /**
2069
+ * Configuration of the control plane
2070
+ */
2071
+ 200: Configuration;
2072
+ };
2073
+ export type GetConfigurationResponse = GetConfigurationResponses[keyof GetConfigurationResponses];
2074
+ export type ListFunctionsData = {
2075
+ body?: never;
2076
+ path?: never;
2077
+ query?: never;
2078
+ url: '/functions';
2079
+ };
2080
+ export type ListFunctionsResponses = {
2081
+ /**
2082
+ * successful operation
2083
+ */
2084
+ 200: Array<_Function>;
2085
+ };
2086
+ export type ListFunctionsResponse = ListFunctionsResponses[keyof ListFunctionsResponses];
2087
+ export type CreateFunctionData = {
2088
+ body: _Function;
2089
+ path?: never;
2090
+ query?: never;
2091
+ url: '/functions';
2092
+ };
2093
+ export type CreateFunctionResponses = {
2094
+ /**
2095
+ * successful operation
2096
+ */
2097
+ 200: _Function;
2098
+ };
2099
+ export type CreateFunctionResponse = CreateFunctionResponses[keyof CreateFunctionResponses];
2100
+ export type DeleteFunctionData = {
2101
+ body?: never;
2102
+ path: {
2103
+ /**
2104
+ * Name of the function
2105
+ */
2106
+ functionName: string;
2107
+ };
2108
+ query?: never;
2109
+ url: '/functions/{functionName}';
2110
+ };
2111
+ export type DeleteFunctionResponses = {
2112
+ /**
2113
+ * successful operation
2114
+ */
2115
+ 200: _Function;
2116
+ };
2117
+ export type DeleteFunctionResponse = DeleteFunctionResponses[keyof DeleteFunctionResponses];
2118
+ export type GetFunctionData = {
2119
+ body?: never;
2120
+ path: {
2121
+ /**
2122
+ * Name of the function
2123
+ */
2124
+ functionName: string;
2125
+ };
2126
+ query?: never;
2127
+ url: '/functions/{functionName}';
2128
+ };
2129
+ export type GetFunctionResponses = {
2130
+ /**
2131
+ * successful operation
2132
+ */
2133
+ 200: _Function;
2134
+ };
2135
+ export type GetFunctionResponse = GetFunctionResponses[keyof GetFunctionResponses];
2136
+ export type UpdateFunctionData = {
2137
+ body: _Function;
2138
+ path: {
2139
+ /**
2140
+ * Name of the function
2141
+ */
2142
+ functionName: string;
2143
+ };
2144
+ query?: never;
2145
+ url: '/functions/{functionName}';
2146
+ };
2147
+ export type UpdateFunctionResponses = {
2148
+ /**
2149
+ * successful operation
2150
+ */
2151
+ 200: _Function;
2152
+ };
2153
+ export type UpdateFunctionResponse = UpdateFunctionResponses[keyof UpdateFunctionResponses];
2154
+ export type ListFunctionRevisionsData = {
2155
+ body?: never;
2156
+ path: {
2157
+ /**
2158
+ * Name of the function
2159
+ */
2160
+ functionName: string;
2161
+ };
2162
+ query?: never;
2163
+ url: '/functions/{functionName}/revisions';
2164
+ };
2165
+ export type ListFunctionRevisionsResponses = {
2166
+ /**
2167
+ * successful operation
2168
+ */
2169
+ 200: Array<RevisionMetadata>;
2170
+ };
2171
+ export type ListFunctionRevisionsResponse = ListFunctionRevisionsResponses[keyof ListFunctionRevisionsResponses];
2172
+ export type GetIntegrationData = {
2173
+ body?: never;
2174
+ path: {
2175
+ /**
2176
+ * Name of the integration
2177
+ */
2178
+ integrationName: string;
2179
+ };
2180
+ query?: never;
2181
+ url: '/integrations/{integrationName}';
2182
+ };
2183
+ export type GetIntegrationResponses = {
2184
+ /**
2185
+ * successful operation
2186
+ */
2187
+ 200: unknown;
2188
+ };
2189
+ export type ListIntegrationConnectionsData = {
2190
+ body?: never;
2191
+ path?: never;
2192
+ query?: never;
2193
+ url: '/integrations/connections';
2194
+ };
2195
+ export type ListIntegrationConnectionsResponses = {
2196
+ /**
2197
+ * successful operation
2198
+ */
2199
+ 200: Array<IntegrationConnection>;
2200
+ };
2201
+ export type ListIntegrationConnectionsResponse = ListIntegrationConnectionsResponses[keyof ListIntegrationConnectionsResponses];
2202
+ export type CreateIntegrationConnectionData = {
2203
+ body: IntegrationConnection;
2204
+ path?: never;
2205
+ query?: never;
2206
+ url: '/integrations/connections';
2207
+ };
2208
+ export type CreateIntegrationConnectionResponses = {
2209
+ /**
2210
+ * successful operation
2211
+ */
2212
+ 200: IntegrationConnection;
2213
+ };
2214
+ export type CreateIntegrationConnectionResponse = CreateIntegrationConnectionResponses[keyof CreateIntegrationConnectionResponses];
2215
+ export type DeleteIntegrationConnectionData = {
2216
+ body?: never;
2217
+ path: {
2218
+ /**
2219
+ * Name of the integrationconnection
2220
+ */
2221
+ connectionName: string;
2222
+ };
2223
+ query?: never;
2224
+ url: '/integrations/connections/{connectionName}';
2225
+ };
2226
+ export type DeleteIntegrationConnectionResponses = {
2227
+ /**
2228
+ * successful operation
2229
+ */
2230
+ 200: IntegrationConnection;
2231
+ };
2232
+ export type DeleteIntegrationConnectionResponse = DeleteIntegrationConnectionResponses[keyof DeleteIntegrationConnectionResponses];
2233
+ export type GetIntegrationConnectionData = {
2234
+ body?: never;
2235
+ path: {
2236
+ /**
2237
+ * Name of the integrationconnection
2238
+ */
2239
+ connectionName: string;
2240
+ };
2241
+ query?: never;
2242
+ url: '/integrations/connections/{connectionName}';
2243
+ };
2244
+ export type GetIntegrationConnectionResponses = {
2245
+ /**
2246
+ * successful operation
2247
+ */
2248
+ 200: IntegrationConnection;
2249
+ };
2250
+ export type GetIntegrationConnectionResponse = GetIntegrationConnectionResponses[keyof GetIntegrationConnectionResponses];
2251
+ export type UpdateIntegrationConnectionData = {
2252
+ body: IntegrationConnection;
2253
+ path: {
2254
+ /**
2255
+ * Name of the integrationconnection
2256
+ */
2257
+ connectionName: string;
2258
+ };
2259
+ query?: never;
2260
+ url: '/integrations/connections/{connectionName}';
2261
+ };
2262
+ export type UpdateIntegrationConnectionResponses = {
2263
+ /**
2264
+ * successful operation
2265
+ */
2266
+ 200: IntegrationConnection;
2267
+ };
2268
+ export type UpdateIntegrationConnectionResponse = UpdateIntegrationConnectionResponses[keyof UpdateIntegrationConnectionResponses];
2269
+ export type GetIntegrationConnectionModelEndpointConfigurationsData = {
2270
+ body?: never;
2271
+ path: {
2272
+ /**
2273
+ * Name of the connection
2274
+ */
2275
+ connectionName: string;
2276
+ };
2277
+ query?: never;
2278
+ url: '/integrations/connections/{connectionName}/endpointConfigurations';
2279
+ };
2280
+ export type GetIntegrationConnectionModelEndpointConfigurationsResponses = {
2281
+ /**
2282
+ * successful operation
2283
+ */
2284
+ 200: unknown;
2285
+ };
2286
+ export type ListIntegrationConnectionModelsData = {
2287
+ body?: never;
2288
+ path: {
2289
+ /**
2290
+ * Name of the connection
2291
+ */
2292
+ connectionName: string;
2293
+ };
2294
+ query?: never;
2295
+ url: '/integrations/connections/{connectionName}/models';
2296
+ };
2297
+ export type ListIntegrationConnectionModelsResponses = {
2298
+ /**
2299
+ * successful operation
2300
+ */
2301
+ 200: unknown;
2302
+ };
2303
+ export type GetIntegrationConnectionModelData = {
2304
+ body?: never;
2305
+ path: {
2306
+ /**
2307
+ * Name of the connection
2308
+ */
2309
+ connectionName: string;
2310
+ /**
2311
+ * Model ID
2312
+ */
2313
+ modelId: string;
2314
+ };
2315
+ query?: never;
2316
+ url: '/integrations/connections/{connectionName}/models/{modelId}';
2317
+ };
2318
+ export type GetIntegrationConnectionModelResponses = {
2319
+ /**
2320
+ * successful operation
2321
+ */
2322
+ 200: unknown;
2323
+ };
2324
+ export type ListKnowledgebasesData = {
2325
+ body?: never;
2326
+ path?: never;
2327
+ query?: never;
2328
+ url: '/knowledgebases';
2329
+ };
2330
+ export type ListKnowledgebasesResponses = {
2331
+ /**
2332
+ * successful operation
2333
+ */
2334
+ 200: Array<Knowledgebase>;
2335
+ };
2336
+ export type ListKnowledgebasesResponse = ListKnowledgebasesResponses[keyof ListKnowledgebasesResponses];
2337
+ export type CreateKnowledgebaseData = {
2338
+ body: Knowledgebase;
2339
+ path?: never;
2340
+ query?: never;
2341
+ url: '/knowledgebases';
2342
+ };
2343
+ export type CreateKnowledgebaseResponses = {
2344
+ /**
2345
+ * successful operation
2346
+ */
2347
+ 200: Knowledgebase;
2348
+ };
2349
+ export type CreateKnowledgebaseResponse = CreateKnowledgebaseResponses[keyof CreateKnowledgebaseResponses];
2350
+ export type DeleteKnowledgebaseData = {
2351
+ body?: never;
2352
+ path: {
2353
+ /**
2354
+ * Name of the knowledgebase
2355
+ */
2356
+ knowledgebaseName: string;
2357
+ };
2358
+ query?: never;
2359
+ url: '/knowledgebases/{knowledgebaseName}';
2360
+ };
2361
+ export type DeleteKnowledgebaseResponses = {
2362
+ /**
2363
+ * successful operation
2364
+ */
2365
+ 200: Knowledgebase;
2366
+ };
2367
+ export type DeleteKnowledgebaseResponse = DeleteKnowledgebaseResponses[keyof DeleteKnowledgebaseResponses];
2368
+ export type GetKnowledgebaseData = {
2369
+ body?: never;
2370
+ path: {
2371
+ /**
2372
+ * Name of the knowledgebase
2373
+ */
2374
+ knowledgebaseName: string;
2375
+ };
2376
+ query?: never;
2377
+ url: '/knowledgebases/{knowledgebaseName}';
2378
+ };
2379
+ export type GetKnowledgebaseResponses = {
2380
+ /**
2381
+ * successful operation
2382
+ */
2383
+ 200: Knowledgebase;
2384
+ };
2385
+ export type GetKnowledgebaseResponse = GetKnowledgebaseResponses[keyof GetKnowledgebaseResponses];
2386
+ export type UpdateKnowledgebaseData = {
2387
+ body: Knowledgebase;
2388
+ path: {
2389
+ /**
2390
+ * Name of the knowledgebase
2391
+ */
2392
+ knowledgebaseName: string;
2393
+ };
2394
+ query?: never;
2395
+ url: '/knowledgebases/{knowledgebaseName}';
2396
+ };
2397
+ export type UpdateKnowledgebaseResponses = {
2398
+ /**
2399
+ * successful operation
2400
+ */
2401
+ 200: Knowledgebase;
2402
+ };
2403
+ export type UpdateKnowledgebaseResponse = UpdateKnowledgebaseResponses[keyof UpdateKnowledgebaseResponses];
2404
+ export type ListKnowledgebaseRevisionsData = {
2405
+ body?: never;
2406
+ path: {
2407
+ /**
2408
+ * Name of the knowledgebase
2409
+ */
2410
+ knowledgebaseName: string;
2411
+ };
2412
+ query?: never;
2413
+ url: '/knowledgebases/{knowledgebaseName}/revisions';
2414
+ };
2415
+ export type ListKnowledgebaseRevisionsResponses = {
2416
+ /**
2417
+ * successful operation
2418
+ */
2419
+ 200: Array<RevisionMetadata>;
2420
+ };
2421
+ export type ListKnowledgebaseRevisionsResponse = ListKnowledgebaseRevisionsResponses[keyof ListKnowledgebaseRevisionsResponses];
2422
+ export type ListLocationsData = {
2423
+ body?: never;
2424
+ path?: never;
2425
+ query?: never;
2426
+ url: '/locations';
2427
+ };
2428
+ export type ListLocationsResponses = {
2429
+ /**
2430
+ * successful operation
2431
+ */
2432
+ 200: Array<LocationResponse>;
2433
+ };
2434
+ export type ListLocationsResponse = ListLocationsResponses[keyof ListLocationsResponses];
2435
+ export type ListMcpHubDefinitionsData = {
2436
+ body?: never;
2437
+ path?: never;
2438
+ query?: never;
2439
+ url: '/mcp/hub';
2440
+ };
2441
+ export type ListMcpHubDefinitionsResponses = {
2442
+ /**
2443
+ * successful operation
2444
+ */
2445
+ 200: Array<McpDefinition>;
2446
+ };
2447
+ export type ListMcpHubDefinitionsResponse = ListMcpHubDefinitionsResponses[keyof ListMcpHubDefinitionsResponses];
2448
+ export type ListModelsData = {
2449
+ body?: never;
2450
+ path?: never;
2451
+ query?: never;
2452
+ url: '/models';
2453
+ };
2454
+ export type ListModelsResponses = {
2455
+ /**
2456
+ * successful operation
2457
+ */
2458
+ 200: Array<Model>;
2459
+ };
2460
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
2461
+ export type CreateModelData = {
2462
+ body: Model;
2463
+ path?: never;
2464
+ query?: never;
2465
+ url: '/models';
2466
+ };
2467
+ export type CreateModelResponses = {
2468
+ /**
2469
+ * successful operation
2470
+ */
2471
+ 200: Model;
2472
+ };
2473
+ export type CreateModelResponse = CreateModelResponses[keyof CreateModelResponses];
2474
+ export type DeleteModelData = {
2475
+ body?: never;
2476
+ path: {
2477
+ /**
2478
+ * Name of the model
2479
+ */
2480
+ modelName: string;
2481
+ };
2482
+ query?: never;
2483
+ url: '/models/{modelName}';
2484
+ };
2485
+ export type DeleteModelResponses = {
2486
+ /**
2487
+ * successful operation
2488
+ */
2489
+ 200: Model;
2490
+ };
2491
+ export type DeleteModelResponse = DeleteModelResponses[keyof DeleteModelResponses];
2492
+ export type GetModelData = {
2493
+ body?: never;
2494
+ path: {
2495
+ /**
2496
+ * Name of the model
2497
+ */
2498
+ modelName: string;
2499
+ };
2500
+ query?: never;
2501
+ url: '/models/{modelName}';
2502
+ };
2503
+ export type GetModelResponses = {
2504
+ /**
2505
+ * successful operation
2506
+ */
2507
+ 200: Model;
2508
+ };
2509
+ export type GetModelResponse = GetModelResponses[keyof GetModelResponses];
2510
+ export type UpdateModelData = {
2511
+ body: Model;
2512
+ path: {
2513
+ /**
2514
+ * Name of the model
2515
+ */
2516
+ modelName: string;
2517
+ };
2518
+ query?: never;
2519
+ url: '/models/{modelName}';
2520
+ };
2521
+ export type UpdateModelResponses = {
2522
+ /**
2523
+ * successful operation
2524
+ */
2525
+ 200: Model;
2526
+ };
2527
+ export type UpdateModelResponse = UpdateModelResponses[keyof UpdateModelResponses];
2528
+ export type ListModelRevisionsData = {
2529
+ body?: never;
2530
+ path: {
2531
+ /**
2532
+ * Name of the model
2533
+ */
2534
+ modelName: string;
2535
+ };
2536
+ query?: never;
2537
+ url: '/models/{modelName}/revisions';
2538
+ };
2539
+ export type ListModelRevisionsResponses = {
2540
+ /**
2541
+ * successful operation
2542
+ */
2543
+ 200: Array<RevisionMetadata>;
2544
+ };
2545
+ export type ListModelRevisionsResponse = ListModelRevisionsResponses[keyof ListModelRevisionsResponses];
2546
+ export type ListPoliciesData = {
2547
+ body?: never;
2548
+ path?: never;
2549
+ query?: never;
2550
+ url: '/policies';
2551
+ };
2552
+ export type ListPoliciesResponses = {
2553
+ /**
2554
+ * successful operation
2555
+ */
2556
+ 200: Array<Policy>;
2557
+ };
2558
+ export type ListPoliciesResponse = ListPoliciesResponses[keyof ListPoliciesResponses];
2559
+ export type CreatePolicyData = {
2560
+ body: Policy;
2561
+ path?: never;
2562
+ query?: never;
2563
+ url: '/policies';
2564
+ };
2565
+ export type CreatePolicyResponses = {
2566
+ /**
2567
+ * successful operation
2568
+ */
2569
+ 200: Policy;
2570
+ };
2571
+ export type CreatePolicyResponse = CreatePolicyResponses[keyof CreatePolicyResponses];
2572
+ export type DeletePolicyData = {
2573
+ body?: never;
2574
+ path: {
2575
+ /**
2576
+ * Name of the policy
2577
+ */
2578
+ policyName: string;
2579
+ };
2580
+ query?: never;
2581
+ url: '/policies/{policyName}';
2582
+ };
2583
+ export type DeletePolicyResponses = {
2584
+ /**
2585
+ * successful operation
2586
+ */
2587
+ 200: Policy;
2588
+ };
2589
+ export type DeletePolicyResponse = DeletePolicyResponses[keyof DeletePolicyResponses];
2590
+ export type GetPolicyData = {
2591
+ body?: never;
2592
+ path: {
2593
+ /**
2594
+ * Name of the policy
2595
+ */
2596
+ policyName: string;
2597
+ };
2598
+ query?: never;
2599
+ url: '/policies/{policyName}';
2600
+ };
2601
+ export type GetPolicyResponses = {
2602
+ /**
2603
+ * successful operation
2604
+ */
2605
+ 200: Policy;
2606
+ };
2607
+ export type GetPolicyResponse = GetPolicyResponses[keyof GetPolicyResponses];
2608
+ export type UpdatePolicyData = {
2609
+ body: Policy;
2610
+ path: {
2611
+ /**
2612
+ * Name of the policy
2613
+ */
2614
+ policyName: string;
2615
+ };
2616
+ query?: never;
2617
+ url: '/policies/{policyName}';
2618
+ };
2619
+ export type UpdatePolicyResponses = {
2620
+ /**
2621
+ * successful operation
2622
+ */
2623
+ 200: Policy;
2624
+ };
2625
+ export type UpdatePolicyResponse = UpdatePolicyResponses[keyof UpdatePolicyResponses];
2626
+ export type ListPrivateClustersData = {
2627
+ body?: never;
2628
+ path?: never;
2629
+ query?: never;
2630
+ url: '/privateclusters';
2631
+ };
2632
+ export type ListPrivateClustersErrors = {
2633
+ /**
2634
+ * unauthorized
2635
+ */
2636
+ 401: unknown;
2637
+ /**
2638
+ * Forbidden
2639
+ */
2640
+ 403: unknown;
2641
+ /**
2642
+ * workspace not found
2643
+ */
2644
+ 404: unknown;
2645
+ };
2646
+ export type ListPrivateClustersResponses = {
2647
+ /**
2648
+ * successful operation
2649
+ */
2650
+ 200: Array<PrivateCluster>;
2651
+ };
2652
+ export type ListPrivateClustersResponse = ListPrivateClustersResponses[keyof ListPrivateClustersResponses];
2653
+ export type CreatePrivateClusterData = {
2654
+ body?: never;
2655
+ path?: never;
2656
+ query?: never;
2657
+ url: '/privateclusters';
2658
+ };
2659
+ export type CreatePrivateClusterErrors = {
2660
+ /**
2661
+ * unauthorized
2662
+ */
2663
+ 401: unknown;
2664
+ /**
2665
+ * Forbidden
2666
+ */
2667
+ 403: unknown;
2668
+ };
2669
+ export type CreatePrivateClusterResponses = {
2670
+ /**
2671
+ * successful operation
2672
+ */
2673
+ 200: PrivateCluster;
2674
+ };
2675
+ export type CreatePrivateClusterResponse = CreatePrivateClusterResponses[keyof CreatePrivateClusterResponses];
2676
+ export type DeletePrivateClusterData = {
2677
+ body?: never;
2678
+ path: {
2679
+ /**
2680
+ * Name of the private cluster
2681
+ */
2682
+ privateClusterName: string;
2683
+ };
2684
+ query?: never;
2685
+ url: '/privateclusters/{privateClusterName}';
2686
+ };
2687
+ export type DeletePrivateClusterErrors = {
2688
+ /**
2689
+ * unauthorized
2690
+ */
2691
+ 401: unknown;
2692
+ /**
2693
+ * Forbidden
2694
+ */
2695
+ 403: unknown;
2696
+ };
2697
+ export type DeletePrivateClusterResponses = {
2698
+ /**
2699
+ * successful operation
2700
+ */
2701
+ 200: PrivateCluster;
2702
+ };
2703
+ export type DeletePrivateClusterResponse = DeletePrivateClusterResponses[keyof DeletePrivateClusterResponses];
2704
+ export type GetPrivateClusterData = {
2705
+ body?: never;
2706
+ path: {
2707
+ /**
2708
+ * Name of the private cluster
2709
+ */
2710
+ privateClusterName: string;
2711
+ };
2712
+ query?: never;
2713
+ url: '/privateclusters/{privateClusterName}';
2714
+ };
2715
+ export type GetPrivateClusterErrors = {
2716
+ /**
2717
+ * unauthorized
2718
+ */
2719
+ 401: unknown;
2720
+ /**
2721
+ * Forbidden
2722
+ */
2723
+ 403: unknown;
2724
+ /**
2725
+ * private cluster not found
2726
+ */
2727
+ 404: unknown;
2728
+ };
2729
+ export type GetPrivateClusterResponses = {
2730
+ /**
2731
+ * successful operation
2732
+ */
2733
+ 200: PrivateCluster;
2734
+ };
2735
+ export type GetPrivateClusterResponse = GetPrivateClusterResponses[keyof GetPrivateClusterResponses];
2736
+ export type UpdatePrivateClusterData = {
2737
+ body?: never;
2738
+ path: {
2739
+ /**
2740
+ * Name of the private cluster
2741
+ */
2742
+ privateClusterName: string;
2743
+ };
2744
+ query?: never;
2745
+ url: '/privateclusters/{privateClusterName}';
2746
+ };
2747
+ export type UpdatePrivateClusterErrors = {
2748
+ /**
2749
+ * unauthorized
2750
+ */
2751
+ 401: unknown;
2752
+ /**
2753
+ * Forbidden
2754
+ */
2755
+ 403: unknown;
2756
+ };
2757
+ export type UpdatePrivateClusterResponses = {
2758
+ /**
2759
+ * successful operation
2760
+ */
2761
+ 200: PrivateCluster;
2762
+ };
2763
+ export type UpdatePrivateClusterResponse = UpdatePrivateClusterResponses[keyof UpdatePrivateClusterResponses];
2764
+ export type GetPrivateClusterHealthData = {
2765
+ body?: never;
2766
+ path: {
2767
+ /**
2768
+ * Name of the private cluster
2769
+ */
2770
+ privateClusterName: string;
2771
+ };
2772
+ query?: never;
2773
+ url: '/privateclusters/{privateClusterName}/health';
2774
+ };
2775
+ export type GetPrivateClusterHealthErrors = {
2776
+ /**
2777
+ * unauthorized
2778
+ */
2779
+ 401: unknown;
2780
+ /**
2781
+ * Forbidden
2782
+ */
2783
+ 403: unknown;
2784
+ };
2785
+ export type GetPrivateClusterHealthResponses = {
2786
+ /**
2787
+ * successful operation
2788
+ */
2789
+ 200: unknown;
2790
+ };
2791
+ export type UpdatePrivateClusterHealthData = {
2792
+ body?: never;
2793
+ path: {
2794
+ /**
2795
+ * Name of the private cluster
2796
+ */
2797
+ privateClusterName: string;
2798
+ };
2799
+ query?: never;
2800
+ url: '/privateclusters/{privateClusterName}/health';
2801
+ };
2802
+ export type UpdatePrivateClusterHealthErrors = {
2803
+ /**
2804
+ * unauthorized
2805
+ */
2806
+ 401: unknown;
2807
+ /**
2808
+ * Forbidden
2809
+ */
2810
+ 403: unknown;
2811
+ };
2812
+ export type UpdatePrivateClusterHealthResponses = {
2813
+ /**
2814
+ * successful operation
2815
+ */
2816
+ 200: unknown;
2817
+ };
2818
+ export type ListAllPendingInvitationsData = {
2819
+ body?: never;
2820
+ path?: never;
2821
+ query?: never;
2822
+ url: '/profile/invitations';
2823
+ };
2824
+ export type ListAllPendingInvitationsErrors = {
2825
+ /**
2826
+ * no pending invitations
2827
+ */
2828
+ 404: unknown;
2829
+ };
2830
+ export type ListAllPendingInvitationsResponses = {
2831
+ /**
2832
+ * successful operation
2833
+ */
2834
+ 200: Array<PendingInvitationRender>;
2835
+ };
2836
+ export type ListAllPendingInvitationsResponse = ListAllPendingInvitationsResponses[keyof ListAllPendingInvitationsResponses];
2837
+ export type ListSandboxHubDefinitionsData = {
2838
+ body?: never;
2839
+ path?: never;
2840
+ query?: never;
2841
+ url: '/sandbox/hub';
2842
+ };
2843
+ export type ListSandboxHubDefinitionsResponses = {
2844
+ /**
2845
+ * successful operation
2846
+ */
2847
+ 200: Array<SandboxDefinition>;
2848
+ };
2849
+ export type ListSandboxHubDefinitionsResponse = ListSandboxHubDefinitionsResponses[keyof ListSandboxHubDefinitionsResponses];
2850
+ export type ListSandboxesData = {
2851
+ body?: never;
2852
+ path?: never;
2853
+ query?: never;
2854
+ url: '/sandboxes';
2855
+ };
2856
+ export type ListSandboxesResponses = {
2857
+ /**
2858
+ * successful operation
2859
+ */
2860
+ 200: Array<Sandbox>;
2861
+ };
2862
+ export type ListSandboxesResponse = ListSandboxesResponses[keyof ListSandboxesResponses];
2863
+ export type CreateSandboxData = {
2864
+ body: Sandbox;
2865
+ path?: never;
2866
+ query?: never;
2867
+ url: '/sandboxes';
2868
+ };
2869
+ export type CreateSandboxResponses = {
2870
+ /**
2871
+ * successful operation
2872
+ */
2873
+ 200: Sandbox;
2874
+ };
2875
+ export type CreateSandboxResponse = CreateSandboxResponses[keyof CreateSandboxResponses];
2876
+ export type DeleteSandboxData = {
2877
+ body?: never;
2878
+ path: {
2879
+ /**
2880
+ * Name of the Sandbox
2881
+ */
2882
+ sandboxName: string;
2883
+ };
2884
+ query?: never;
2885
+ url: '/sandboxes/{sandboxName}';
2886
+ };
2887
+ export type DeleteSandboxResponses = {
2888
+ /**
2889
+ * successful operation
2890
+ */
2891
+ 200: Sandbox;
2892
+ };
2893
+ export type DeleteSandboxResponse = DeleteSandboxResponses[keyof DeleteSandboxResponses];
2894
+ export type GetSandboxData = {
2895
+ body?: never;
2896
+ path: {
2897
+ /**
2898
+ * Name of the Sandbox
2899
+ */
2900
+ sandboxName: string;
2901
+ };
2902
+ query?: never;
2903
+ url: '/sandboxes/{sandboxName}';
2904
+ };
2905
+ export type GetSandboxResponses = {
2906
+ /**
2907
+ * successful operation
2908
+ */
2909
+ 200: Sandbox;
2910
+ };
2911
+ export type GetSandboxResponse = GetSandboxResponses[keyof GetSandboxResponses];
2912
+ export type UpdateSandboxData = {
2913
+ body: Sandbox;
2914
+ path: {
2915
+ /**
2916
+ * Name of the Sandbox
2917
+ */
2918
+ sandboxName: string;
2919
+ };
2920
+ query?: never;
2921
+ url: '/sandboxes/{sandboxName}';
2922
+ };
2923
+ export type UpdateSandboxResponses = {
2924
+ /**
2925
+ * successful operation
2926
+ */
2927
+ 200: Sandbox;
2928
+ };
2929
+ export type UpdateSandboxResponse = UpdateSandboxResponses[keyof UpdateSandboxResponses];
2930
+ export type StartSandboxData = {
2931
+ body?: never;
2932
+ path: {
2933
+ /**
2934
+ * Name of the Sandbox
2935
+ */
2936
+ sandboxName: string;
2937
+ };
2938
+ query?: never;
2939
+ url: '/sandboxes/{sandboxName}/start';
2940
+ };
2941
+ export type StartSandboxErrors = {
2942
+ /**
2943
+ * Sandbox is already running
2944
+ */
2945
+ 409: unknown;
2946
+ };
2947
+ export type StartSandboxResponses = {
2948
+ /**
2949
+ * successful operation
2950
+ */
2951
+ 200: StartSandbox;
2952
+ };
2953
+ export type StartSandboxResponse = StartSandboxResponses[keyof StartSandboxResponses];
2954
+ export type StopSandboxData = {
2955
+ body?: never;
2956
+ path: {
2957
+ /**
2958
+ * Name of the Sandbox
2959
+ */
2960
+ sandboxName: string;
2961
+ };
2962
+ query?: never;
2963
+ url: '/sandboxes/{sandboxName}/stop';
2964
+ };
2965
+ export type StopSandboxErrors = {
2966
+ /**
2967
+ * Sandbox is not running
2968
+ */
2969
+ 409: unknown;
2970
+ };
2971
+ export type StopSandboxResponses = {
2972
+ /**
2973
+ * successful operation
2974
+ */
2975
+ 200: StopSandbox;
2976
+ };
2977
+ export type StopSandboxResponse = StopSandboxResponses[keyof StopSandboxResponses];
2978
+ export type GetWorkspaceServiceAccountsData = {
2979
+ body?: never;
2980
+ path?: never;
2981
+ query?: never;
2982
+ url: '/service_accounts';
2983
+ };
2984
+ export type GetWorkspaceServiceAccountsResponses = {
2985
+ /**
2986
+ * successful operation
2987
+ */
2988
+ 200: Array<{
2989
+ /**
2990
+ * Service account client ID
2991
+ */
2992
+ client_id?: string;
2993
+ /**
2994
+ * Creation timestamp
2995
+ */
2996
+ created_at?: string;
2997
+ /**
2998
+ * Service account description
2999
+ */
3000
+ description?: string;
3001
+ /**
3002
+ * Service account name
3003
+ */
3004
+ name?: string;
3005
+ /**
3006
+ * Last update timestamp
3007
+ */
3008
+ updated_at?: string;
3009
+ }>;
3010
+ };
3011
+ export type GetWorkspaceServiceAccountsResponse = GetWorkspaceServiceAccountsResponses[keyof GetWorkspaceServiceAccountsResponses];
3012
+ export type CreateWorkspaceServiceAccountData = {
3013
+ body: {
3014
+ /**
3015
+ * Service account description
3016
+ */
3017
+ description?: string;
3018
+ /**
3019
+ * Service account name
3020
+ */
3021
+ name: string;
3022
+ };
3023
+ path?: never;
3024
+ query?: never;
3025
+ url: '/service_accounts';
3026
+ };
3027
+ export type CreateWorkspaceServiceAccountResponses = {
3028
+ /**
3029
+ * successful operation
3030
+ */
3031
+ 200: {
3032
+ /**
3033
+ * Service account client ID
3034
+ */
3035
+ client_id?: string;
3036
+ /**
3037
+ * Service account client secret (only returned on creation)
3038
+ */
3039
+ client_secret?: string;
3040
+ /**
3041
+ * Creation timestamp
3042
+ */
3043
+ created_at?: string;
3044
+ /**
3045
+ * Service account description
3046
+ */
3047
+ description?: string;
3048
+ /**
3049
+ * Service account name
3050
+ */
3051
+ name?: string;
3052
+ /**
3053
+ * Last update timestamp
3054
+ */
3055
+ updated_at?: string;
3056
+ };
3057
+ };
3058
+ export type CreateWorkspaceServiceAccountResponse = CreateWorkspaceServiceAccountResponses[keyof CreateWorkspaceServiceAccountResponses];
3059
+ export type DeleteWorkspaceServiceAccountData = {
3060
+ body?: never;
3061
+ path: {
3062
+ /**
3063
+ * Client ID
3064
+ */
3065
+ clientId: string;
3066
+ };
3067
+ query?: never;
3068
+ url: '/service_accounts/{clientId}';
3069
+ };
3070
+ export type DeleteWorkspaceServiceAccountResponses = {
3071
+ /**
3072
+ * successful operation
3073
+ */
3074
+ 200: {
3075
+ /**
3076
+ * Service account client ID
3077
+ */
3078
+ client_id?: string;
3079
+ /**
3080
+ * Creation timestamp
3081
+ */
3082
+ created_at?: string;
3083
+ /**
3084
+ * Service account description
3085
+ */
3086
+ description?: string;
3087
+ /**
3088
+ * Service account name
3089
+ */
3090
+ name?: string;
3091
+ /**
3092
+ * Last update timestamp
3093
+ */
3094
+ updated_at?: string;
3095
+ };
3096
+ };
3097
+ export type DeleteWorkspaceServiceAccountResponse = DeleteWorkspaceServiceAccountResponses[keyof DeleteWorkspaceServiceAccountResponses];
3098
+ export type UpdateWorkspaceServiceAccountData = {
3099
+ body: {
3100
+ /**
3101
+ * Service account description
3102
+ */
3103
+ description?: string;
3104
+ /**
3105
+ * Service account name
3106
+ */
3107
+ name?: string;
3108
+ };
3109
+ path: {
3110
+ /**
3111
+ * Client ID
3112
+ */
3113
+ clientId: string;
3114
+ };
3115
+ query?: never;
3116
+ url: '/service_accounts/{clientId}';
3117
+ };
3118
+ export type UpdateWorkspaceServiceAccountResponses = {
3119
+ /**
3120
+ * successful operation
3121
+ */
3122
+ 200: {
3123
+ /**
3124
+ * Service account client ID
3125
+ */
3126
+ client_id?: string;
3127
+ /**
3128
+ * Creation timestamp
3129
+ */
3130
+ created_at?: string;
3131
+ /**
3132
+ * Service account description
3133
+ */
3134
+ description?: string;
3135
+ /**
3136
+ * Service account name
3137
+ */
3138
+ name?: string;
3139
+ /**
3140
+ * Last update timestamp
3141
+ */
3142
+ updated_at?: string;
3143
+ };
3144
+ };
3145
+ export type UpdateWorkspaceServiceAccountResponse = UpdateWorkspaceServiceAccountResponses[keyof UpdateWorkspaceServiceAccountResponses];
3146
+ export type ListApiKeysForServiceAccountData = {
3147
+ body?: never;
3148
+ path: {
3149
+ /**
3150
+ * Client ID
3151
+ */
3152
+ clientId: string;
3153
+ };
3154
+ query?: never;
3155
+ url: '/service_accounts/{clientId}/api_keys';
3156
+ };
3157
+ export type ListApiKeysForServiceAccountResponses = {
3158
+ /**
3159
+ * successful operation
3160
+ */
3161
+ 200: Array<ApiKey>;
3162
+ };
3163
+ export type ListApiKeysForServiceAccountResponse = ListApiKeysForServiceAccountResponses[keyof ListApiKeysForServiceAccountResponses];
3164
+ export type CreateApiKeyForServiceAccountData = {
3165
+ body: {
3166
+ /**
3167
+ * Expiration period for the API key
3168
+ */
3169
+ expires_in?: string;
3170
+ /**
3171
+ * Name for the API key
3172
+ */
3173
+ name?: string;
3174
+ };
3175
+ path: {
3176
+ /**
3177
+ * Client ID
3178
+ */
3179
+ clientId: string;
3180
+ };
3181
+ query?: never;
3182
+ url: '/service_accounts/{clientId}/api_keys';
3183
+ };
3184
+ export type CreateApiKeyForServiceAccountResponses = {
3185
+ /**
3186
+ * successful operation
3187
+ */
3188
+ 200: ApiKey;
3189
+ };
3190
+ export type CreateApiKeyForServiceAccountResponse = CreateApiKeyForServiceAccountResponses[keyof CreateApiKeyForServiceAccountResponses];
3191
+ export type DeleteApiKeyForServiceAccountData = {
3192
+ body?: never;
3193
+ path: {
3194
+ /**
3195
+ * Client ID
3196
+ */
3197
+ clientId: string;
3198
+ /**
3199
+ * Api key id
3200
+ */
3201
+ apiKeyId: string;
3202
+ };
3203
+ query?: never;
3204
+ url: '/service_accounts/{clientId}/api_keys/{apiKeyId}';
3205
+ };
3206
+ export type DeleteApiKeyForServiceAccountResponses = {
3207
+ /**
3208
+ * successful operation
3209
+ */
3210
+ 200: unknown;
3211
+ };
3212
+ export type ListTemplatesData = {
3213
+ body?: never;
3214
+ path?: never;
3215
+ query?: never;
3216
+ url: '/templates';
3217
+ };
3218
+ export type ListTemplatesResponses = {
3219
+ /**
3220
+ * successful operation
3221
+ */
3222
+ 200: Array<Template>;
3223
+ };
3224
+ export type ListTemplatesResponse = ListTemplatesResponses[keyof ListTemplatesResponses];
3225
+ export type GetTemplateData = {
3226
+ body?: never;
3227
+ path: {
3228
+ /**
3229
+ * Name of the template
3230
+ */
3231
+ templateName: string;
3232
+ };
3233
+ query?: never;
3234
+ url: '/templates/{templateName}';
3235
+ };
3236
+ export type GetTemplateResponses = {
3237
+ /**
3238
+ * successful operation
3239
+ */
3240
+ 200: Template;
3241
+ };
3242
+ export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
3243
+ export type GetTemplateContentsData = {
3244
+ body?: never;
3245
+ path: {
3246
+ templateName: string;
3247
+ };
3248
+ query?: never;
3249
+ url: '/templates/{templateName}/contents';
3250
+ };
3251
+ export type GetTemplateContentsResponses = {
3252
+ /**
3253
+ * List of files in the template
3254
+ */
3255
+ 200: Array<string>;
3256
+ };
3257
+ export type GetTemplateContentsResponse = GetTemplateContentsResponses[keyof GetTemplateContentsResponses];
3258
+ export type GetTemplateFileContentsData = {
3259
+ body?: never;
3260
+ path: {
3261
+ templateName: string;
3262
+ fileName: string;
3263
+ };
3264
+ query?: never;
3265
+ url: '/templates/{templateName}/contents/{fileName}';
3266
+ };
3267
+ export type GetTemplateFileContentsResponses = {
3268
+ /**
3269
+ * Content of the file
3270
+ */
3271
+ 200: string;
3272
+ };
3273
+ export type GetTemplateFileContentsResponse = GetTemplateFileContentsResponses[keyof GetTemplateFileContentsResponses];
3274
+ export type ListWorkspaceUsersData = {
3275
+ body?: never;
3276
+ path?: never;
3277
+ query?: never;
3278
+ url: '/users';
3279
+ };
3280
+ export type ListWorkspaceUsersResponses = {
3281
+ /**
3282
+ * successful operation
3283
+ */
3284
+ 200: Array<WorkspaceUser>;
3285
+ };
3286
+ export type ListWorkspaceUsersResponse = ListWorkspaceUsersResponses[keyof ListWorkspaceUsersResponses];
3287
+ export type InviteWorkspaceUserData = {
3288
+ /**
3289
+ * Email of the user to invite
3290
+ */
3291
+ body: {
3292
+ email?: string;
3293
+ };
3294
+ path?: never;
3295
+ query?: never;
3296
+ url: '/users';
3297
+ };
3298
+ export type InviteWorkspaceUserErrors = {
3299
+ /**
3300
+ * invalid email format
3301
+ */
3302
+ 400: unknown;
3303
+ /**
3304
+ * workspace not found
3305
+ */
3306
+ 404: unknown;
3307
+ };
3308
+ export type InviteWorkspaceUserResponses = {
3309
+ /**
3310
+ * successful operation
3311
+ */
3312
+ 200: PendingInvitation;
3313
+ };
3314
+ export type InviteWorkspaceUserResponse = InviteWorkspaceUserResponses[keyof InviteWorkspaceUserResponses];
3315
+ export type RemoveWorkspaceUserData = {
3316
+ body?: never;
3317
+ path: {
3318
+ /**
3319
+ * Sub or email of the user
3320
+ */
3321
+ subOrEmail: string;
3322
+ };
3323
+ query?: never;
3324
+ url: '/users/{subOrEmail}';
3325
+ };
3326
+ export type RemoveWorkspaceUserErrors = {
3327
+ /**
3328
+ * Workspace or user not found
3329
+ */
3330
+ 404: unknown;
3331
+ };
3332
+ export type RemoveWorkspaceUserResponses = {
3333
+ /**
3334
+ * User successfully removed or invitation revoked
3335
+ */
3336
+ 200: unknown;
3337
+ };
3338
+ export type UpdateWorkspaceUserRoleData = {
3339
+ body: {
3340
+ /**
3341
+ * The new role to assign to the user
3342
+ */
3343
+ role: string;
3344
+ };
3345
+ path: {
3346
+ /**
3347
+ * Sub or email of the user
3348
+ */
3349
+ subOrEmail: string;
3350
+ };
3351
+ query?: never;
3352
+ url: '/users/{subOrEmail}';
3353
+ };
3354
+ export type UpdateWorkspaceUserRoleErrors = {
3355
+ /**
3356
+ * Invalid role provided
3357
+ */
3358
+ 400: unknown;
3359
+ /**
3360
+ * Workspace or user not found
3361
+ */
3362
+ 404: unknown;
3363
+ };
3364
+ export type UpdateWorkspaceUserRoleResponses = {
3365
+ /**
3366
+ * User role updated successfully
3367
+ */
3368
+ 200: WorkspaceUser;
3369
+ };
3370
+ export type UpdateWorkspaceUserRoleResponse = UpdateWorkspaceUserRoleResponses[keyof UpdateWorkspaceUserRoleResponses];
3371
+ export type ListWorkspacesData = {
3372
+ body?: never;
3373
+ path?: never;
3374
+ query?: never;
3375
+ url: '/workspaces';
3376
+ };
3377
+ export type ListWorkspacesResponses = {
3378
+ /**
3379
+ * successful operation
3380
+ */
3381
+ 200: Array<Workspace>;
3382
+ };
3383
+ export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
3384
+ export type CreateWorspaceData = {
3385
+ body: Workspace;
3386
+ path?: never;
3387
+ query?: never;
3388
+ url: '/workspaces';
3389
+ };
3390
+ export type CreateWorspaceResponses = {
3391
+ /**
3392
+ * successful operation
3393
+ */
3394
+ 200: Workspace;
3395
+ };
3396
+ export type CreateWorspaceResponse = CreateWorspaceResponses[keyof CreateWorspaceResponses];
3397
+ export type DeleteWorkspaceData = {
3398
+ body?: never;
3399
+ path: {
3400
+ /**
3401
+ * Name of the workspace
3402
+ */
3403
+ workspaceName: string;
3404
+ };
3405
+ query?: never;
3406
+ url: '/workspaces/{workspaceName}';
3407
+ };
3408
+ export type DeleteWorkspaceResponses = {
3409
+ /**
3410
+ * successful operation
3411
+ */
3412
+ 200: Workspace;
3413
+ };
3414
+ export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
3415
+ export type GetWorkspaceData = {
3416
+ body?: never;
3417
+ path: {
3418
+ /**
3419
+ * Name of the workspace
3420
+ */
3421
+ workspaceName: string;
3422
+ };
3423
+ query?: never;
3424
+ url: '/workspaces/{workspaceName}';
3425
+ };
3426
+ export type GetWorkspaceResponses = {
3427
+ /**
3428
+ * successful operation
3429
+ */
3430
+ 200: Workspace;
3431
+ };
3432
+ export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
3433
+ export type UpdateWorkspaceData = {
3434
+ body: Workspace;
3435
+ path: {
3436
+ /**
3437
+ * name of the workspace
3438
+ */
3439
+ workspaceName: string;
3440
+ };
3441
+ query?: never;
3442
+ url: '/workspaces/{workspaceName}';
3443
+ };
3444
+ export type UpdateWorkspaceResponses = {
3445
+ /**
3446
+ * successful operation
3447
+ */
3448
+ 200: Workspace;
3449
+ };
3450
+ export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
3451
+ export type DeclineWorkspaceInvitationData = {
3452
+ body?: never;
3453
+ path: {
3454
+ /**
3455
+ * Name of the workspace
3456
+ */
3457
+ workspaceName: string;
3458
+ };
3459
+ query?: never;
3460
+ url: '/workspaces/{workspaceName}/decline';
3461
+ };
3462
+ export type DeclineWorkspaceInvitationResponses = {
3463
+ /**
3464
+ * Invitation successfully declined
3465
+ */
3466
+ 200: PendingInvitation;
3467
+ };
3468
+ export type DeclineWorkspaceInvitationResponse = DeclineWorkspaceInvitationResponses[keyof DeclineWorkspaceInvitationResponses];
3469
+ export type AcceptWorkspaceInvitationData = {
3470
+ body?: never;
3471
+ path: {
3472
+ /**
3473
+ * Name of the workspace
3474
+ */
3475
+ workspaceName: string;
3476
+ };
3477
+ query?: never;
3478
+ url: '/workspaces/{workspaceName}/join';
3479
+ };
3480
+ export type AcceptWorkspaceInvitationErrors = {
3481
+ /**
3482
+ * Workspace or invitation not found
3483
+ */
3484
+ 404: unknown;
3485
+ };
3486
+ export type AcceptWorkspaceInvitationResponses = {
3487
+ /**
3488
+ * Invitation successfully accepted
3489
+ */
3490
+ 200: PendingInvitationAccept;
3491
+ };
3492
+ export type AcceptWorkspaceInvitationResponse = AcceptWorkspaceInvitationResponses[keyof AcceptWorkspaceInvitationResponses];
3493
+ export type LeaveWorkspaceData = {
3494
+ body?: never;
3495
+ path: {
3496
+ /**
3497
+ * Name of the workspace
3498
+ */
3499
+ workspaceName: string;
3500
+ };
3501
+ query?: never;
3502
+ url: '/workspaces/{workspaceName}/leave';
3503
+ };
3504
+ export type LeaveWorkspaceErrors = {
3505
+ /**
3506
+ * Workspace not found
3507
+ */
3508
+ 404: unknown;
3509
+ };
3510
+ export type LeaveWorkspaceResponses = {
3511
+ /**
3512
+ * Workspace successfully left
3513
+ */
3514
+ 200: Workspace;
3515
+ };
3516
+ export type LeaveWorkspaceResponse = LeaveWorkspaceResponses[keyof LeaveWorkspaceResponses];
3517
+ export type CheckWorkspaceAvailabilityData = {
3518
+ body: {
3519
+ name: string;
3520
+ };
3521
+ path?: never;
3522
+ query?: never;
3523
+ url: '/workspaces/availability';
3524
+ };
3525
+ export type CheckWorkspaceAvailabilityResponses = {
3526
+ /**
3527
+ * successful operation
3528
+ */
3529
+ 200: boolean;
3530
+ };
3531
+ export type CheckWorkspaceAvailabilityResponse = CheckWorkspaceAvailabilityResponses[keyof CheckWorkspaceAvailabilityResponses];
3532
+ export type ClientOptions = {
3533
+ baseUrl: 'https://api.blaxel.ai/v0' | 'https://run.blaxel.ai' | (string & {});
3534
+ };