gatana-sdk 2.3.7 → 2.3.9

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.
@@ -314,25 +314,26 @@ type ClientOptions = {
314
314
  };
315
315
  type V2CreateServerRequest = {
316
316
  slug: Schema0;
317
- transportConfig: Schema1;
318
- description?: Schema22;
317
+ transportConfig?: Schema1;
318
+ transportConfigType?: Schema29;
319
+ description?: Schema30;
319
320
  authorization?: ServerAuthorization;
320
- oauthMetadata?: Schema27;
321
- oauthClientConfiguration?: Schema31;
322
- isEnabled?: Schema37;
323
- timeoutProtocol?: Schema38;
324
- timeoutTotal?: Schema39;
325
- resetTimeoutOnProgressNotification?: Schema40;
326
- isOutputCompressionEnabled?: Schema41;
327
- isOutputCompressionTransformEnabled?: Schema42;
328
- outputCompressionThresholdBytes?: Schema43;
329
- firewallRules?: Schema44;
321
+ oauthMetadata?: Schema36;
322
+ oauthClientConfiguration?: Schema39;
323
+ isEnabled?: Schema44;
324
+ timeoutProtocol?: Schema45;
325
+ timeoutTotal?: Schema46;
326
+ resetTimeoutOnProgressNotification?: Schema47;
327
+ isOutputCompressionEnabled?: Schema48;
328
+ isOutputCompressionTransformEnabled?: Schema49;
329
+ outputCompressionThresholdBytes?: Schema50;
330
+ firewallRules?: Schema51;
330
331
  visibility?: ServerVisibility;
331
- id?: Schema47;
332
- tenantId?: Schema48;
333
- lastToolRefreshAt?: Schema49;
334
- createdAt?: Schema50;
335
- updatedAt?: Schema51;
332
+ id?: Schema54;
333
+ tenantId?: Schema55;
334
+ lastToolRefreshAt?: Schema56;
335
+ createdAt?: Schema57;
336
+ updatedAt?: Schema58;
336
337
  };
