@dazl/api-client 1.0.8 → 1.0.10

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.
@@ -37,6 +37,25 @@ export type Workspace = {
37
37
  createdAt: string;
38
38
  };
39
39
 
40
+ export type CreateSessionAuthorized = {
41
+ status: 'authorized';
42
+ url: string;
43
+ headers?: {
44
+ [key: string]: string;
45
+ };
46
+ };
47
+
48
+ export type CreateSessionUnauthorized = {
49
+ status: 'unauthorized';
50
+ };
51
+
52
+ export type IntegrationName = 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
53
+
54
+ export type ConnectionStatus = {
55
+ integrationName: IntegrationName;
56
+ isConnected: boolean;
57
+ };
58
+
40
59
  export type EnsureMyUserData = {
41
60
  body?: {
42
61
  name?: string;
@@ -374,6 +393,354 @@ export type GetAllWorkspacesResponses = {
374
393
 
375
394
  export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
376
395
 
396
+ export type GetAllData = {
397
+ body?: never;
398
+ path?: never;
399
+ query?: never;
400
+ url: '/my-user-settings';
401
+ };
402
+
403
+ export type GetAllErrors = {
404
+ /**
405
+ * Bad request - Invalid parameters or malformed JSON
406
+ */
407
+ 400: {
408
+ message: string;
409
+ issues?: string;
410
+ };
411
+ /**
412
+ * Unauthorized
413
+ */
414
+ 401: ErrorResponse;
415
+ /**
416
+ * Forbidden
417
+ */
418
+ 403: ErrorResponse;
419
+ /**
420
+ * Not Found
421
+ */
422
+ 404: ErrorResponse;
423
+ /**
424
+ * Conflict
425
+ */
426
+ 409: ErrorResponse;
427
+ /**
428
+ * Internal server error
429
+ */
430
+ 500: ErrorResponse;
431
+ /**
432
+ * Service Unavailable
433
+ */
434
+ 503: ErrorResponse;
435
+ };
436
+
437
+ export type GetAllError = GetAllErrors[keyof GetAllErrors];
438
+
439
+ export type GetAllResponses = {
440
+ /**
441
+ * Returns user settings (empty object if none exist)
442
+ */
443
+ 200: {
444
+ settings: {
445
+ [key: string]: unknown;
446
+ };
447
+ };
448
+ };
449
+
450
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
451
+
452
+ export type OverrideAllData = {
453
+ body: {
454
+ settings: {
455
+ [key: string]: unknown;
456
+ };
457
+ };
458
+ path?: never;
459
+ query?: never;
460
+ url: '/my-user-settings';
461
+ };
462
+
463
+ export type OverrideAllErrors = {
464
+ /**
465
+ * Bad request - Invalid parameters or malformed JSON
466
+ */
467
+ 400: {
468
+ message: string;
469
+ issues?: string;
470
+ };
471
+ /**
472
+ * Unauthorized
473
+ */
474
+ 401: ErrorResponse;
475
+ /**
476
+ * Forbidden
477
+ */
478
+ 403: ErrorResponse;
479
+ /**
480
+ * Not Found
481
+ */
482
+ 404: ErrorResponse;
483
+ /**
484
+ * Conflict
485
+ */
486
+ 409: ErrorResponse;
487
+ /**
488
+ * Internal server error
489
+ */
490
+ 500: ErrorResponse;
491
+ /**
492
+ * Service Unavailable
493
+ */
494
+ 503: ErrorResponse;
495
+ };
496
+
497
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
498
+
499
+ export type OverrideAllResponses = {
500
+ /**
501
+ * Settings updated successfully
502
+ */
503
+ 200: {
504
+ success: boolean;
505
+ };
506
+ };
507
+
508
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
509
+
510
+ export type CreateSessionData = {
511
+ body: {
512
+ integrationName: IntegrationName;
513
+ };
514
+ path?: never;
515
+ query?: never;
516
+ url: '/mcp/create-session';
517
+ };
518
+
519
+ export type CreateSessionErrors = {
520
+ /**
521
+ * Bad request - Invalid parameters or malformed JSON
522
+ */
523
+ 400: {
524
+ message: string;
525
+ issues?: string;
526
+ };
527
+ /**
528
+ * Unauthorized
529
+ */
530
+ 401: ErrorResponse;
531
+ /**
532
+ * Forbidden
533
+ */
534
+ 403: ErrorResponse;
535
+ /**
536
+ * Not Found
537
+ */
538
+ 404: ErrorResponse;
539
+ /**
540
+ * Conflict
541
+ */
542
+ 409: ErrorResponse;
543
+ /**
544
+ * Internal server error
545
+ */
546
+ 500: ErrorResponse;
547
+ /**
548
+ * Service Unavailable
549
+ */
550
+ 503: ErrorResponse;
551
+ };
552
+
553
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
554
+
555
+ export type CreateSessionResponses = {
556
+ /**
557
+ * An authorized MCP session (real url + headers) or an unauthorized marker
558
+ */
559
+ 200: ({
560
+ status: 'authorized';
561
+ } & CreateSessionAuthorized) | ({
562
+ status: 'unauthorized';
563
+ } & CreateSessionUnauthorized);
564
+ };
565
+
566
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
567
+
568
+ export type InitiateConnectionData = {
569
+ body: {
570
+ integrationName: IntegrationName;
571
+ /**
572
+ * Where the browser lands after OAuth; built by the caller
573
+ */
574
+ callbackUrl: string;
575
+ };
576
+ path?: never;
577
+ query?: never;
578
+ url: '/mcp/connections';
579
+ };
580
+
581
+ export type InitiateConnectionErrors = {
582
+ /**
583
+ * Bad request - Invalid parameters or malformed JSON
584
+ */
585
+ 400: {
586
+ message: string;
587
+ issues?: string;
588
+ };
589
+ /**
590
+ * Unauthorized
591
+ */
592
+ 401: ErrorResponse;
593
+ /**
594
+ * Forbidden
595
+ */
596
+ 403: ErrorResponse;
597
+ /**
598
+ * Not Found
599
+ */
600
+ 404: ErrorResponse;
601
+ /**
602
+ * Conflict
603
+ */
604
+ 409: ErrorResponse;
605
+ /**
606
+ * Internal server error
607
+ */
608
+ 500: ErrorResponse;
609
+ /**
610
+ * Service Unavailable
611
+ */
612
+ 503: ErrorResponse;
613
+ };
614
+
615
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
616
+
617
+ export type InitiateConnectionResponses = {
618
+ /**
619
+ * The OAuth connection request id and the redirect URL to send the user to
620
+ */
621
+ 200: {
622
+ connectionRequestId: string;
623
+ redirectUrl: string;
624
+ };
625
+ };
626
+
627
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
628
+
629
+ export type FinalizeConnectionData = {
630
+ body: {
631
+ integrationName: IntegrationName;
632
+ };
633
+ path: {
634
+ connectionRequestId: string;
635
+ };
636
+ query?: never;
637
+ url: '/mcp/connections/{connectionRequestId}/finalize';
638
+ };
639
+
640
+ export type FinalizeConnectionErrors = {
641
+ /**
642
+ * Bad request - Invalid parameters or malformed JSON
643
+ */
644
+ 400: {
645
+ message: string;
646
+ issues?: string;
647
+ };
648
+ /**
649
+ * Unauthorized
650
+ */
651
+ 401: ErrorResponse;
652
+ /**
653
+ * Forbidden
654
+ */
655
+ 403: ErrorResponse;
656
+ /**
657
+ * Not Found
658
+ */
659
+ 404: ErrorResponse;
660
+ /**
661
+ * Conflict
662
+ */
663
+ 409: ErrorResponse;
664
+ /**
665
+ * Internal server error
666
+ */
667
+ 500: ErrorResponse;
668
+ /**
669
+ * Service Unavailable
670
+ */
671
+ 503: ErrorResponse;
672
+ };
673
+
674
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
675
+
676
+ export type FinalizeConnectionResponses = {
677
+ /**
678
+ * The persisted connected-account id (ca_...)
679
+ */
680
+ 200: {
681
+ connectionId: string;
682
+ };
683
+ };
684
+
685
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
686
+
687
+ export type GetConnectionStatusData = {
688
+ body?: never;
689
+ path?: never;
690
+ query?: {
691
+ /**
692
+ * If omitted, returns status for all integrations
693
+ */
694
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
695
+ };
696
+ url: '/mcp/connections/status';
697
+ };
698
+
699
+ export type GetConnectionStatusErrors = {
700
+ /**
701
+ * Bad request - Invalid parameters or malformed JSON
702
+ */
703
+ 400: {
704
+ message: string;
705
+ issues?: string;
706
+ };
707
+ /**
708
+ * Unauthorized
709
+ */
710
+ 401: ErrorResponse;
711
+ /**
712
+ * Forbidden
713
+ */
714
+ 403: ErrorResponse;
715
+ /**
716
+ * Not Found
717
+ */
718
+ 404: ErrorResponse;
719
+ /**
720
+ * Conflict
721
+ */
722
+ 409: ErrorResponse;
723
+ /**
724
+ * Internal server error
725
+ */
726
+ 500: ErrorResponse;
727
+ /**
728
+ * Service Unavailable
729
+ */
730
+ 503: ErrorResponse;
731
+ };
732
+
733
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
734
+
735
+ export type GetConnectionStatusResponses = {
736
+ /**
737
+ * Active-connection status for the requested integration(s)
738
+ */
739
+ 200: Array<ConnectionStatus>;
740
+ };
741
+
742
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
743
+
377
744
  export type GetPingData = {
378
745
  body?: never;
379
746
  path?: never;