@dazl/api-client 1.0.22 → 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.
@@ -139,6 +139,12 @@ export type Deployment = {
139
139
  updatedAt: string;
140
140
  };
141
141
 
142
+ export type RemoteEnvConfig = {
143
+ id: string;
144
+ name: string;
145
+ remoteEnvConfigName: string;
146
+ };
147
+
142
148
  export type ProjectRaw = {
143
149
  id: string;
144
150
  name: string;
@@ -163,6 +169,7 @@ export type ProjectRaw = {
163
169
  role: 'admin' | 'contributor' | 'viewer';
164
170
  }>;
165
171
  workspaceId: string | null;
172
+ remoteEnvConfigId: string | null;
166
173
  };
167
174
 
168
175
  export type OwnerDazlId = {
@@ -486,19 +493,30 @@ export type FeatureToggle = {
486
493
  updatedAt: string;
487
494
  };
488
495
 
489
- export type Workspace = {
496
+ export type WorkspaceBase = {
497
+ id: string;
498
+ name: string;
499
+ dazlUserId: string | null;
500
+ createdAt: string;
501
+ isDefault: boolean;
502
+ repoId: string | null;
503
+ };
504
+
505
+ export type WorkspaceWithRepo = {
490
506
  id: string;
491
507
  name: string;
492
- /**
493
- * The user which created the workspace. Null if the user was deleted.
494
- */
495
508
  dazlUserId: string | null;
496
509
  createdAt: string;
497
510
  isDefault: boolean;
511
+ repoId: string | null;
498
512
  /**
499
- * The ID of the repo associated with this workspace, if any.
513
+ * The full name of the repo associated with this workspace, if any.
500
514
  */
501
- 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;
502
520
  };
503
521
 
504
522
  export type CreateSessionAuthorized = {
@@ -1553,6 +1571,7 @@ export type GetProjectInfoResponses = {
1553
1571
  repoFullName: string;
1554
1572
  token: string | null;
1555
1573
  repoId: string;
1574
+ host: string;
1556
1575
  };
1557
1576
  };
1558
1577
 
@@ -2333,6 +2352,60 @@ export type GetEntriConfigResponses = {
2333
2352
 
2334
2353
  export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
2335
2354
 
2355
+ export type ListRemoteEnvConfigsData = {
2356
+ body?: never;
2357
+ path?: never;
2358
+ query?: never;
2359
+ url: '/project/remote-env-configs';
2360
+ };
2361
+
2362
+ export type ListRemoteEnvConfigsErrors = {
2363
+ /**
2364
+ * Bad request - Invalid parameters or malformed JSON
2365
+ */
2366
+ 400: {
2367
+ message: string;
2368
+ issues?: string;
2369
+ };
2370
+ /**
2371
+ * Unauthorized
2372
+ */
2373
+ 401: ErrorResponse;
2374
+ /**
2375
+ * Forbidden
2376
+ */
2377
+ 403: ErrorResponse;
2378
+ /**
2379
+ * Not Found
2380
+ */
2381
+ 404: ErrorResponse;
2382
+ /**
2383
+ * Conflict
2384
+ */
2385
+ 409: ErrorResponse;
2386
+ /**
2387
+ * Internal server error
2388
+ */
2389
+ 500: ErrorResponse;
2390
+ /**
2391
+ * Service Unavailable
2392
+ */
2393
+ 503: ErrorResponse;
2394
+ };
2395
+
2396
+ export type ListRemoteEnvConfigsError = ListRemoteEnvConfigsErrors[keyof ListRemoteEnvConfigsErrors];
2397
+
2398
+ export type ListRemoteEnvConfigsResponses = {
2399
+ /**
2400
+ * Returns the list of available remote env configs
2401
+ */
2402
+ 200: {
2403
+ remoteEnvConfigs: Array<RemoteEnvConfig>;
2404
+ };
2405
+ };
2406
+
2407
+ export type ListRemoteEnvConfigsResponse = ListRemoteEnvConfigsResponses[keyof ListRemoteEnvConfigsResponses];
2408
+
2336
2409
  export type DuplicateProjectData = {
2337
2410
  body: {
2338
2411
  /**
@@ -2529,6 +2602,7 @@ export type UpdateProjectData = {
2529
2602
  lastOpenedAt?: string | string | null;
2530
2603
  latestScreenshot?: string | null;
2531
2604
  archivedAt?: string | string | null;
2605
+ remoteEnvConfigId?: string | null;
2532
2606
  /**
2533
2607
  * The dazl ID of the requesting user, used for permission checks
2534
2608
  */
@@ -2723,6 +2797,7 @@ export type CreateProjectData = {
2723
2797
  originTemplateId?: string | null;
2724
2798
  createdAt?: string;
2725
2799
  workspaceId?: string;
2800
+ remoteEnvConfigId?: string | null;
2726
2801
  projectInitData?: {
2727
2802
  gitRepoURL: string;
2728
2803
  gitBranchToClone?: string | null;
@@ -6577,7 +6652,7 @@ export type CreateWorkspaceResponses = {
6577
6652
  * Returns the created workspace
6578
6653
  */
6579
6654
  200: {
6580
- workspace: Workspace;
6655
+ workspace: WorkspaceBase;
6581
6656
  };
6582
6657
  };
6583
6658
 
@@ -6635,7 +6710,7 @@ export type UpdateWorkspaceResponses = {
6635
6710
  * Returns the updated workspace
6636
6711
  */
6637
6712
  200: {
6638
- workspace: Workspace;
6713
+ workspace: WorkspaceBase;
6639
6714
  };
6640
6715
  };
6641
6716
 
@@ -6696,21 +6771,29 @@ export type GetWorkspaceResponses = {
6696
6771
  * Returns the workspace with the given ID
6697
6772
  */
6698
6773
  200: {
6699
- workspace: Workspace;
6774
+ workspace: WorkspaceWithRepo;
6700
6775
  };
6701
6776
  };
6702
6777
 
6703
6778
  export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
6704
6779
 
6705
6780
  export type GetAllWorkspacesData = {
6706
- body?: never;
6707
- path?: never;
6708
- query?: {
6781
+ body: {
6709
6782
  /**
6710
6783
  * Whether to include the members of each workspace
6711
6784
  */
6712
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;
6713
6794
  };
6795
+ path?: never;
6796
+ query?: never;
6714
6797
  url: '/workspace/list-my';
6715
6798
  };
6716
6799
 
@@ -6752,22 +6835,24 @@ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspace
6752
6835
 
6753
6836
  export type GetAllWorkspacesResponses = {
6754
6837
  /**
6755
- * Returns the list of workspaces that the user is a member of
6838
+ * Returns the list of workspaces for the current user
6756
6839
  */
6757
6840
  200: {
6758
6841
  workspaces: Array<{
6759
6842
  id: string;
6760
6843
  name: string;
6761
- /**
6762
- * The user which created the workspace. Null if the user was deleted.
6763
- */
6764
6844
  dazlUserId: string | null;
6765
6845
  createdAt: string;
6766
6846
  isDefault: boolean;
6847
+ repoId: string | null;
6767
6848
  /**
6768
- * The ID of the repo associated with this workspace, if any.
6849
+ * The full name of the repo associated with this workspace, if any.
6769
6850
  */
6770
- 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;
6771
6856
  owner?: {
6772
6857
  /**
6773
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"