@dazl/api-client 1.0.38 → 1.0.39
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 +3 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/db/jsonb.types.d.ts +33 -0
- package/dist/db/jsonb.types.d.ts.map +1 -1
- package/dist/db/jsonb.types.js +2 -1
- package/dist/db/jsonb.types.js.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +9 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +34 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +366 -0
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +3 -1
- package/src/db/jsonb.types.ts +26 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +41 -1
- package/src/internal/types.gen.ts +403 -0
|
@@ -1016,6 +1016,54 @@ export type EditReplyInput = {
|
|
|
1016
1016
|
mentions?: Array<UserMention>;
|
|
1017
1017
|
};
|
|
1018
1018
|
|
|
1019
|
+
export type WorkspaceSecretsResponse = {
|
|
1020
|
+
workspaceId: string | null;
|
|
1021
|
+
/**
|
|
1022
|
+
* One entry per repository that holds a readable copy
|
|
1023
|
+
*/
|
|
1024
|
+
secrets: Array<RepoSecretsEntry>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Repositories whose stored copy cannot be served
|
|
1027
|
+
*/
|
|
1028
|
+
unreadable: Array<string>;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
export type RepoSecretsEntry = {
|
|
1032
|
+
repo: string;
|
|
1033
|
+
secrets: string;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
export type SetWorkspaceSecretsResponse = {
|
|
1037
|
+
stored: boolean;
|
|
1038
|
+
workspaceId: string | null;
|
|
1039
|
+
reason: 'stored' | 'too-many-repos' | 'no-workspace';
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
export type SetWorkspaceSecretsRequest = {
|
|
1043
|
+
repo: string;
|
|
1044
|
+
secrets: string;
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
export type WorkspaceSecretsByWorkspaceResponse = {
|
|
1048
|
+
/**
|
|
1049
|
+
* One entry per repository that holds a readable copy
|
|
1050
|
+
*/
|
|
1051
|
+
secrets: Array<RepoSecretsEntry>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Repositories whose stored copy cannot be served
|
|
1054
|
+
*/
|
|
1055
|
+
unreadable: Array<string>;
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
export type SetWorkspaceSecretsByWorkspaceResponse = {
|
|
1059
|
+
stored: boolean;
|
|
1060
|
+
reason: 'stored' | 'too-many-repos';
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
export type DeleteWorkspaceSecretsResponse = {
|
|
1064
|
+
removed: boolean;
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1019
1067
|
export type EnsureMyUserData = {
|
|
1020
1068
|
body?: {
|
|
1021
1069
|
name?: string;
|
|
@@ -2275,6 +2323,10 @@ export type CreateRepositoryResponses = {
|
|
|
2275
2323
|
repoFullName: string;
|
|
2276
2324
|
repoUrl: string;
|
|
2277
2325
|
branch: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2328
|
+
*/
|
|
2329
|
+
installationWarning?: string;
|
|
2278
2330
|
};
|
|
2279
2331
|
};
|
|
2280
2332
|
|
|
@@ -2345,6 +2397,10 @@ export type CreateProjectRepoResponses = {
|
|
|
2345
2397
|
repoUrl: string;
|
|
2346
2398
|
branch: string;
|
|
2347
2399
|
dirName: string | null;
|
|
2400
|
+
/**
|
|
2401
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2402
|
+
*/
|
|
2403
|
+
installationWarning?: string;
|
|
2348
2404
|
};
|
|
2349
2405
|
};
|
|
2350
2406
|
|
|
@@ -2413,6 +2469,10 @@ export type CreateWorkspaceRootRepoResponses = {
|
|
|
2413
2469
|
* Sessions of the workspace that now have it as their root repo
|
|
2414
2470
|
*/
|
|
2415
2471
|
linkedProjects: number;
|
|
2472
|
+
/**
|
|
2473
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2474
|
+
*/
|
|
2475
|
+
installationWarning?: string;
|
|
2416
2476
|
};
|
|
2417
2477
|
};
|
|
2418
2478
|
|
|
@@ -5624,6 +5684,9 @@ export type CreateChatResponses = {
|
|
|
5624
5684
|
archived: boolean;
|
|
5625
5685
|
createdByUserId: string;
|
|
5626
5686
|
schemaVersion: number;
|
|
5687
|
+
metadata: {
|
|
5688
|
+
[key: string]: unknown;
|
|
5689
|
+
} | null;
|
|
5627
5690
|
createdAt: string;
|
|
5628
5691
|
updatedAt: string;
|
|
5629
5692
|
pinnedContext?: unknown;
|
|
@@ -5697,6 +5760,9 @@ export type ListProjectChatsResponses = {
|
|
|
5697
5760
|
archived: boolean;
|
|
5698
5761
|
createdByUserId: string;
|
|
5699
5762
|
schemaVersion: number;
|
|
5763
|
+
metadata: {
|
|
5764
|
+
[key: string]: unknown;
|
|
5765
|
+
} | null;
|
|
5700
5766
|
createdAt: string;
|
|
5701
5767
|
updatedAt: string;
|
|
5702
5768
|
}>;
|
|
@@ -5825,6 +5891,9 @@ export type GetChatResponses = {
|
|
|
5825
5891
|
archived: boolean;
|
|
5826
5892
|
createdByUserId: string;
|
|
5827
5893
|
schemaVersion: number;
|
|
5894
|
+
metadata: {
|
|
5895
|
+
[key: string]: unknown;
|
|
5896
|
+
} | null;
|
|
5828
5897
|
createdAt: string;
|
|
5829
5898
|
updatedAt: string;
|
|
5830
5899
|
pinnedContext?: unknown;
|
|
@@ -5845,6 +5914,9 @@ export type UpdateChatData = {
|
|
|
5845
5914
|
archived: boolean;
|
|
5846
5915
|
pinnedContext?: unknown;
|
|
5847
5916
|
agentSession?: unknown;
|
|
5917
|
+
metadata?: {
|
|
5918
|
+
[key: string]: unknown;
|
|
5919
|
+
} | null;
|
|
5848
5920
|
schemaVersion: number;
|
|
5849
5921
|
messages: Array<{
|
|
5850
5922
|
id: string;
|
|
@@ -5907,6 +5979,9 @@ export type UpdateChatResponses = {
|
|
|
5907
5979
|
archived: boolean;
|
|
5908
5980
|
createdByUserId: string;
|
|
5909
5981
|
schemaVersion: number;
|
|
5982
|
+
metadata: {
|
|
5983
|
+
[key: string]: unknown;
|
|
5984
|
+
} | null;
|
|
5910
5985
|
createdAt: string;
|
|
5911
5986
|
updatedAt: string;
|
|
5912
5987
|
pinnedContext?: unknown;
|
|
@@ -10673,3 +10748,331 @@ export type EditReplyResponses = {
|
|
|
10673
10748
|
};
|
|
10674
10749
|
|
|
10675
10750
|
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
10751
|
+
|
|
10752
|
+
export type DeleteWorkspaceSecretsForProjectData = {
|
|
10753
|
+
body?: never;
|
|
10754
|
+
path: {
|
|
10755
|
+
projectId: string;
|
|
10756
|
+
};
|
|
10757
|
+
query: {
|
|
10758
|
+
repo: string;
|
|
10759
|
+
};
|
|
10760
|
+
url: '/workspace-secrets/{projectId}';
|
|
10761
|
+
};
|
|
10762
|
+
|
|
10763
|
+
export type DeleteWorkspaceSecretsForProjectErrors = {
|
|
10764
|
+
/**
|
|
10765
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10766
|
+
*/
|
|
10767
|
+
400: {
|
|
10768
|
+
message: string;
|
|
10769
|
+
issues?: string;
|
|
10770
|
+
};
|
|
10771
|
+
/**
|
|
10772
|
+
* Unauthorized
|
|
10773
|
+
*/
|
|
10774
|
+
401: ErrorResponse;
|
|
10775
|
+
/**
|
|
10776
|
+
* Forbidden
|
|
10777
|
+
*/
|
|
10778
|
+
403: ErrorResponse;
|
|
10779
|
+
/**
|
|
10780
|
+
* Not Found
|
|
10781
|
+
*/
|
|
10782
|
+
404: ErrorResponse;
|
|
10783
|
+
/**
|
|
10784
|
+
* Conflict
|
|
10785
|
+
*/
|
|
10786
|
+
409: ErrorResponse;
|
|
10787
|
+
/**
|
|
10788
|
+
* Internal server error
|
|
10789
|
+
*/
|
|
10790
|
+
500: ErrorResponse;
|
|
10791
|
+
/**
|
|
10792
|
+
* Service Unavailable
|
|
10793
|
+
*/
|
|
10794
|
+
503: ErrorResponse;
|
|
10795
|
+
};
|
|
10796
|
+
|
|
10797
|
+
export type DeleteWorkspaceSecretsForProjectError = DeleteWorkspaceSecretsForProjectErrors[keyof DeleteWorkspaceSecretsForProjectErrors];
|
|
10798
|
+
|
|
10799
|
+
export type DeleteWorkspaceSecretsForProjectResponses = {
|
|
10800
|
+
/**
|
|
10801
|
+
* Whether an entry was removed
|
|
10802
|
+
*/
|
|
10803
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
10804
|
+
};
|
|
10805
|
+
|
|
10806
|
+
export type DeleteWorkspaceSecretsForProjectResponse = DeleteWorkspaceSecretsForProjectResponses[keyof DeleteWorkspaceSecretsForProjectResponses];
|
|
10807
|
+
|
|
10808
|
+
export type GetWorkspaceSecretsForProjectData = {
|
|
10809
|
+
body?: never;
|
|
10810
|
+
path: {
|
|
10811
|
+
projectId: string;
|
|
10812
|
+
};
|
|
10813
|
+
query?: never;
|
|
10814
|
+
url: '/workspace-secrets/{projectId}';
|
|
10815
|
+
};
|
|
10816
|
+
|
|
10817
|
+
export type GetWorkspaceSecretsForProjectErrors = {
|
|
10818
|
+
/**
|
|
10819
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10820
|
+
*/
|
|
10821
|
+
400: {
|
|
10822
|
+
message: string;
|
|
10823
|
+
issues?: string;
|
|
10824
|
+
};
|
|
10825
|
+
/**
|
|
10826
|
+
* Unauthorized
|
|
10827
|
+
*/
|
|
10828
|
+
401: ErrorResponse;
|
|
10829
|
+
/**
|
|
10830
|
+
* Forbidden
|
|
10831
|
+
*/
|
|
10832
|
+
403: ErrorResponse;
|
|
10833
|
+
/**
|
|
10834
|
+
* Not Found
|
|
10835
|
+
*/
|
|
10836
|
+
404: ErrorResponse;
|
|
10837
|
+
/**
|
|
10838
|
+
* Conflict
|
|
10839
|
+
*/
|
|
10840
|
+
409: ErrorResponse;
|
|
10841
|
+
/**
|
|
10842
|
+
* Internal server error
|
|
10843
|
+
*/
|
|
10844
|
+
500: ErrorResponse;
|
|
10845
|
+
/**
|
|
10846
|
+
* Service Unavailable
|
|
10847
|
+
*/
|
|
10848
|
+
503: ErrorResponse;
|
|
10849
|
+
};
|
|
10850
|
+
|
|
10851
|
+
export type GetWorkspaceSecretsForProjectError = GetWorkspaceSecretsForProjectErrors[keyof GetWorkspaceSecretsForProjectErrors];
|
|
10852
|
+
|
|
10853
|
+
export type GetWorkspaceSecretsForProjectResponses = {
|
|
10854
|
+
/**
|
|
10855
|
+
* The workspace's stored `.env` files, by repository
|
|
10856
|
+
*/
|
|
10857
|
+
200: WorkspaceSecretsResponse;
|
|
10858
|
+
};
|
|
10859
|
+
|
|
10860
|
+
export type GetWorkspaceSecretsForProjectResponse = GetWorkspaceSecretsForProjectResponses[keyof GetWorkspaceSecretsForProjectResponses];
|
|
10861
|
+
|
|
10862
|
+
export type SetWorkspaceSecretsForProjectData = {
|
|
10863
|
+
body: SetWorkspaceSecretsRequest;
|
|
10864
|
+
path: {
|
|
10865
|
+
projectId: string;
|
|
10866
|
+
};
|
|
10867
|
+
query?: never;
|
|
10868
|
+
url: '/workspace-secrets/{projectId}';
|
|
10869
|
+
};
|
|
10870
|
+
|
|
10871
|
+
export type SetWorkspaceSecretsForProjectErrors = {
|
|
10872
|
+
/**
|
|
10873
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10874
|
+
*/
|
|
10875
|
+
400: {
|
|
10876
|
+
message: string;
|
|
10877
|
+
issues?: string;
|
|
10878
|
+
};
|
|
10879
|
+
/**
|
|
10880
|
+
* Unauthorized
|
|
10881
|
+
*/
|
|
10882
|
+
401: ErrorResponse;
|
|
10883
|
+
/**
|
|
10884
|
+
* Forbidden
|
|
10885
|
+
*/
|
|
10886
|
+
403: ErrorResponse;
|
|
10887
|
+
/**
|
|
10888
|
+
* Not Found
|
|
10889
|
+
*/
|
|
10890
|
+
404: ErrorResponse;
|
|
10891
|
+
/**
|
|
10892
|
+
* Conflict
|
|
10893
|
+
*/
|
|
10894
|
+
409: ErrorResponse;
|
|
10895
|
+
/**
|
|
10896
|
+
* Internal server error
|
|
10897
|
+
*/
|
|
10898
|
+
500: ErrorResponse;
|
|
10899
|
+
/**
|
|
10900
|
+
* Service Unavailable
|
|
10901
|
+
*/
|
|
10902
|
+
503: ErrorResponse;
|
|
10903
|
+
};
|
|
10904
|
+
|
|
10905
|
+
export type SetWorkspaceSecretsForProjectError = SetWorkspaceSecretsForProjectErrors[keyof SetWorkspaceSecretsForProjectErrors];
|
|
10906
|
+
|
|
10907
|
+
export type SetWorkspaceSecretsForProjectResponses = {
|
|
10908
|
+
/**
|
|
10909
|
+
* Whether the copy was stored
|
|
10910
|
+
*/
|
|
10911
|
+
200: SetWorkspaceSecretsResponse;
|
|
10912
|
+
};
|
|
10913
|
+
|
|
10914
|
+
export type SetWorkspaceSecretsForProjectResponse = SetWorkspaceSecretsForProjectResponses[keyof SetWorkspaceSecretsForProjectResponses];
|
|
10915
|
+
|
|
10916
|
+
export type DeleteWorkspaceSecretsData = {
|
|
10917
|
+
body?: never;
|
|
10918
|
+
path: {
|
|
10919
|
+
workspaceId: string;
|
|
10920
|
+
};
|
|
10921
|
+
query: {
|
|
10922
|
+
repo: string;
|
|
10923
|
+
};
|
|
10924
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
10925
|
+
};
|
|
10926
|
+
|
|
10927
|
+
export type DeleteWorkspaceSecretsErrors = {
|
|
10928
|
+
/**
|
|
10929
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10930
|
+
*/
|
|
10931
|
+
400: {
|
|
10932
|
+
message: string;
|
|
10933
|
+
issues?: string;
|
|
10934
|
+
};
|
|
10935
|
+
/**
|
|
10936
|
+
* Unauthorized
|
|
10937
|
+
*/
|
|
10938
|
+
401: ErrorResponse;
|
|
10939
|
+
/**
|
|
10940
|
+
* Forbidden
|
|
10941
|
+
*/
|
|
10942
|
+
403: ErrorResponse;
|
|
10943
|
+
/**
|
|
10944
|
+
* Not Found
|
|
10945
|
+
*/
|
|
10946
|
+
404: ErrorResponse;
|
|
10947
|
+
/**
|
|
10948
|
+
* Conflict
|
|
10949
|
+
*/
|
|
10950
|
+
409: ErrorResponse;
|
|
10951
|
+
/**
|
|
10952
|
+
* Internal server error
|
|
10953
|
+
*/
|
|
10954
|
+
500: ErrorResponse;
|
|
10955
|
+
/**
|
|
10956
|
+
* Service Unavailable
|
|
10957
|
+
*/
|
|
10958
|
+
503: ErrorResponse;
|
|
10959
|
+
};
|
|
10960
|
+
|
|
10961
|
+
export type DeleteWorkspaceSecretsError = DeleteWorkspaceSecretsErrors[keyof DeleteWorkspaceSecretsErrors];
|
|
10962
|
+
|
|
10963
|
+
export type DeleteWorkspaceSecretsResponses = {
|
|
10964
|
+
/**
|
|
10965
|
+
* Whether an entry was removed
|
|
10966
|
+
*/
|
|
10967
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
10968
|
+
};
|
|
10969
|
+
|
|
10970
|
+
export type DeleteWorkspaceSecretsResponse2 = DeleteWorkspaceSecretsResponses[keyof DeleteWorkspaceSecretsResponses];
|
|
10971
|
+
|
|
10972
|
+
export type GetWorkspaceSecretsData = {
|
|
10973
|
+
body?: never;
|
|
10974
|
+
path: {
|
|
10975
|
+
workspaceId: string;
|
|
10976
|
+
};
|
|
10977
|
+
query?: never;
|
|
10978
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
10979
|
+
};
|
|
10980
|
+
|
|
10981
|
+
export type GetWorkspaceSecretsErrors = {
|
|
10982
|
+
/**
|
|
10983
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10984
|
+
*/
|
|
10985
|
+
400: {
|
|
10986
|
+
message: string;
|
|
10987
|
+
issues?: string;
|
|
10988
|
+
};
|
|
10989
|
+
/**
|
|
10990
|
+
* Unauthorized
|
|
10991
|
+
*/
|
|
10992
|
+
401: ErrorResponse;
|
|
10993
|
+
/**
|
|
10994
|
+
* Forbidden
|
|
10995
|
+
*/
|
|
10996
|
+
403: ErrorResponse;
|
|
10997
|
+
/**
|
|
10998
|
+
* Not Found
|
|
10999
|
+
*/
|
|
11000
|
+
404: ErrorResponse;
|
|
11001
|
+
/**
|
|
11002
|
+
* Conflict
|
|
11003
|
+
*/
|
|
11004
|
+
409: ErrorResponse;
|
|
11005
|
+
/**
|
|
11006
|
+
* Internal server error
|
|
11007
|
+
*/
|
|
11008
|
+
500: ErrorResponse;
|
|
11009
|
+
/**
|
|
11010
|
+
* Service Unavailable
|
|
11011
|
+
*/
|
|
11012
|
+
503: ErrorResponse;
|
|
11013
|
+
};
|
|
11014
|
+
|
|
11015
|
+
export type GetWorkspaceSecretsError = GetWorkspaceSecretsErrors[keyof GetWorkspaceSecretsErrors];
|
|
11016
|
+
|
|
11017
|
+
export type GetWorkspaceSecretsResponses = {
|
|
11018
|
+
/**
|
|
11019
|
+
* The workspace's stored `.env` files, by repository
|
|
11020
|
+
*/
|
|
11021
|
+
200: WorkspaceSecretsByWorkspaceResponse;
|
|
11022
|
+
};
|
|
11023
|
+
|
|
11024
|
+
export type GetWorkspaceSecretsResponse = GetWorkspaceSecretsResponses[keyof GetWorkspaceSecretsResponses];
|
|
11025
|
+
|
|
11026
|
+
export type SetWorkspaceSecretsData = {
|
|
11027
|
+
body: SetWorkspaceSecretsRequest;
|
|
11028
|
+
path: {
|
|
11029
|
+
workspaceId: string;
|
|
11030
|
+
};
|
|
11031
|
+
query?: never;
|
|
11032
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
11033
|
+
};
|
|
11034
|
+
|
|
11035
|
+
export type SetWorkspaceSecretsErrors = {
|
|
11036
|
+
/**
|
|
11037
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11038
|
+
*/
|
|
11039
|
+
400: {
|
|
11040
|
+
message: string;
|
|
11041
|
+
issues?: string;
|
|
11042
|
+
};
|
|
11043
|
+
/**
|
|
11044
|
+
* Unauthorized
|
|
11045
|
+
*/
|
|
11046
|
+
401: ErrorResponse;
|
|
11047
|
+
/**
|
|
11048
|
+
* Forbidden
|
|
11049
|
+
*/
|
|
11050
|
+
403: ErrorResponse;
|
|
11051
|
+
/**
|
|
11052
|
+
* Not Found
|
|
11053
|
+
*/
|
|
11054
|
+
404: ErrorResponse;
|
|
11055
|
+
/**
|
|
11056
|
+
* Conflict
|
|
11057
|
+
*/
|
|
11058
|
+
409: ErrorResponse;
|
|
11059
|
+
/**
|
|
11060
|
+
* Internal server error
|
|
11061
|
+
*/
|
|
11062
|
+
500: ErrorResponse;
|
|
11063
|
+
/**
|
|
11064
|
+
* Service Unavailable
|
|
11065
|
+
*/
|
|
11066
|
+
503: ErrorResponse;
|
|
11067
|
+
};
|
|
11068
|
+
|
|
11069
|
+
export type SetWorkspaceSecretsError = SetWorkspaceSecretsErrors[keyof SetWorkspaceSecretsErrors];
|
|
11070
|
+
|
|
11071
|
+
export type SetWorkspaceSecretsResponses = {
|
|
11072
|
+
/**
|
|
11073
|
+
* Whether the copy was stored
|
|
11074
|
+
*/
|
|
11075
|
+
200: SetWorkspaceSecretsByWorkspaceResponse;
|
|
11076
|
+
};
|
|
11077
|
+
|
|
11078
|
+
export type SetWorkspaceSecretsResponse2 = SetWorkspaceSecretsResponses[keyof SetWorkspaceSecretsResponses];
|