@dazl/api-client 1.0.25 → 1.0.27

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.
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
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, GetAllWorkspacesWithCreateData, GetAllWorkspacesWithCreateError, GetAllWorkspacesWithCreateErrors, GetAllWorkspacesWithCreateResponse, GetAllWorkspacesWithCreateResponses, 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';
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, GetAllWorkspacesWithCreateData, GetAllWorkspacesWithCreateError, GetAllWorkspacesWithCreateErrors, GetAllWorkspacesWithCreateResponse, GetAllWorkspacesWithCreateResponses, 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, WorkspaceWithRepoAndMembers } from './types.gen.ts';
@@ -39,7 +39,7 @@ export type WorkspaceBase = {
39
39
  repoId: string | null;
40
40
  };
41
41
 
42
- export type WorkspaceWithRepo = {
42
+ export type WorkspaceWithRepoAndMembers = {
43
43
  id: string;
44
44
  name: string;
45
45
  dazlUserId: string | null;
@@ -54,6 +54,27 @@ export type WorkspaceWithRepo = {
54
54
  * The host of the repo associated with this workspace, if any.
55
55
  */
56
56
  repoHost: string | null;
57
+ owner?: {
58
+ /**
59
+ * Dazl ID for the type = "user"
60
+ */
61
+ id: string;
62
+ email: string;
63
+ name?: string;
64
+ picture?: string;
65
+ role: 'workspace_member' | 'owner';
66
+ } | null;
67
+ members?: Array<{
68
+ /**
69
+ * Dazl ID for the type = "user"
70
+ */
71
+ id: string;
72
+ email: string;
73
+ name?: string;
74
+ picture?: string;
75
+ role: 'workspace_member' | 'owner';
76
+ }>;
77
+ projectCount?: number;
57
78
  };
58
79
 
59
80
  export type CreateSessionAuthorized = {
@@ -144,6 +165,11 @@ export type FileCommentContext = {
144
165
 
145
166
  export type CreateCommentInput = {
146
167
  content: string;
168
+ /**
169
+ * Deprecated: ignored. Mentions are parsed server-side from content as [@<userId>].
170
+ *
171
+ * @deprecated
172
+ */
147
173
  mentions?: Array<UserMention>;
148
174
  context?: CommentContext;
149
175
  gitInfo?: CommentGitInfo;
@@ -151,17 +177,32 @@ export type CreateCommentInput = {
151
177
 
152
178
  export type EditCommentInput = {
153
179
  content: string;
180
+ /**
181
+ * Deprecated: ignored. Mentions are parsed server-side from content as [@<userId>].
182
+ *
183
+ * @deprecated
184
+ */
154
185
  mentions?: Array<UserMention>;
155
186
  };
156
187
 
157
188
  export type CreateReplyInput = {
158
189
  content: string;
190
+ /**
191
+ * Deprecated: ignored. Mentions are parsed server-side from content as [@<userId>].
192
+ *
193
+ * @deprecated
194
+ */
159
195
  mentions?: Array<UserMention>;
160
196
  gitInfo?: CommentGitInfo;
161
197
  };
162
198
 
163
199
  export type EditReplyInput = {
164
200
  content: string;
201
+ /**
202
+ * Deprecated: ignored. Mentions are parsed server-side from content as [@<userId>].
203
+ *
204
+ * @deprecated
205
+ */
165
206
  mentions?: Array<UserMention>;
166
207
  };
167
208
 
@@ -561,7 +602,7 @@ export type GetWorkspaceResponses = {
561
602
  * Returns the workspace with the given ID
562
603
  */
563
604
  200: {
564
- workspace: WorkspaceWithRepo;
605
+ workspace: WorkspaceWithRepoAndMembers;
565
606
  };
566
607
  };
567
608
 
@@ -714,42 +755,7 @@ export type GetAllWorkspacesWithCreateResponses = {
714
755
  * Returns the list of workspaces for the current user
715
756
  */
716
757
  200: {
717
- workspaces: Array<{
718
- id: string;
719
- name: string;
720
- dazlUserId: string | null;
721
- createdAt: string;
722
- isDefault: boolean;
723
- repoId: string | null;
724
- /**
725
- * The full name of the repo associated with this workspace, if any.
726
- */
727
- repoFullName: string | null;
728
- /**
729
- * The host of the repo associated with this workspace, if any.
730
- */
731
- repoHost: string | null;
732
- owner?: {
733
- /**
734
- * Dazl ID for the type = "user"
735
- */
736
- id: string;
737
- email: string;
738
- name?: string;
739
- picture?: string;
740
- role: 'workspace_member' | 'owner';
741
- } | null;
742
- members?: Array<{
743
- /**
744
- * Dazl ID for the type = "user"
745
- */
746
- id: string;
747
- email: string;
748
- name?: string;
749
- picture?: string;
750
- role: 'workspace_member' | 'owner';
751
- }>;
752
- }>;
758
+ workspaces: Array<WorkspaceWithRepoAndMembers>;
753
759
  };
754
760
  };
755
761