337
338
  type HttpStreamingTransportConfig = {
338
339
  type: Schema2;
@@ -347,63 +348,77 @@ type StdioTransportConfig = {
347
348
  transport: Schema9;
348
349
  httpPort?: Schema10;
349
350
  urlPath?: Schema11;
350
- limits?: Schema12;
351
+ healthCheck?: Schema12;
352
+ limits?: Schema13;
351
353
  };
352
354
  type SseTransportConfig = {
353
- type: Schema15;
354
- url: Schema16;
355
- headers?: Schema17;
355
+ type: Schema16;
356
+ url: Schema17;
357
+ headers?: Schema18;
356
358
  };
357
359
  type HostedTransportConfig = {
358
- type: Schema18;
359
- runtime: Schema19;
360
- env?: Schema20;
361
- limits?: Schema21;
360
+ type: Schema19;
361
+ runtime: Schema20;
362
+ env?: Schema21;
363
+ limits?: Schema22;
362
364
  };
363
- type ServerAuthorization = {
365
+ type OpenApiTransportConfig = {
366
+ type: Schema23;
364
367
  method: Schema24;
365
- credentialsScope: Schema25;
366
- apikeys?: Schema26;
368
+ specUrl?: Schema25;
369
+ spec?: Schema26;
370
+ baseUrl?: Schema27;
371
+ headers?: Schema28;
372
+ };
373
+ type ServerAuthorization = {
374
+ method: Schema32;
375
+ credentialsScope: Schema33;
376
+ apikeys?: Schema34;
377
+ toolRefreshCredentialPolicy?: ToolRefreshCredentialPolicy;
367
378
  };
379
+ /**
380
+ * Controls how tool refresh is authorized. "server-scoped" means only server-scoped credentials are required, "skip" means refresh is done without authorization, and "any" means any available credentials (server, user, profile) can be used. Defaults to "server-scoped".
381
+ */
382
+ type ToolRefreshCredentialPolicy = Schema35;
368
383
  type ServerOAuthMetadata = {
369
- requiresAuthorization: Schema28;
370
- resource?: Schema29;
371
- as?: Schema30;
384
+ resource?: Schema37;
385
+ as?: Schema38;
372
386
  };
373
387
  type ServerOAuthClientConfiguration = {
374
- clientId?: Schema32;
375
- clientSecret?: Schema33;
376
- grantType: Schema34;
377
- clientAuthMethod: Schema35;
378
- scopes?: Schema36;
388
+ clientId?: Schema40;
389
+ clientSecret?: Schema41;
390
+ grantType: OAuthGrantType;
391
+ clientAuthMethod: Schema42;
392
+ scopes?: Schema43;
379
393
  };
394
+ type OAuthGrantType = 'authorization_code' | 'device_code';
380
395
  type ServerVisibility = 'private' | 'organization';
381
396
  type V2UpdateServerRequest = {
382
- slug?: Schema53;
383
- description?: Schema54;
397
+ slug?: Schema60;
398
+ description?: Schema61;
384
399
  authorization?: ServerAuthorization;
385
- transportConfig?: Schema56;
386
- oauthMetadata?: Schema57;
387
- oauthClientConfiguration?: Schema58;
388
- isEnabled?: Schema59;
389
- timeoutProtocol?: Schema60;
390
- timeoutTotal?: Schema61;
391
- resetTimeoutOnProgressNotification?: Schema62;
392
- isOutputCompressionEnabled?: Schema63;
393
- isOutputCompressionTransformEnabled?: Schema64;
394
- outputCompressionThresholdBytes?: Schema65;
395
- firewallRules?: Schema66;
400
+ transportConfig?: Schema63;
401
+ oauthMetadata?: Schema64;
402
+ oauthClientConfiguration?: Schema65;
403
+ isEnabled?: Schema66;
404
+ timeoutProtocol?: Schema67;
405
+ timeoutTotal?: Schema68;
406
+ resetTimeoutOnProgressNotification?: Schema69;
407
+ isOutputCompressionEnabled?: Schema70;
408
+ isOutputCompressionTransformEnabled?: Schema71;
409
+ outputCompressionThresholdBytes?: Schema72;
410
+ firewallRules?: Schema73;
396
411
  visibility?: ServerVisibility;
397
- id?: Schema68;
398
- tenantId?: Schema69;
399
- name?: Schema70;
400
- lastToolRefreshAt?: Schema71;
401
- createdAt?: Schema72;
402
- updatedAt?: Schema73;
403
- };
404
- type V2PatchServerRequest = { [key in Schema74]?: Schema75 };
412
+ id?: Schema75;
413
+ tenantId?: Schema76;
414
+ name?: Schema77;
415
+ lastToolRefreshAt?: Schema78;
416
+ createdAt?: Schema79;
417
+ updatedAt?: Schema80;
418
+ };
419
+ type V2PatchServerRequest = { [key in Schema81]?: Schema82 };
405
420
  type Schema0 = string;
406
- type Schema1 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | HostedTransportConfig;
421
+ type Schema1 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | HostedTransportConfig | OpenApiTransportConfig;
407
422
  type Schema2 = 'httpstreaming';
408
423
  type Schema3 = string;
409
424
  type Schema4 = Array<[string, string]>;
@@ -415,34 +430,48 @@ type Schema9 = 'sse' | 'httpstreaming' | 'stdio';
415
430
  type Schema10 = number | null;
416
431
  type Schema11 = string | null;
417
432
  type Schema12 = {
418
- cpu?: Schema13;
419
- memory?: Schema14;
433
+ enabled: boolean;
434
+ url?: string;
435
+ delaySeconds: number | null;
436
+ intervalSeconds: number | null;
437
+ failureThreshold: number | null;
438
+ };
439
+ type Schema13 = {
440
+ cpu?: Schema14;
441
+ memory?: Schema15;
420
442
  } | null;
421
- type Schema13 = string;
422
443
  type Schema14 = string;
423
- type Schema15 = 'sse';
424
- type Schema16 = string;
425
- type Schema17 = Array<[string, string]>;
426
- type Schema18 = 'hosted';
427
- type Schema19 = 'node24';
428
- type Schema20 = Array<[string, string]>;
429
- type Schema21 = {
430
- cpu?: Schema13;
431
- memory?: Schema14;
444
+ type Schema15 = string;
445
+ type Schema16 = 'sse';
446
+ type Schema17 = string;
447
+ type Schema18 = Array<[string, string]>;
448
+ type Schema19 = 'hosted';
449
+ type Schema20 = 'node24';
450
+ type Schema21 = Array<[string, string]>;
451
+ type Schema22 = {
452
+ cpu?: Schema14;
453
+ memory?: Schema15;
432
454
  } | null;
433
- type Schema22 = string;
434
- type Schema23 = ServerAuthorization;
435
- type Schema24 = 'none' | 'oauth' | 'apikey';
436
- type Schema25 = 'server' | 'user';
437
- type Schema26 = Array<string>;
438
- type Schema27 = ServerOAuthMetadata | null;
439
- type Schema28 = boolean;
440
- type Schema29 = {
455
+ type Schema23 = 'openapi';
456
+ type Schema24 = 'specUrl' | 'spec';
457
+ type Schema25 = string | '';
458
+ type Schema26 = string;
459
+ type Schema27 = string | '';
460
+ type Schema28 = Array<[string, string]>;
461
+ type Schema29 = 'httpstreaming' | 'sse' | 'stdio' | 'hosted' | 'openapi';
462
+ type Schema30 = string;
463
+ type Schema31 = ServerAuthorization;
464
+ type Schema32 = 'none' | 'oauth' | 'oauth-client-credentials' | 'apikey';
465
+ type Schema33 = 'server' | 'user';
466
+ type Schema34 = Array<string>;
467
+ type Schema35 = 'server-scoped' | 'skip' | 'any';
468
+ type Schema36 = ServerOAuthMetadata | null;
469
+ type Schema37 = {
441
470
  id?: string;
442
471
  availableScopes?: Array<string>;
443
472
  metadataUrl?: string;
444
473
  };
445
- type Schema30 = {
474
+ type Schema38 = {
446
475
  issuer?: string;
447
476
  authorizeEndpoint?: string;
448
477
  deviceAuthorizationEndpoint?: string;
@@ -457,162 +486,189 @@ type Schema30 = {
457
486
  metadataUrl?: string;
458
487
  availableScopes?: Array<string>;
459
488
  };
460
- type Schema31 = ServerOAuthClientConfiguration | null;
461
- type Schema32 = string;
462
- type Schema33 = string;
463
- type Schema34 = 'authorization_code' | 'device_code';
464
- type Schema35 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
465
- type Schema36 = string;
466
- type Schema37 = boolean;
467
- type Schema38 = number;
468
- type Schema39 = number;
469
- type Schema40 = boolean;
470
- type Schema41 = boolean;
471
- type Schema42 = boolean;
472
- type Schema43 = number;
473
- type Schema44 = Array<Schema45>;
474
- type Schema45 = {
489
+ type Schema39 = ServerOAuthClientConfiguration | null;
490
+ type Schema40 = string;
491
+ type Schema41 = string;
492
+ type Schema42 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
493
+ type Schema43 = string;
494
+ type Schema44 = boolean;
495
+ type Schema45 = number;
496
+ type Schema46 = number;
497
+ type Schema47 = boolean;
498
+ type Schema48 = boolean;
499
+ type Schema49 = boolean;
500
+ type Schema50 = number;
501
+ type Schema51 = Array<Schema52>;
502
+ type Schema52 = {
475
503
  /**
476
504
  * CEL representing the condition
477
505
  */
478
506
  condition: string;
479
507
  action: 'deny' | 'modify' | 'log';
480
508
  };
481
- type Schema46 = ServerVisibility;
482
- type Schema47 = string;
483
- type Schema48 = string;
484
- type Schema49 = string | null;
485
- type Schema50 = string;
486
- type Schema51 = string;
487
- type Schema52 = string;
488
- type Schema53 = string;
509
+ type Schema53 = ServerVisibility;
489
510
  type Schema54 = string;
490
- type Schema55 = ServerAuthorization;
491
- type Schema56 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | {
511
+ type Schema55 = string;
512
+ type Schema56 = string | null;
513
+ type Schema57 = string;
514
+ type Schema58 = string;
515
+ type Schema59 = string;
516
+ type Schema60 = string;
517
+ type Schema61 = string;
518
+ type Schema62 = ServerAuthorization;
519
+ type Schema63 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | {
492
520
  type: 'self';
493
521
  id: string;
494
- } | HostedTransportConfig;
495
- type Schema57 = ServerOAuthMetadata | null;
496
- type Schema58 = ServerOAuthClientConfiguration | null;
497
- type Schema59 = boolean;
498
- type Schema60 = number;
499
- type Schema61 = number;
500
- type Schema62 = boolean;
501
- type Schema63 = boolean;
502
- type Schema64 = boolean;
503
- type Schema65 = number;
504
- type Schema66 = Array<Schema45>;
505
- type Schema67 = ServerVisibility;
506
- type Schema68 = string;
507
- type Schema69 = string;
508
- type Schema70 = string;
509
- type Schema71 = string | null;
510
- type Schema72 = string;
511
- type Schema73 = string;
512
- type Schema74 = string;
513
- type Schema75 = unknown;
522
+ } | HostedTransportConfig | OpenApiTransportConfig;
523
+ type Schema64 = ServerOAuthMetadata | null;
524
+ type Schema65 = ServerOAuthClientConfiguration | null;
525
+ type Schema66 = boolean;
526
+ type Schema67 = number;
527
+ type Schema68 = number;
528
+ type Schema69 = boolean;
529
+ type Schema70 = boolean;
530
+ type Schema71 = boolean;
531
+ type Schema72 = number;
532
+ type Schema73 = Array<Schema52>;
533
+ type Schema74 = ServerVisibility;
534
+ type Schema75 = string;
535
+ type Schema76 = string;
536
+ type Schema77 = string;
537
+ type Schema78 = string | null;
538
+ type Schema79 = string;
539
+ type Schema80 = string;
540
+ type Schema81 = string;
541
+ type Schema82 = unknown;
514
542
  type V2ListServersResponse = {
515
- servers: Schema76;
543
+ servers: Schema83;
516
544
  };
517
545
  type V2ServerDto = Server;
518
546
  type Server = {
519
- id: Schema77;
520
- slug: Schema78;
521
- tenantId: Schema79;
522
- description: Schema80;
547
+ id: Schema84;
548
+ slug: Schema85;
549
+ tenantId: Schema86;
550
+ description: Schema87;
523
551
  authorization: ServerAuthorizationOutput;
524
- transportConfig: Schema84;
525
- oauthClientConfiguration: Schema105;
526
- oauthMetadata: Schema111;
552
+ transportConfig: Schema92;
553
+ oauthClientConfiguration: Schema120;
554
+ oauthMetadata: Schema125;
527
555
  visibility: ServerVisibility;
528
- isEnabled: Schema115;
529
- lastToolRefreshAt: Schema116;
530
- timeoutProtocol: Schema117;
531
- timeoutTotal: Schema118;
532
- resetTimeoutOnProgressNotification: Schema119;
533
- isOutputCompressionEnabled: Schema120;
534
- isOutputCompressionTransformEnabled: Schema121;
535
- outputCompressionThresholdBytes: Schema122;
536
- firewallRules: Schema123;
537
- createdAt: Schema124;
538
- updatedAt: Schema125;
556
+ isEnabled: Schema128;
557
+ lastToolRefreshAt: Schema129;
558
+ timeoutProtocol: Schema130;
559
+ timeoutTotal: Schema131;
560
+ resetTimeoutOnProgressNotification: Schema132;
561
+ isOutputCompressionEnabled: Schema133;
562
+ isOutputCompressionTransformEnabled: Schema134;
563
+ outputCompressionThresholdBytes: Schema135;
564
+ firewallRules: Schema136;
565
+ createdAt: Schema137;
566
+ updatedAt: Schema138;
539
567
  };
540
568
  type CredentialDtoV2 = {
541
- id: Schema127;
542
- tenantId: Schema128;
543
- scope: Schema129;
544
- userId: Schema130;
545
- profileId: Schema131;
546
- lastUsedAt: Schema132;
547
- authorizedAt: Schema133;
548
- type: Schema134;
549
- createdAt: Schema135;
550
- updatedAt: Schema136;
551
- serverSlug: Schema137;
552
- userEmail: Schema138;
553
- userName: Schema139;
554
- profileName: Schema140;
555
- };
556
- type ServerCredentialsOuth = {
557
- type: Schema141;
558
- tokenSet: Schema142;
559
- };
569
+ id: Schema140;
570
+ tenantId: Schema141;
571
+ scope: Schema142;
572
+ userId: Schema143;
573
+ profileId: Schema144;
574
+ lastUsedAt: Schema145;
575
+ authorizedAt: Schema146;
576
+ type: Schema147;
577
+ createdAt: Schema148;
578
+ updatedAt: Schema149;
579
+ serverSlug: Schema150;
580
+ userEmail: Schema151;
581
+ userName: Schema152;
582
+ profileName: Schema153;
583
+ };
584
+ type ServerCredentialsCredential = ({
585
+ type: 'apikey';
586
+ } & ServerCredentialsApiKeys) | ({
587
+ type: 'oauth';
588
+ } & ServerCredentialsOauthTokens) | ({
589
+ type: 'oauth-client-credentials';
590
+ } & ServerCredentialsOauthClientCredentials);
560
591
  type ServerCredentialsApiKeys = {
561
- type: Schema143;
562
- apikeys: Schema144;
592
+ type: Schema154;
593
+ apikeys: Schema155;
563
594
  };
564
- type Schema76 = Array<Server>;
565
- type Schema77 = string;
566
- type Schema78 = string;
567
- type Schema79 = string;
568
- type Schema80 = string;
569
- type Schema81 = 'none' | 'oauth' | 'apikey';
570
- type Schema82 = 'server' | 'user';
571
- type Schema83 = Array<string>;
572
- type Schema84 = HttpStreamingTransportConfigOutput | StdioTransportConfigOutput | SseTransportConfigOutput | {
595
+ type ServerCredentialsOauthTokens = {
596
+ type: Schema156;
597
+ tokenSet: Schema157;
598
+ };
599
+ type ServerCredentialsOauthClientCredentials = {
600
+ type: Schema158;
601
+ clientConfig?: ServerOAuthClientConfigurationClientCredentials;
602
+ tokenSet?: Schema160;
603
+ };
604
+ /**
605
+ * Client configuration for OAuth client credentials
606
+ */
607
+ type ServerOAuthClientConfigurationClientCredentials = Schema159;
608
+ type Schema83 = Array<Server>;
609
+ type Schema84 = string;
610
+ type Schema85 = string;
611
+ type Schema86 = string;
612
+ type Schema87 = string;
613
+ type Schema88 = 'none' | 'oauth' | 'oauth-client-credentials' | 'apikey';
614
+ type Schema89 = 'server' | 'user';
615
+ type Schema90 = Array<string>;
616
+ type Schema91 = 'server-scoped' | 'skip' | 'any';
617
+ type Schema92 = HttpStreamingTransportConfigOutput | StdioTransportConfigOutput | SseTransportConfigOutput | {
573
618
  type: 'self';
574
619
  id: string;
575
- } | HostedTransportConfigOutput;
576
- type Schema85 = 'httpstreaming';
577
- type Schema86 = string;
578
- type Schema87 = Array<[string, string]>;
579
- type Schema88 = 'stdio';
580
- type Schema89 = string;
581
- type Schema90 = string;
582
- type Schema91 = Array<[string, string]>;
583
- type Schema92 = 'sse' | 'httpstreaming' | 'stdio';
584
- type Schema93 = number | null;
585
- type Schema94 = string | null;
586
- type Schema95 = {
587
- cpu?: Schema96;
588
- memory?: Schema97;
589
- } | null;
590
- type Schema96 = string;
620
+ } | HostedTransportConfigOutput | OpenApiTransportConfigOutput;
621
+ type Schema93 = 'httpstreaming';
622
+ type Schema94 = string;
623
+ type Schema95 = Array<[string, string]>;
624
+ type Schema96 = 'stdio';
591
625
  type Schema97 = string;
592
- type Schema98 = 'sse';
593
- type Schema99 = string;
594
- type Schema100 = Array<[string, string]>;
595
- type Schema101 = 'hosted';
596
- type Schema102 = 'node24';
597
- type Schema103 = Array<[string, string]>;
626
+ type Schema98 = string;
627
+ type Schema99 = Array<[string, string]>;
628
+ type Schema100 = 'sse' | 'httpstreaming' | 'stdio';
629
+ type Schema101 = number | null;
630
+ type Schema102 = string | null;
631
+ type Schema103 = {
632
+ enabled: boolean;
633
+ url: string;
634
+ delaySeconds: number | null;
635
+ intervalSeconds: number | null;
636
+ failureThreshold: number | null;
637
+ };
598
638
  type Schema104 = {
599
- cpu?: Schema96;
600
- memory?: Schema97;
639
+ cpu?: Schema105;
640
+ memory?: Schema106;
601
641
  } | null;
602
- type Schema105 = null | ServerOAuthClientConfigurationOutput;
642
+ type Schema105 = string;
603
643
  type Schema106 = string;
604
- type Schema107 = string;
605
- type Schema108 = 'authorization_code' | 'device_code';
606
- type Schema109 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
607
- type Schema110 = string;
608
- type Schema111 = null | ServerOAuthMetadataOutput;
609
- type Schema112 = boolean;
644
+ type Schema107 = 'sse';
645
+ type Schema108 = string;
646
+ type Schema109 = Array<[string, string]>;
647
+ type Schema110 = 'hosted';
648
+ type Schema111 = 'node24';
649
+ type Schema112 = Array<[string, string]>;
610
650
  type Schema113 = {
651
+ cpu?: Schema105;
652
+ memory?: Schema106;
653
+ } | null;
654
+ type Schema114 = 'openapi';
655
+ type Schema115 = 'specUrl' | 'spec';
656
+ type Schema116 = string | '';
657
+ type Schema117 = string;
658
+ type Schema118 = string | '';
659
+ type Schema119 = Array<[string, string]>;
660
+ type Schema120 = null | ServerOAuthClientConfigurationOutput;
661
+ type Schema121 = string;
662
+ type Schema122 = string;
663
+ type Schema123 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
664
+ type Schema124 = string;
665
+ type Schema125 = null | ServerOAuthMetadataOutput;
666
+ type Schema126 = {
611
667
  id: string;
612
668
  availableScopes: Array<string>;
613
669
  metadataUrl: string;
614
670
  };
615
- type Schema114 = {
671
+ type Schema127 = {
616
672
  issuer: string;
617
673
  authorizeEndpoint: string;
618
674
  deviceAuthorizationEndpoint: string;
@@ -627,91 +683,115 @@ type Schema114 = {
627
683
  metadataUrl: string;
628
684
  availableScopes: Array<string>;
629
685
  };
630
- type Schema115 = boolean;
631
- type Schema116 = string | null;
632
- type Schema117 = number;
633
- type Schema118 = number;
634
- type Schema119 = boolean;
635
- type Schema120 = boolean;
636
- type Schema121 = boolean;
637
- type Schema122 = number;
638
- type Schema123 = Array<{
686
+ type Schema128 = boolean;
687
+ type Schema129 = string | null;
688
+ type Schema130 = number;
689
+ type Schema131 = number;
690
+ type Schema132 = boolean;
691
+ type Schema133 = boolean;
692
+ type Schema134 = boolean;
693
+ type Schema135 = number;
694
+ type Schema136 = Array<{
639
695
  /**
640
696
  * CEL representing the condition
641
697
  */
642
698
  condition: string;
643
699
  action: 'deny' | 'modify' | 'log';
644
700
  }>;
645
- type Schema124 = string;
646
- type Schema125 = string;
647
- type Schema126 = {
701
+ type Schema137 = string;
702
+ type Schema138 = string;
703
+ type Schema139 = {
648
704
  credentials: Array<CredentialDtoV2>;
649
705
  };
650
- type Schema127 = string;
651
- type Schema128 = string;
652
- type Schema129 = 'server' | 'user' | 'profile';
653
- type Schema130 = string | null;
654
- type Schema131 = string | null;
655
- type Schema132 = string | null;
656
- type Schema133 = string;
657
- type Schema134 = 'oauth' | 'apikey';
658
- type Schema135 = string;
659
- type Schema136 = string;
660
- type Schema137 = string;
661
- type Schema138 = string | null;
662
- type Schema139 = string | null;
663
- type Schema140 = string | null;
664
- type Schema141 = 'oauth';
665
- type Schema142 = {
706
+ type Schema140 = string;
707
+ type Schema141 = string;
708
+ type Schema142 = 'server' | 'user' | 'profile';
709
+ type Schema143 = string | null;
710
+ type Schema144 = string | null;
711
+ type Schema145 = string | null;
712
+ type Schema146 = string;
713
+ type Schema147 = 'oauth' | 'apikey' | 'oauth-client-credentials';
714
+ type Schema148 = string;
715
+ type Schema149 = string;
716
+ type Schema150 = string;
717
+ type Schema151 = string | null;
718
+ type Schema152 = string | null;
719
+ type Schema153 = string | null;
720
+ type Schema154 = 'apikey';
721
+ type Schema155 = Array<[string, string]>;
722
+ type Schema156 = 'oauth';
723
+ type Schema157 = {
666
724
  accessToken: string;
667
725
  accessTokenExpiresAt?: number;
668
726
  idToken?: string;
669
727
  refreshToken?: string;
670
728
  };
671
- type Schema143 = 'apikey';
672
- type Schema144 = Array<[string, string]>;
729
+ type Schema158 = 'oauth-client-credentials';
730
+ type Schema159 = {
731
+ clientId: Schema121;
732
+ clientSecret: Schema122;
733
+ clientAuthMethod: Schema123;
734
+ scopes: Schema124;
735
+ };
736
+ /**
737
+ * Cached tokenset for client credentials
738
+ */
739
+ type Schema160 = Schema157;
673
740
  type ServerAuthorizationOutput = {
674
- method: Schema81;
675
- credentialsScope: Schema82;
676
- apikeys?: Schema83;
741
+ method: Schema88;
742
+ credentialsScope: Schema89;
743
+ apikeys?: Schema90;
744
+ toolRefreshCredentialPolicy: ToolRefreshCredentialPolicyOutput;
677
745
  };
746
+ /**
747
+ * Controls how tool refresh is authorized. "server-scoped" means only server-scoped credentials are required, "skip" means refresh is done without authorization, and "any" means any available credentials (server, user, profile) can be used. Defaults to "server-scoped".
748
+ */
749
+ type ToolRefreshCredentialPolicyOutput = Schema91;
678
750
  type HttpStreamingTransportConfigOutput = {
679
- type: Schema85;
680
- url: Schema86;
681
- headers?: Schema87;
751
+ type: Schema93;
752
+ url: Schema94;
753
+ headers?: Schema95;
682
754
  };
683
755
  type StdioTransportConfigOutput = {
684
- type: Schema88;
685
- command: Schema89;
686
- dockerImage?: Schema90;
687
- env?: Schema91;
688
- transport: Schema92;
689
- httpPort?: Schema93;
690
- urlPath?: Schema94;
691
- limits?: Schema95;
756
+ type: Schema96;
757
+ command: Schema97;
758
+ dockerImage?: Schema98;
759
+ env?: Schema99;
760
+ transport: Schema100;
761
+ httpPort?: Schema101;
762
+ urlPath?: Schema102;
763
+ healthCheck?: Schema103;
764
+ limits?: Schema104;
692
765
  };
693
766
  type SseTransportConfigOutput = {
694
- type: Schema98;
695
- url: Schema99;
696
- headers?: Schema100;
767
+ type: Schema107;
768
+ url: Schema108;
769
+ headers?: Schema109;
697
770
  };
698
771
  type HostedTransportConfigOutput = {
699
- type: Schema101;
700
- runtime: Schema102;
701
- env?: Schema103;
702
- limits?: Schema104;
772
+ type: Schema110;
773
+ runtime: Schema111;
774
+ env?: Schema112;
775
+ limits?: Schema113;
776
+ };
777
+ type OpenApiTransportConfigOutput = {
778
+ type: Schema114;
779
+ method: Schema115;
780
+ specUrl: Schema116;
781
+ spec: Schema117;
782
+ baseUrl: Schema118;
783
+ headers?: Schema119;
703
784
  };
704
785
  type ServerOAuthClientConfigurationOutput = {
705
- clientId: Schema106;
706
- clientSecret: Schema107;
707
- grantType: Schema108;
708
- clientAuthMethod: Schema109;
709
- scopes: Schema110;
786
+ clientId: Schema121;
787
+ clientSecret: Schema122;
788
+ grantType: OAuthGrantType;
789
+ clientAuthMethod: Schema123;
790
+ scopes: Schema124;
710
791
  };
711
792
  type ServerOAuthMetadataOutput = {
712
- requiresAuthorization: Schema112;
713
- resource?: Schema113;
714
- as?: Schema114;
793
+ resource?: Schema126;
794
+ as?: Schema127;
715
795
  };
716
796
  type GetServersData = {
717
797
  body?: never;
@@ -742,7 +822,7 @@ type PostServersResponse = PostServersResponses[keyof PostServersResponses];
742
822
  type DeleteServersBySlugData = {
743
823
  body?: never;
744
824
  path: {
745
- slug: Schema52;
825
+ slug: Schema59;
746
826
  };
747
827
  query?: never;
748
828
  url: '/servers/{slug}';
@@ -756,7 +836,7 @@ type DeleteServersBySlugResponses = {
756
836
  type GetServersBySlugData = {
757
837
  body?: never;
758
838
  path: {
759
- slug: Schema52;
839
+ slug: Schema59;
760
840
  };
761
841
  query?: never;
762
842
  url: '/servers/{slug}';
@@ -771,7 +851,7 @@ type GetServersBySlugResponse = GetServersBySlugResponses[keyof GetServersBySlug
771
851
  type PatchServersBySlugData = {
772
852
  body?: V2PatchServerRequest;
773
853
  path: {
774
- slug: Schema52;
854
+ slug: Schema59;
775
855
  };
776
856
  query?: never;
777
857
  url: '/servers/{slug}';
@@ -786,7 +866,7 @@ type PatchServersBySlugResponse = PatchServersBySlugResponses[keyof PatchServers
786
866
  type PutServersBySlugData = {
787
867
  body?: V2UpdateServerRequest;
788
868
  path: {
789
- slug: Schema52;
869
+ slug: Schema59;
790
870
  };
791
871
  query?: never;
792
872
  url: '/servers/{slug}';
@@ -810,7 +890,7 @@ type GetCredentialsResponses = {
810
890
  /**
811
891
  * Successful response
812
892
  */
813
- 200: Schema126;
893
+ 200: Schema139;
814
894
  };
815
895
  type GetCredentialsResponse = GetCredentialsResponses[keyof GetCredentialsResponses];
816
896
  type DeleteCredentialsByIdData = {
@@ -825,7 +905,7 @@ type DeleteCredentialsByIdResponses = {
825
905
  /**
826
906
  * Successful response
827
907
  */
828
- 200: Schema126;
908
+ 200: Schema139;
829
909
  };
830
910
  type DeleteCredentialsByIdResponse = DeleteCredentialsByIdResponses[keyof DeleteCredentialsByIdResponses];
831
911
  type GetCredentialsByIdData = {
@@ -855,7 +935,7 @@ type GetCredentialsByIdSecretResponses = {
855
935
  /**
856
936
  * Successful response
857
937
  */
858
- 200: ServerCredentialsOuth | ServerCredentialsApiKeys;
938
+ 200: ServerCredentialsCredential;
859
939
  };
860
940
  type GetCredentialsByIdSecretResponse = GetCredentialsByIdSecretResponses[keyof GetCredentialsByIdSecretResponses];
861
941
  declare namespace sdk_gen_d_exports {
@@ -903,5 +983,5 @@ declare const deleteCredentialsById: <ThrowOnError extends boolean = true>(optio
903
983
  declare const getCredentialsById: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdData, ThrowOnError>) => RequestResult<GetCredentialsByIdResponses, unknown, ThrowOnError, "fields">;
904
984
  declare const getCredentialsByIdSecret: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdSecretData, ThrowOnError>) => RequestResult<GetCredentialsByIdSecretResponses, unknown, ThrowOnError, "fields">;
905
985
  //#endregion
906
- export { Schema102 as $, Schema70 as $n, Schema21 as $t, GetServersBySlugResponse as A, Schema5 as An, Schema99 as Ar, Schema130 as At, PatchServersBySlugResponse as B, Schema59 as Bn, ServerVisibility as Br, Schema14 as Bt, GetCredentialsByIdSecretData as C, Schema43 as Cn, Schema92 as Cr, Schema124 as Ct, GetCredentialsResponse as D, Schema47 as Dn, Schema96 as Dr, Schema128 as Dt, GetCredentialsData as E, Schema46 as En, Schema95 as Er, Schema127 as Et, HostedTransportConfig as F, Schema54 as Fn, ServerCredentialsOuth as Fr, Schema135 as Ft, PutServersBySlugData as G, Schema63 as Gn, V2CreateServerRequest as Gr, Schema144 as Gt, PostServersData as H, Schema60 as Hn, SseTransportConfigOutput as Hr, Schema141 as Ht, HostedTransportConfigOutput as I, Schema55 as In, ServerOAuthClientConfiguration as Ir, Schema136 as It, Schema0 as J, Schema66 as Jn, V2ServerDto as Jr, Schema17 as Jt, PutServersBySlugResponse as K, Schema64 as Kn, V2ListServersResponse as Kr, Schema15 as Kt, HttpStreamingTransportConfig as L, Schema56 as Ln, ServerOAuthClientConfigurationOutput as Lr, Schema137 as Lt, GetServersData as M, Schema51 as Mn, ServerAuthorization as Mr, Schema132 as Mt, GetServersResponse as N, Schema52 as Nn, ServerAuthorizationOutput as Nr, Schema133 as Nt, GetCredentialsResponses as O, Schema48 as On, Schema97 as Or, Schema129 as Ot, GetServersResponses as P, Schema53 as Pn, ServerCredentialsApiKeys as Pr, Schema134 as Pt, Schema101 as Q, Schema7 as Qn, Schema20 as Qt, HttpStreamingTransportConfigOutput as R, Schema57 as Rn, ServerOAuthMetadata as Rr, Schema138 as Rt, GetCredentialsByIdResponses as S, Schema42 as Sn, Schema91 as Sr, Schema123 as St, GetCredentialsByIdSecretResponses as T, Schema45 as Tn, Schema94 as Tr, Schema126 as Tt, PostServersResponse as U, Schema61 as Un, StdioTransportConfig as Ur, Schema142 as Ut, PatchServersBySlugResponses as V, Schema6 as Vn, SseTransportConfig as Vr, Schema140 as Vt, PostServersResponses as W, Schema62 as Wn, StdioTransportConfigOutput as Wr, Schema143 as Wt, Schema10 as X, Schema68 as Xn, Schema19 as Xt, Schema1 as Y, Schema67 as Yn, V2UpdateServerRequest as Yr, Schema18 as Yt, Schema100 as Z, Schema69 as Zn, Schema2 as Zt, DeleteCredentialsByIdResponses as _, Schema38 as _n, Schema87 as _r, Schema119 as _t, getCredentialsById as a, Schema27 as an, Schema76 as ar, Schema108 as at, GetCredentialsByIdData as b, Schema40 as bn, Schema9 as br, Schema121 as bt, getServersBySlug as c, Schema3 as cn, Schema79 as cr, Schema110 as ct, putServersBySlug as d, Schema32 as dn, Schema81 as dr, Schema113 as dt, Schema22 as en, Schema71 as er, Schema103 as et, sdk_gen_d_exports as f, Schema33 as fn, Schema82 as fr, Schema114 as ft, DeleteCredentialsByIdResponse as g, Schema37 as gn, Schema86 as gr, Schema118 as gt, DeleteCredentialsByIdData as h, Schema36 as hn, Schema85 as hr, Schema117 as ht, getCredentials as i, Schema26 as in, Schema75 as ir, Schema107 as it, GetServersBySlugResponses as j, Schema50 as jn, Server as jr, Schema131 as jt, GetServersBySlugData as k, Schema49 as kn, Schema98 as kr, Schema13 as kt, patchServersBySlug as l, Schema30 as ln, Schema8 as lr, Schema111 as lt, CredentialDtoV2 as m, Schema35 as mn, Schema84 as mr, Schema116 as mt, deleteCredentialsById as n, Schema24 as nn, Schema73 as nr, Schema105 as nt, getCredentialsByIdSecret as o, Schema28 as on, Schema77 as or, Schema109 as ot, ClientOptions as p, Schema34 as pn, Schema83 as pr, Schema115 as pt, PutServersBySlugResponses as q, Schema65 as qn, V2PatchServerRequest as qr, Schema16 as qt, deleteServersBySlug as r, Schema25 as rn, Schema74 as rr, Schema106 as rt, getServers as s, Schema29 as sn, Schema78 as sr, Schema11 as st, Options as t, Schema23 as tn, Schema72 as tr, Schema104 as tt, postServers as u, Schema31 as un, Schema80 as ur, Schema112 as ut, DeleteServersBySlugData as v, Schema39 as vn, Schema88 as vr, Schema12 as vt, GetCredentialsByIdSecretResponse as w, Schema44 as wn, Schema93 as wr, Schema125 as wt, GetCredentialsByIdResponse as x, Schema41 as xn, Schema90 as xr, Schema122 as xt, DeleteServersBySlugResponses as y, Schema4 as yn, Schema89 as yr, Schema120 as yt, PatchServersBySlugData as z, Schema58 as zn, ServerOAuthMetadataOutput as zr, Schema139 as zt };
907
- //# sourceMappingURL=sdk.gen-HYXy4J4h.d.cts.map
986
+ export { Schema10 as $, Schema53 as $n, ServerCredentialsApiKeys as $r, Schema149 as $t, GetServersBySlugResponse as A, Schema32 as An, Schema81 as Ar, Schema128 as At, OpenApiTransportConfig as B, Schema41 as Bn, Schema90 as Br, Schema137 as Bt, GetCredentialsByIdSecretData as C, Schema26 as Cn, Schema75 as Cr, Schema121 as Ct, GetCredentialsResponse as D, Schema3 as Dn, Schema79 as Dr, Schema125 as Dt, GetCredentialsData as E, Schema29 as En, Schema78 as Er, Schema124 as Et, HostedTransportConfig as F, Schema37 as Fn, Schema86 as Fr, Schema132 as Ft, PostServersData as G, Schema46 as Gn, Schema95 as Gr, Schema141 as Gt, PatchServersBySlugData as H, Schema43 as Hn, Schema92 as Hr, Schema139 as Ht, HostedTransportConfigOutput as I, Schema38 as In, Schema87 as Ir, Schema133 as It, PutServersBySlugData as J, Schema49 as Jn, Schema98 as Jr, Schema144 as Jt, PostServersResponse as K, Schema47 as Kn, Schema96 as Kr, Schema142 as Kt, HttpStreamingTransportConfig as L, Schema39 as Ln, Schema88 as Lr, Schema134 as Lt, GetServersData as M, Schema34 as Mn, Schema83 as Mr, Schema13 as Mt, GetServersResponse as N, Schema35 as Nn, Schema84 as Nr, Schema130 as Nt, GetCredentialsResponses as O, Schema30 as On, Schema8 as Or, Schema126 as Ot, GetServersResponses as P, Schema36 as Pn, Schema85 as Pr, Schema131 as Pt, Schema1 as Q, Schema52 as Qn, ServerAuthorizationOutput as Qr, Schema148 as Qt, HttpStreamingTransportConfigOutput as R, Schema4 as Rn, Schema89 as Rr, Schema135 as Rt, GetCredentialsByIdResponses as S, Schema25 as Sn, Schema74 as Sr, Schema120 as St, GetCredentialsByIdSecretResponses as T, Schema28 as Tn, Schema77 as Tr, Schema123 as Tt, PatchServersBySlugResponse as U, Schema44 as Un, Schema93 as Ur, Schema14 as Ut, OpenApiTransportConfigOutput as V, Schema42 as Vn, Schema91 as Vr, Schema138 as Vt, PatchServersBySlugResponses as W, Schema45 as Wn, Schema94 as Wr, Schema140 as Wt, PutServersBySlugResponses as X, Schema50 as Xn, Server as Xr, Schema146 as Xt, PutServersBySlugResponse as Y, Schema5 as Yn, Schema99 as Yr, Schema145 as Yt, Schema0 as Z, Schema51 as Zn, ServerAuthorization as Zr, Schema147 as Zt, DeleteCredentialsByIdResponses as _, V2PatchServerRequest as _i, Schema20 as _n, Schema7 as _r, Schema116 as _t, getCredentialsById as a, ServerOAuthClientConfigurationOutput as ai, Schema154 as an, Schema59 as ar, Schema105 as at, GetCredentialsByIdData as b, Schema23 as bn, Schema72 as br, Schema119 as bt, getServersBySlug as c, ServerVisibility as ci, Schema157 as cn, Schema61 as cr, Schema108 as ct, putServersBySlug as d, StdioTransportConfig as di, Schema16 as dn, Schema64 as dr, Schema110 as dt, ServerCredentialsCredential as ei, Schema15 as en, Schema54 as er, Schema100 as et, sdk_gen_d_exports as f, StdioTransportConfigOutput as fi, Schema160 as fn, Schema65 as fr, Schema111 as ft, DeleteCredentialsByIdResponse as g, V2ListServersResponse as gi, Schema2 as gn, Schema69 as gr, Schema115 as gt, DeleteCredentialsByIdData as h, V2CreateServerRequest as hi, Schema19 as hn, Schema68 as hr, Schema114 as ht, getCredentials as i, ServerOAuthClientConfigurationClientCredentials as ii, Schema153 as in, Schema58 as ir, Schema104 as it, GetServersBySlugResponses as j, Schema33 as jn, Schema82 as jr, Schema129 as jt, GetServersBySlugData as k, Schema31 as kn, Schema80 as kr, Schema127 as kt, patchServersBySlug as l, SseTransportConfig as li, Schema158 as ln, Schema62 as lr, Schema109 as lt, CredentialDtoV2 as m, ToolRefreshCredentialPolicyOutput as mi, Schema18 as mn, Schema67 as mr, Schema113 as mt, deleteCredentialsById as n, ServerCredentialsOauthTokens as ni, Schema151 as nn, Schema56 as nr, Schema102 as nt, getCredentialsByIdSecret as o, ServerOAuthMetadata as oi, Schema155 as on, Schema6 as or, Schema106 as ot, ClientOptions as p, ToolRefreshCredentialPolicy as pi, Schema17 as pn, Schema66 as pr, Schema112 as pt, PostServersResponses as q, Schema48 as qn, Schema97 as qr, Schema143 as qt, deleteServersBySlug as r, ServerOAuthClientConfiguration as ri, Schema152 as rn, Schema57 as rr, Schema103 as rt, getServers as s, ServerOAuthMetadataOutput as si, Schema156 as sn, Schema60 as sr, Schema107 as st, Options as t, ServerCredentialsOauthClientCredentials as ti, Schema150 as tn, Schema55 as tr, Schema101 as tt, postServers as u, SseTransportConfigOutput as ui, Schema159 as un, Schema63 as ur, Schema11 as ut, DeleteServersBySlugData as v, V2ServerDto as vi, Schema21 as vn, Schema70 as vr, Schema117 as vt, GetCredentialsByIdSecretResponse as w, Schema27 as wn, Schema76 as wr, Schema122 as wt, GetCredentialsByIdResponse as x, Schema24 as xn, Schema73 as xr, Schema12 as xt, DeleteServersBySlugResponses as y, V2UpdateServerRequest as yi, Schema22 as yn, Schema71 as yr, Schema118 as yt, OAuthGrantType as z, Schema40 as zn, Schema9 as zr, Schema136 as zt };
987
+ //# sourceMappingURL=sdk.gen-Dnt5grWk.d.cts.map