@dazl/api-client 1.0.32 → 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.
- package/dist/db/generated-types.d.ts +7 -0
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +5 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +19 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +235 -0
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +1 -1
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/sdk.gen.d.ts +4 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +16 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +183 -0
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +8 -0
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +24 -1
- package/src/internal/types.gen.ts +256 -0
- package/src/public/index.ts +1 -1
- package/src/public/sdk.gen.ts +20 -1
- package/src/public/types.gen.ts +199 -0
|
@@ -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
|
/**
|
|
@@ -1696,6 +1720,58 @@ export type GetUserInfoResponses = {
|
|
|
1696
1720
|
};
|
|
1697
1721
|
};
|
|
1698
1722
|
export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
|
|
1723
|
+
export type GetUserAccessTokenData = {
|
|
1724
|
+
body?: never;
|
|
1725
|
+
path: {
|
|
1726
|
+
dazlId: string;
|
|
1727
|
+
};
|
|
1728
|
+
query?: never;
|
|
1729
|
+
url: '/github/user/{dazlId}/access-token';
|
|
1730
|
+
};
|
|
1731
|
+
export type GetUserAccessTokenErrors = {
|
|
1732
|
+
/**
|
|
1733
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1734
|
+
*/
|
|
1735
|
+
400: {
|
|
1736
|
+
message: string;
|
|
1737
|
+
issues?: string;
|
|
1738
|
+
};
|
|
1739
|
+
/**
|
|
1740
|
+
* Unauthorized
|
|
1741
|
+
*/
|
|
1742
|
+
401: ErrorResponse;
|
|
1743
|
+
/**
|
|
1744
|
+
* Forbidden
|
|
1745
|
+
*/
|
|
1746
|
+
403: ErrorResponse;
|
|
1747
|
+
/**
|
|
1748
|
+
* Not Found
|
|
1749
|
+
*/
|
|
1750
|
+
404: ErrorResponse;
|
|
1751
|
+
/**
|
|
1752
|
+
* Conflict
|
|
1753
|
+
*/
|
|
1754
|
+
409: ErrorResponse;
|
|
1755
|
+
/**
|
|
1756
|
+
* Internal server error
|
|
1757
|
+
*/
|
|
1758
|
+
500: ErrorResponse;
|
|
1759
|
+
/**
|
|
1760
|
+
* Service Unavailable
|
|
1761
|
+
*/
|
|
1762
|
+
503: ErrorResponse;
|
|
1763
|
+
};
|
|
1764
|
+
export type GetUserAccessTokenError = GetUserAccessTokenErrors[keyof GetUserAccessTokenErrors];
|
|
1765
|
+
export type GetUserAccessTokenResponses = {
|
|
1766
|
+
/**
|
|
1767
|
+
* Returns the user's GitHub access token
|
|
1768
|
+
*/
|
|
1769
|
+
200: {
|
|
1770
|
+
accessToken: string;
|
|
1771
|
+
login: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
export type GetUserAccessTokenResponse = GetUserAccessTokenResponses[keyof GetUserAccessTokenResponses];
|
|
1699
1775
|
export type GetInstallationsData = {
|
|
1700
1776
|
body?: never;
|
|
1701
1777
|
path: {
|
|
@@ -7736,6 +7812,165 @@ export type DeleteWorkspaceInvitationResponses = {
|
|
|
7736
7812
|
};
|
|
7737
7813
|
};
|
|
7738
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];
|
|
7739
7974
|
export type GetMyValuesData = {
|
|
7740
7975
|
body?: never;
|
|
7741
7976
|
path?: never;
|