@dazl/api-client 1.0.33 → 1.0.34

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.
@@ -522,6 +522,30 @@ export type WorkspaceWithRepoAndMembers = {
522
522
  }>;
523
523
  projectCount?: number;
524
524
  };
525
+ export type WorkspaceRepo = {
526
+ repoId: string;
527
+ /**
528
+ * e.g. `acme/site`
529
+ */
530
+ repoFullName: string;
531
+ /**
532
+ * e.g. `github.com`
533
+ */
534
+ host: string;
535
+ /**
536
+ * Canonical https clone URL, passed verbatim when creating a session
537
+ */
538
+ gitRepoURL: string;
539
+ addedAt: string;
540
+ /**
541
+ * False when no GitHub App installation backs the repo, so a clone would fail
542
+ */
543
+ hasActiveInstallation: boolean;
544
+ /**
545
+ * Mirrors `Workspace.repoId`; exactly one registered repo is the primary
546
+ */
547
+ isPrimary: boolean;
548
+ };
525
549
  export type CreateSessionAuthorized = {
526
550
  status: 'authorized';
527
551
  /**
@@ -7788,6 +7812,165 @@ export type DeleteWorkspaceInvitationResponses = {
7788
7812
  };
7789
7813
  };
7790
7814
  export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
7815
+ export type ListWorkspaceReposData = {
7816
+ body?: never;
7817
+ path: {
7818
+ workspaceId: string;
7819
+ };
7820
+ query?: never;
7821
+ url: '/workspace/{workspaceId}/repos';
7822
+ };
7823
+ export type ListWorkspaceReposErrors = {
7824
+ /**
7825
+ * Bad request - Invalid parameters or malformed JSON
7826
+ */
7827
+ 400: {
7828
+ message: string;
7829
+ issues?: string;
7830
+ };
7831
+ /**
7832
+ * Unauthorized
7833
+ */
7834
+ 401: ErrorResponse;
7835
+ /**
7836
+ * Forbidden
7837
+ */
7838
+ 403: ErrorResponse;
7839
+ /**
7840
+ * Not Found
7841
+ */
7842
+ 404: ErrorResponse;
7843
+ /**
7844
+ * Conflict
7845
+ */
7846
+ 409: ErrorResponse;
7847
+ /**
7848
+ * Internal server error
7849
+ */
7850
+ 500: ErrorResponse;
7851
+ /**
7852
+ * Service Unavailable
7853
+ */
7854
+ 503: ErrorResponse;
7855
+ };
7856
+ export type ListWorkspaceReposError = ListWorkspaceReposErrors[keyof ListWorkspaceReposErrors];
7857
+ export type ListWorkspaceReposResponses = {
7858
+ /**
7859
+ * Returns the repositories registered on the workspace, primary first
7860
+ */
7861
+ 200: {
7862
+ repos: Array<WorkspaceRepo>;
7863
+ };
7864
+ };
7865
+ export type ListWorkspaceReposResponse = ListWorkspaceReposResponses[keyof ListWorkspaceReposResponses];
7866
+ export type AddWorkspaceRepoData = {
7867
+ body: {
7868
+ /**
7869
+ * Clone URL or ssh shorthand; normalized server-side
7870
+ */
7871
+ gitRepoURL: string;
7872
+ };
7873
+ path: {
7874
+ workspaceId: string;
7875
+ };
7876
+ query?: never;
7877
+ url: '/workspace/{workspaceId}/repos';
7878
+ };
7879
+ export type AddWorkspaceRepoErrors = {
7880
+ /**
7881
+ * Bad request - Invalid parameters or malformed JSON
7882
+ */
7883
+ 400: {
7884
+ message: string;
7885
+ issues?: string;
7886
+ };
7887
+ /**
7888
+ * Unauthorized
7889
+ */
7890
+ 401: ErrorResponse;
7891
+ /**
7892
+ * Forbidden
7893
+ */
7894
+ 403: ErrorResponse;
7895
+ /**
7896
+ * Not Found
7897
+ */
7898
+ 404: ErrorResponse;
7899
+ /**
7900
+ * Conflict
7901
+ */
7902
+ 409: ErrorResponse;
7903
+ /**
7904
+ * Internal server error
7905
+ */
7906
+ 500: ErrorResponse;
7907
+ /**
7908
+ * Service Unavailable
7909
+ */
7910
+ 503: ErrorResponse;
7911
+ };
7912
+ export type AddWorkspaceRepoError = AddWorkspaceRepoErrors[keyof AddWorkspaceRepoErrors];
7913
+ export type AddWorkspaceRepoResponses = {
7914
+ /**
7915
+ * Returns the registered repository
7916
+ */
7917
+ 200: {
7918
+ repo: WorkspaceRepo;
7919
+ };
7920
+ };
7921
+ export type AddWorkspaceRepoResponse = AddWorkspaceRepoResponses[keyof AddWorkspaceRepoResponses];
7922
+ export type RemoveWorkspaceRepoData = {
7923
+ body?: never;
7924
+ path: {
7925
+ workspaceId: string;
7926
+ repoId: string;
7927
+ };
7928
+ query?: never;
7929
+ url: '/workspace/{workspaceId}/repos/{repoId}';
7930
+ };
7931
+ export type RemoveWorkspaceRepoErrors = {
7932
+ /**
7933
+ * Bad request - Invalid parameters or malformed JSON
7934
+ */
7935
+ 400: {
7936
+ message: string;
7937
+ issues?: string;
7938
+ };
7939
+ /**
7940
+ * Unauthorized
7941
+ */
7942
+ 401: ErrorResponse;
7943
+ /**
7944
+ * Forbidden
7945
+ */
7946
+ 403: ErrorResponse;
7947
+ /**
7948
+ * Not Found
7949
+ */
7950
+ 404: ErrorResponse;
7951
+ /**
7952
+ * Conflict
7953
+ */
7954
+ 409: ErrorResponse;
7955
+ /**
7956
+ * Internal server error
7957
+ */
7958
+ 500: ErrorResponse;
7959
+ /**
7960
+ * Service Unavailable
7961
+ */
7962
+ 503: ErrorResponse;
7963
+ };
7964
+ export type RemoveWorkspaceRepoError = RemoveWorkspaceRepoErrors[keyof RemoveWorkspaceRepoErrors];
7965
+ export type RemoveWorkspaceRepoResponses = {
7966
+ /**
7967
+ * The repository is no longer registered
7968
+ */
7969
+ 200: {
7970
+ success: true;
7971
+ };
7972
+ };
7973
+ export type RemoveWorkspaceRepoResponse = RemoveWorkspaceRepoResponses[keyof RemoveWorkspaceRepoResponses];
7791
7974
  export type GetMyValuesData = {
7792
7975
  body?: never;
7793
7976
  path?: never;