@dazl/api-client 1.0.33 → 1.0.35
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 +6 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +29 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +287 -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 +6 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +29 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +287 -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 +35 -1
- package/src/internal/types.gen.ts +313 -0
- package/src/public/index.ts +1 -1
- package/src/public/sdk.gen.ts +35 -1
- package/src/public/types.gen.ts +313 -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
|
/**
|
|
@@ -7308,6 +7332,57 @@ export type CreateWorkspaceResponses = {
|
|
|
7308
7332
|
};
|
|
7309
7333
|
};
|
|
7310
7334
|
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
7335
|
+
export type DeleteWorkspaceData = {
|
|
7336
|
+
body?: never;
|
|
7337
|
+
path: {
|
|
7338
|
+
workspaceId: string;
|
|
7339
|
+
};
|
|
7340
|
+
query?: never;
|
|
7341
|
+
url: '/workspace/{workspaceId}';
|
|
7342
|
+
};
|
|
7343
|
+
export type DeleteWorkspaceErrors = {
|
|
7344
|
+
/**
|
|
7345
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7346
|
+
*/
|
|
7347
|
+
400: {
|
|
7348
|
+
message: string;
|
|
7349
|
+
issues?: string;
|
|
7350
|
+
};
|
|
7351
|
+
/**
|
|
7352
|
+
* Unauthorized
|
|
7353
|
+
*/
|
|
7354
|
+
401: ErrorResponse;
|
|
7355
|
+
/**
|
|
7356
|
+
* Forbidden
|
|
7357
|
+
*/
|
|
7358
|
+
403: ErrorResponse;
|
|
7359
|
+
/**
|
|
7360
|
+
* Not Found
|
|
7361
|
+
*/
|
|
7362
|
+
404: ErrorResponse;
|
|
7363
|
+
/**
|
|
7364
|
+
* Conflict
|
|
7365
|
+
*/
|
|
7366
|
+
409: ErrorResponse;
|
|
7367
|
+
/**
|
|
7368
|
+
* Internal server error
|
|
7369
|
+
*/
|
|
7370
|
+
500: ErrorResponse;
|
|
7371
|
+
/**
|
|
7372
|
+
* Service Unavailable
|
|
7373
|
+
*/
|
|
7374
|
+
503: ErrorResponse;
|
|
7375
|
+
};
|
|
7376
|
+
export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
|
|
7377
|
+
export type DeleteWorkspaceResponses = {
|
|
7378
|
+
/**
|
|
7379
|
+
* Acknowledges that the workspace was deleted
|
|
7380
|
+
*/
|
|
7381
|
+
200: {
|
|
7382
|
+
status: 'deleted';
|
|
7383
|
+
};
|
|
7384
|
+
};
|
|
7385
|
+
export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
|
|
7311
7386
|
export type UpdateWorkspaceData = {
|
|
7312
7387
|
body: {
|
|
7313
7388
|
name: string;
|
|
@@ -7788,6 +7863,218 @@ export type DeleteWorkspaceInvitationResponses = {
|
|
|
7788
7863
|
};
|
|
7789
7864
|
};
|
|
7790
7865
|
export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
|
|
7866
|
+
export type ListWorkspaceReposData = {
|
|
7867
|
+
body?: never;
|
|
7868
|
+
path: {
|
|
7869
|
+
workspaceId: string;
|
|
7870
|
+
};
|
|
7871
|
+
query?: never;
|
|
7872
|
+
url: '/workspace/{workspaceId}/repos';
|
|
7873
|
+
};
|
|
7874
|
+
export type ListWorkspaceReposErrors = {
|
|
7875
|
+
/**
|
|
7876
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7877
|
+
*/
|
|
7878
|
+
400: {
|
|
7879
|
+
message: string;
|
|
7880
|
+
issues?: string;
|
|
7881
|
+
};
|
|
7882
|
+
/**
|
|
7883
|
+
* Unauthorized
|
|
7884
|
+
*/
|
|
7885
|
+
401: ErrorResponse;
|
|
7886
|
+
/**
|
|
7887
|
+
* Forbidden
|
|
7888
|
+
*/
|
|
7889
|
+
403: ErrorResponse;
|
|
7890
|
+
/**
|
|
7891
|
+
* Not Found
|
|
7892
|
+
*/
|
|
7893
|
+
404: ErrorResponse;
|
|
7894
|
+
/**
|
|
7895
|
+
* Conflict
|
|
7896
|
+
*/
|
|
7897
|
+
409: ErrorResponse;
|
|
7898
|
+
/**
|
|
7899
|
+
* Internal server error
|
|
7900
|
+
*/
|
|
7901
|
+
500: ErrorResponse;
|
|
7902
|
+
/**
|
|
7903
|
+
* Service Unavailable
|
|
7904
|
+
*/
|
|
7905
|
+
503: ErrorResponse;
|
|
7906
|
+
};
|
|
7907
|
+
export type ListWorkspaceReposError = ListWorkspaceReposErrors[keyof ListWorkspaceReposErrors];
|
|
7908
|
+
export type ListWorkspaceReposResponses = {
|
|
7909
|
+
/**
|
|
7910
|
+
* Returns the repositories registered on the workspace, primary first
|
|
7911
|
+
*/
|
|
7912
|
+
200: {
|
|
7913
|
+
repos: Array<WorkspaceRepo>;
|
|
7914
|
+
};
|
|
7915
|
+
};
|
|
7916
|
+
export type ListWorkspaceReposResponse = ListWorkspaceReposResponses[keyof ListWorkspaceReposResponses];
|
|
7917
|
+
export type AddWorkspaceRepoData = {
|
|
7918
|
+
body: {
|
|
7919
|
+
/**
|
|
7920
|
+
* Clone URL or ssh shorthand; normalized server-side
|
|
7921
|
+
*/
|
|
7922
|
+
gitRepoURL: string;
|
|
7923
|
+
};
|
|
7924
|
+
path: {
|
|
7925
|
+
workspaceId: string;
|
|
7926
|
+
};
|
|
7927
|
+
query?: never;
|
|
7928
|
+
url: '/workspace/{workspaceId}/repos';
|
|
7929
|
+
};
|
|
7930
|
+
export type AddWorkspaceRepoErrors = {
|
|
7931
|
+
/**
|
|
7932
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7933
|
+
*/
|
|
7934
|
+
400: {
|
|
7935
|
+
message: string;
|
|
7936
|
+
issues?: string;
|
|
7937
|
+
};
|
|
7938
|
+
/**
|
|
7939
|
+
* Unauthorized
|
|
7940
|
+
*/
|
|
7941
|
+
401: ErrorResponse;
|
|
7942
|
+
/**
|
|
7943
|
+
* Forbidden
|
|
7944
|
+
*/
|
|
7945
|
+
403: ErrorResponse;
|
|
7946
|
+
/**
|
|
7947
|
+
* Not Found
|
|
7948
|
+
*/
|
|
7949
|
+
404: ErrorResponse;
|
|
7950
|
+
/**
|
|
7951
|
+
* Conflict
|
|
7952
|
+
*/
|
|
7953
|
+
409: ErrorResponse;
|
|
7954
|
+
/**
|
|
7955
|
+
* Internal server error
|
|
7956
|
+
*/
|
|
7957
|
+
500: ErrorResponse;
|
|
7958
|
+
/**
|
|
7959
|
+
* Service Unavailable
|
|
7960
|
+
*/
|
|
7961
|
+
503: ErrorResponse;
|
|
7962
|
+
};
|
|
7963
|
+
export type AddWorkspaceRepoError = AddWorkspaceRepoErrors[keyof AddWorkspaceRepoErrors];
|
|
7964
|
+
export type AddWorkspaceRepoResponses = {
|
|
7965
|
+
/**
|
|
7966
|
+
* Returns the registered repository
|
|
7967
|
+
*/
|
|
7968
|
+
200: {
|
|
7969
|
+
repo: WorkspaceRepo;
|
|
7970
|
+
};
|
|
7971
|
+
};
|
|
7972
|
+
export type AddWorkspaceRepoResponse = AddWorkspaceRepoResponses[keyof AddWorkspaceRepoResponses];
|
|
7973
|
+
export type RemoveWorkspaceRepoData = {
|
|
7974
|
+
body?: never;
|
|
7975
|
+
path: {
|
|
7976
|
+
workspaceId: string;
|
|
7977
|
+
repoId: string;
|
|
7978
|
+
};
|
|
7979
|
+
query?: never;
|
|
7980
|
+
url: '/workspace/{workspaceId}/repos/{repoId}';
|
|
7981
|
+
};
|
|
7982
|
+
export type RemoveWorkspaceRepoErrors = {
|
|
7983
|
+
/**
|
|
7984
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7985
|
+
*/
|
|
7986
|
+
400: {
|
|
7987
|
+
message: string;
|
|
7988
|
+
issues?: string;
|
|
7989
|
+
};
|
|
7990
|
+
/**
|
|
7991
|
+
* Unauthorized
|
|
7992
|
+
*/
|
|
7993
|
+
401: ErrorResponse;
|
|
7994
|
+
/**
|
|
7995
|
+
* Forbidden
|
|
7996
|
+
*/
|
|
7997
|
+
403: ErrorResponse;
|
|
7998
|
+
/**
|
|
7999
|
+
* Not Found
|
|
8000
|
+
*/
|
|
8001
|
+
404: ErrorResponse;
|
|
8002
|
+
/**
|
|
8003
|
+
* Conflict
|
|
8004
|
+
*/
|
|
8005
|
+
409: ErrorResponse;
|
|
8006
|
+
/**
|
|
8007
|
+
* Internal server error
|
|
8008
|
+
*/
|
|
8009
|
+
500: ErrorResponse;
|
|
8010
|
+
/**
|
|
8011
|
+
* Service Unavailable
|
|
8012
|
+
*/
|
|
8013
|
+
503: ErrorResponse;
|
|
8014
|
+
};
|
|
8015
|
+
export type RemoveWorkspaceRepoError = RemoveWorkspaceRepoErrors[keyof RemoveWorkspaceRepoErrors];
|
|
8016
|
+
export type RemoveWorkspaceRepoResponses = {
|
|
8017
|
+
/**
|
|
8018
|
+
* The repository is no longer registered
|
|
8019
|
+
*/
|
|
8020
|
+
200: {
|
|
8021
|
+
success: true;
|
|
8022
|
+
};
|
|
8023
|
+
};
|
|
8024
|
+
export type RemoveWorkspaceRepoResponse = RemoveWorkspaceRepoResponses[keyof RemoveWorkspaceRepoResponses];
|
|
8025
|
+
export type DuplicateWorkspaceData = {
|
|
8026
|
+
body: {
|
|
8027
|
+
name: string;
|
|
8028
|
+
};
|
|
8029
|
+
path: {
|
|
8030
|
+
workspaceId: string;
|
|
8031
|
+
};
|
|
8032
|
+
query?: never;
|
|
8033
|
+
url: '/workspace/{workspaceId}/duplicate';
|
|
8034
|
+
};
|
|
8035
|
+
export type DuplicateWorkspaceErrors = {
|
|
8036
|
+
/**
|
|
8037
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
8038
|
+
*/
|
|
8039
|
+
400: {
|
|
8040
|
+
message: string;
|
|
8041
|
+
issues?: string;
|
|
8042
|
+
};
|
|
8043
|
+
/**
|
|
8044
|
+
* Unauthorized
|
|
8045
|
+
*/
|
|
8046
|
+
401: ErrorResponse;
|
|
8047
|
+
/**
|
|
8048
|
+
* Forbidden
|
|
8049
|
+
*/
|
|
8050
|
+
403: ErrorResponse;
|
|
8051
|
+
/**
|
|
8052
|
+
* Not Found
|
|
8053
|
+
*/
|
|
8054
|
+
404: ErrorResponse;
|
|
8055
|
+
/**
|
|
8056
|
+
* Conflict
|
|
8057
|
+
*/
|
|
8058
|
+
409: ErrorResponse;
|
|
8059
|
+
/**
|
|
8060
|
+
* Internal server error
|
|
8061
|
+
*/
|
|
8062
|
+
500: ErrorResponse;
|
|
8063
|
+
/**
|
|
8064
|
+
* Service Unavailable
|
|
8065
|
+
*/
|
|
8066
|
+
503: ErrorResponse;
|
|
8067
|
+
};
|
|
8068
|
+
export type DuplicateWorkspaceError = DuplicateWorkspaceErrors[keyof DuplicateWorkspaceErrors];
|
|
8069
|
+
export type DuplicateWorkspaceResponses = {
|
|
8070
|
+
/**
|
|
8071
|
+
* Returns the duplicated workspace
|
|
8072
|
+
*/
|
|
8073
|
+
200: {
|
|
8074
|
+
workspace: WorkspaceBase;
|
|
8075
|
+
};
|
|
8076
|
+
};
|
|
8077
|
+
export type DuplicateWorkspaceResponse = DuplicateWorkspaceResponses[keyof DuplicateWorkspaceResponses];
|
|
7791
8078
|
export type GetMyValuesData = {
|
|
7792
8079
|
body?: never;
|
|
7793
8080
|
path?: never;
|