@dazl/api-client 1.0.23 → 1.0.24

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.
@@ -493,19 +493,30 @@ export type FeatureToggle = {
493
493
  updatedAt: string;
494
494
  };
495
495
 
496
- export type Workspace = {
496
+ export type WorkspaceBase = {
497
497
  id: string;
498
498
  name: string;
499
- /**
500
- * The user which created the workspace. Null if the user was deleted.
501
- */
502
499
  dazlUserId: string | null;
503
500
  createdAt: string;
504
501
  isDefault: boolean;
502
+ repoId: string | null;
503
+ };
504
+
505
+ export type WorkspaceWithRepo = {
506
+ id: string;
507
+ name: string;
508
+ dazlUserId: string | null;
509
+ createdAt: string;
510
+ isDefault: boolean;
511
+ repoId: string | null;
505
512
  /**
506
- * The ID of the repo associated with this workspace, if any.
513
+ * The full name of the repo associated with this workspace, if any.
507
514
  */
508
- repoId: string | null;
515
+ repoFullName: string | null;
516
+ /**
517
+ * The host of the repo associated with this workspace, if any.
518
+ */
519
+ repoHost: string | null;
509
520
  };
510
521
 
511
522
  export type CreateSessionAuthorized = {
@@ -1560,6 +1571,7 @@ export type GetProjectInfoResponses = {
1560
1571
  repoFullName: string;
1561
1572
  token: string | null;
1562
1573
  repoId: string;
1574
+ host: string;
1563
1575
  };
1564
1576
  };
1565
1577
 
@@ -6640,7 +6652,7 @@ export type CreateWorkspaceResponses = {
6640
6652
  * Returns the created workspace
6641
6653
  */
6642
6654
  200: {
6643
- workspace: Workspace;
6655
+ workspace: WorkspaceBase;
6644
6656
  };
6645
6657
  };
6646
6658
 
@@ -6698,7 +6710,7 @@ export type UpdateWorkspaceResponses = {
6698
6710
  * Returns the updated workspace
6699
6711
  */
6700
6712
  200: {
6701
- workspace: Workspace;
6713
+ workspace: WorkspaceBase;
6702
6714
  };
6703
6715
  };
6704
6716
 
@@ -6759,21 +6771,29 @@ export type GetWorkspaceResponses = {
6759
6771
  * Returns the workspace with the given ID
6760
6772
  */
6761
6773
  200: {
6762
- workspace: Workspace;
6774
+ workspace: WorkspaceWithRepo;
6763
6775
  };
6764
6776
  };
6765
6777
 
6766
6778
  export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
6767
6779
 
6768
6780
  export type GetAllWorkspacesData = {
6769
- body?: never;
6770
- path?: never;
6771
- query?: {
6781
+ body: {
6772
6782
  /**
6773
6783
  * Whether to include the members of each workspace
6774
6784
  */
6775
6785
  withMembers?: boolean;
6786
+ /**
6787
+ * Filter workspaces by repository URLs
6788
+ */
6789
+ repoUrls?: Array<string>;
6790
+ /**
6791
+ * Whether to ensure a workspace exists for each repository URL provided
6792
+ */
6793
+ withEnsureWorkspacePerRepo?: boolean;
6776
6794
  };
6795
+ path?: never;
6796
+ query?: never;
6777
6797
  url: '/workspace/list-my';
6778
6798
  };
6779
6799
 
@@ -6815,22 +6835,24 @@ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspace
6815
6835
 
6816
6836
  export type GetAllWorkspacesResponses = {
6817
6837
  /**
6818
- * Returns the list of workspaces that the user is a member of
6838
+ * Returns the list of workspaces for the current user
6819
6839
  */
6820
6840
  200: {
6821
6841
  workspaces: Array<{
6822
6842
  id: string;
6823
6843
  name: string;
6824
- /**
6825
- * The user which created the workspace. Null if the user was deleted.
6826
- */
6827
6844
  dazlUserId: string | null;
6828
6845
  createdAt: string;
6829
6846
  isDefault: boolean;
6847
+ repoId: string | null;
6830
6848
  /**
6831
- * The ID of the repo associated with this workspace, if any.
6849
+ * The full name of the repo associated with this workspace, if any.
6832
6850
  */
6833
- repoId: string | null;
6851
+ repoFullName: string | null;
6852
+ /**
6853
+ * The host of the repo associated with this workspace, if any.
6854
+ */
6855
+ repoHost: string | null;
6834
6856
  owner?: {
6835
6857
  /**
6836
6858
  * Dazl ID for the type = "user"
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { Comments, EnvConfig, Mcp, type Options, Ping, User, UserKeyValue, UserSettings, Workspace as Workspace2 } from './sdk.gen.ts';
4
- export type { ClientOptions, CommentContext, CommentGitInfo, CommentResolved, ConnectionStatus, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentInput, CreateCommentResponse, CreateCommentResponses, CreateReplyData, CreateReplyError, CreateReplyErrors, CreateReplyInput, CreateReplyResponse, CreateReplyResponses, CreateSessionAuthorized, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSessionUnauthorized, CreateWorkspaceData, CreateWorkspaceError, CreateWorkspaceErrors, CreateWorkspaceResponse, CreateWorkspaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentResponse, DeleteCommentResponses, DeleteMyCategValuesData, DeleteMyCategValuesError, DeleteMyCategValuesErrors, DeleteMyCategValuesResponse, DeleteMyCategValuesResponses, DeleteReplyData, DeleteReplyError, DeleteReplyErrors, DeleteReplyResponse, DeleteReplyResponses, DeleteWorkspaceInvitationData, DeleteWorkspaceInvitationError, DeleteWorkspaceInvitationErrors, DeleteWorkspaceInvitationResponse, DeleteWorkspaceInvitationResponses, DeleteWorkspaceMemberData, DeleteWorkspaceMemberError, DeleteWorkspaceMemberErrors, DeleteWorkspaceMemberResponse, DeleteWorkspaceMemberResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentInput, EditCommentResponse, EditCommentResponses, EditReplyData, EditReplyError, EditReplyErrors, EditReplyInput, EditReplyResponse, EditReplyResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, ErrorResponse, FeatureToggle, FileCommentContext, FinalizeConnectionData, FinalizeConnectionError, FinalizeConnectionErrors, FinalizeConnectionResponse, FinalizeConnectionResponses, GetAllData, GetAllError, GetAllErrors, GetAllResponse, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesError, GetAllWorkspacesErrors, GetAllWorkspacesResponse, GetAllWorkspacesResponses, GetCommentData, GetCommentError, GetCommentErrors, GetCommentResponse, GetCommentResponses, GetConnectionStatusData, GetConnectionStatusError, GetConnectionStatusErrors, GetConnectionStatusResponse, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetMyUserData, GetMyUserError, GetMyUserErrors, GetMyUserResponse, GetMyUserResponses, GetMyValuesData, GetMyValuesError, GetMyValuesErrors, GetMyValuesResponse, GetMyValuesResponses, GetPingData, GetPingError, GetPingErrors, GetPingResponse, GetPingResponses, GetWorkspaceData, GetWorkspaceError, GetWorkspaceErrors, GetWorkspaceMembersData, GetWorkspaceMembersError, GetWorkspaceMembersErrors, GetWorkspaceMembersResponse, GetWorkspaceMembersResponses, GetWorkspaceResponse, GetWorkspaceResponses, InitiateConnectionData, InitiateConnectionError, InitiateConnectionErrors, InitiateConnectionResponse, InitiateConnectionResponses, IntegrationName, InviteWorkspaceMemberData, InviteWorkspaceMemberError, InviteWorkspaceMemberErrors, InviteWorkspaceMemberResponse, InviteWorkspaceMemberResponses, ListCommentsData, ListCommentsError, ListCommentsErrors, ListCommentsResponse, ListCommentsResponses, OverrideAllData, OverrideAllError, OverrideAllErrors, OverrideAllResponse, OverrideAllResponses, PageCommentContext, PlanCommentContext, ReopenCommentData, ReopenCommentError, ReopenCommentErrors, ReopenCommentResponse, ReopenCommentResponses, ReplaceMyCategValuesData, ReplaceMyCategValuesError, ReplaceMyCategValuesErrors, ReplaceMyCategValuesResponse, ReplaceMyCategValuesResponses, ResolveCommentData, ResolveCommentError, ResolveCommentErrors, ResolveCommentResponse, ResolveCommentResponses, SetMyValueData, SetMyValueError, SetMyValueErrors, SetMyValueResponse, SetMyValueResponses, StageCommentContext, UpdateMyUserData, UpdateMyUserError, UpdateMyUserErrors, UpdateMyUserResponse, UpdateMyUserResponses, UpdateWorkspaceData, UpdateWorkspaceError, UpdateWorkspaceErrors, UpdateWorkspaceResponse, UpdateWorkspaceResponses, UserMention, UserRaw, Workspace } from './types.gen.ts';
3
+ export { Comments, EnvConfig, Mcp, type Options, Ping, User, UserKeyValue, UserSettings, Workspace } from './sdk.gen.ts';
4
+ export type { ClientOptions, CommentContext, CommentGitInfo, CommentResolved, ConnectionStatus, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentInput, CreateCommentResponse, CreateCommentResponses, CreateReplyData, CreateReplyError, CreateReplyErrors, CreateReplyInput, CreateReplyResponse, CreateReplyResponses, CreateSessionAuthorized, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSessionUnauthorized, CreateWorkspaceData, CreateWorkspaceError, CreateWorkspaceErrors, CreateWorkspaceResponse, CreateWorkspaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentResponse, DeleteCommentResponses, DeleteMyCategValuesData, DeleteMyCategValuesError, DeleteMyCategValuesErrors, DeleteMyCategValuesResponse, DeleteMyCategValuesResponses, DeleteReplyData, DeleteReplyError, DeleteReplyErrors, DeleteReplyResponse, DeleteReplyResponses, DeleteWorkspaceInvitationData, DeleteWorkspaceInvitationError, DeleteWorkspaceInvitationErrors, DeleteWorkspaceInvitationResponse, DeleteWorkspaceInvitationResponses, DeleteWorkspaceMemberData, DeleteWorkspaceMemberError, DeleteWorkspaceMemberErrors, DeleteWorkspaceMemberResponse, DeleteWorkspaceMemberResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentInput, EditCommentResponse, EditCommentResponses, EditReplyData, EditReplyError, EditReplyErrors, EditReplyInput, EditReplyResponse, EditReplyResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, ErrorResponse, FeatureToggle, FileCommentContext, FinalizeConnectionData, FinalizeConnectionError, FinalizeConnectionErrors, FinalizeConnectionResponse, FinalizeConnectionResponses, GetAllData, GetAllError, GetAllErrors, GetAllResponse, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesError, GetAllWorkspacesErrors, GetAllWorkspacesResponse, GetAllWorkspacesResponses, GetCommentData, GetCommentError, GetCommentErrors, GetCommentResponse, GetCommentResponses, GetConnectionStatusData, GetConnectionStatusError, GetConnectionStatusErrors, GetConnectionStatusResponse, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetMyUserData, GetMyUserError, GetMyUserErrors, GetMyUserResponse, GetMyUserResponses, GetMyValuesData, GetMyValuesError, GetMyValuesErrors, GetMyValuesResponse, GetMyValuesResponses, GetPingData, GetPingError, GetPingErrors, GetPingResponse, GetPingResponses, GetWorkspaceData, GetWorkspaceError, GetWorkspaceErrors, GetWorkspaceMembersData, GetWorkspaceMembersError, GetWorkspaceMembersErrors, GetWorkspaceMembersResponse, GetWorkspaceMembersResponses, GetWorkspaceResponse, GetWorkspaceResponses, InitiateConnectionData, InitiateConnectionError, InitiateConnectionErrors, InitiateConnectionResponse, InitiateConnectionResponses, IntegrationName, InviteWorkspaceMemberData, InviteWorkspaceMemberError, InviteWorkspaceMemberErrors, InviteWorkspaceMemberResponse, InviteWorkspaceMemberResponses, ListCommentsData, ListCommentsError, ListCommentsErrors, ListCommentsResponse, ListCommentsResponses, OverrideAllData, OverrideAllError, OverrideAllErrors, OverrideAllResponse, OverrideAllResponses, PageCommentContext, PlanCommentContext, ReopenCommentData, ReopenCommentError, ReopenCommentErrors, ReopenCommentResponse, ReopenCommentResponses, ReplaceMyCategValuesData, ReplaceMyCategValuesError, ReplaceMyCategValuesErrors, ReplaceMyCategValuesResponse, ReplaceMyCategValuesResponses, ResolveCommentData, ResolveCommentError, ResolveCommentErrors, ResolveCommentResponse, ResolveCommentResponses, SetMyValueData, SetMyValueError, SetMyValueErrors, SetMyValueResponse, SetMyValueResponses, StageCommentContext, UpdateMyUserData, UpdateMyUserError, UpdateMyUserErrors, UpdateMyUserResponse, UpdateMyUserResponses, UpdateWorkspaceData, UpdateWorkspaceError, UpdateWorkspaceErrors, UpdateWorkspaceResponse, UpdateWorkspaceResponses, UserMention, UserRaw, WorkspaceBase, WorkspaceWithRepo } from './types.gen.ts';
@@ -80,7 +80,14 @@ export class Workspace {
80
80
  }
81
81
 
82
82
  public static getAllWorkspaces<ThrowOnError extends boolean = false>(options: Options<GetAllWorkspacesData, ThrowOnError>): RequestResult<GetAllWorkspacesResponses, GetAllWorkspacesErrors, ThrowOnError> {
83
- return options.client.get<GetAllWorkspacesResponses, GetAllWorkspacesErrors, ThrowOnError>({ url: '/workspace/list-my', ...options });
83
+ return options.client.post<GetAllWorkspacesResponses, GetAllWorkspacesErrors, ThrowOnError>({
84
+ url: '/workspace/list-my',
85
+ ...options,
86
+ headers: {
87
+ 'Content-Type': 'application/json',
88
+ ...options.headers
89
+ }
90
+ });
84
91
  }
85
92
 
86
93
  public static inviteWorkspaceMember<ThrowOnError extends boolean = false>(options: Options<InviteWorkspaceMemberData, ThrowOnError>): RequestResult<InviteWorkspaceMemberResponses, InviteWorkspaceMemberErrors, ThrowOnError> {
@@ -30,19 +30,30 @@ export type FeatureToggle = {
30
30
  updatedAt: string;
31
31
  };
32
32
 
33
- export type Workspace = {
33
+ export type WorkspaceBase = {
34
34
  id: string;
35
35
  name: string;
36
- /**
37
- * The user which created the workspace. Null if the user was deleted.
38
- */
39
36
  dazlUserId: string | null;
40
37
  createdAt: string;
41
38
  isDefault: boolean;
39
+ repoId: string | null;
40
+ };
41
+
42
+ export type WorkspaceWithRepo = {
43
+ id: string;
44
+ name: string;
45
+ dazlUserId: string | null;
46
+ createdAt: string;
47
+ isDefault: boolean;
48
+ repoId: string | null;
42
49
  /**
43
- * The ID of the repo associated with this workspace, if any.
50
+ * The full name of the repo associated with this workspace, if any.
44
51
  */
45
- repoId: string | null;
52
+ repoFullName: string | null;
53
+ /**
54
+ * The host of the repo associated with this workspace, if any.
55
+ */
56
+ repoHost: string | null;
46
57
  };
47
58
 
48
59
  export type CreateSessionAuthorized = {
@@ -431,7 +442,7 @@ export type CreateWorkspaceResponses = {
431
442
  * Returns the created workspace
432
443
  */
433
444
  200: {
434
- workspace: Workspace;
445
+ workspace: WorkspaceBase;
435
446
  };
436
447
  };
437
448
 
@@ -489,7 +500,7 @@ export type UpdateWorkspaceResponses = {
489
500
  * Returns the updated workspace
490
501
  */
491
502
  200: {
492
- workspace: Workspace;
503
+ workspace: WorkspaceBase;
493
504
  };
494
505
  };
495
506
 
@@ -550,21 +561,29 @@ export type GetWorkspaceResponses = {
550
561
  * Returns the workspace with the given ID
551
562
  */
552
563
  200: {
553
- workspace: Workspace;
564
+ workspace: WorkspaceWithRepo;
554
565
  };
555
566
  };
556
567
 
557
568
  export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
558
569
 
559
570
  export type GetAllWorkspacesData = {
560
- body?: never;
561
- path?: never;
562
- query?: {
571
+ body: {
563
572
  /**
564
573
  * Whether to include the members of each workspace
565
574
  */
566
575
  withMembers?: boolean;
576
+ /**
577
+ * Filter workspaces by repository URLs
578
+ */
579
+ repoUrls?: Array<string>;
580
+ /**
581
+ * Whether to ensure a workspace exists for each repository URL provided
582
+ */
583
+ withEnsureWorkspacePerRepo?: boolean;
567
584
  };
585
+ path?: never;
586
+ query?: never;
568
587
  url: '/workspace/list-my';
569
588
  };
570
589
 
@@ -606,22 +625,24 @@ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspace
606
625
 
607
626
  export type GetAllWorkspacesResponses = {
608
627
  /**
609
- * Returns the list of workspaces that the user is a member of
628
+ * Returns the list of workspaces for the current user
610
629
  */
611
630
  200: {
612
631
  workspaces: Array<{
613
632
  id: string;
614
633
  name: string;
615
- /**
616
- * The user which created the workspace. Null if the user was deleted.
617
- */
618
634
  dazlUserId: string | null;
619
635
  createdAt: string;
620
636
  isDefault: boolean;
637
+ repoId: string | null;
621
638
  /**
622
- * The ID of the repo associated with this workspace, if any.
639
+ * The full name of the repo associated with this workspace, if any.
623
640
  */
624
- repoId: string | null;
641
+ repoFullName: string | null;
642
+ /**
643
+ * The host of the repo associated with this workspace, if any.
644
+ */
645
+ repoHost: string | null;
625
646
  owner?: {
626
647
  /**
627
648
  * Dazl ID for the type = "user"