@dazl/api-client 1.0.45 → 1.0.47

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.
@@ -2957,7 +2957,7 @@ export type GetPullRequestsStatusData = {
2957
2957
  number: number;
2958
2958
  }>;
2959
2959
  /**
2960
- * Falls back to this user's own GitHub connection when the project's installation cannot mint a token
2960
+ * Falls back to this user's own GitHub connection when the project's installation cannot mint a token. Must match x-user-id when both are sent; the caller must be able to see the project
2961
2961
  */
2962
2962
  actingUserDazlId?: string;
2963
2963
  };
@@ -4256,6 +4256,10 @@ export type GetProjectInitDataResponses = {
4256
4256
  */
4257
4257
  isWorkspaceRoot?: boolean;
4258
4258
  }>;
4259
+ /**
4260
+ * The session was created with no template and no repos: with no snapshot to restore, its root folder stays empty instead of receiving the default template app
4261
+ */
4262
+ startEmpty?: boolean;
4259
4263
  };
4260
4264
  };
4261
4265
 
@@ -6364,6 +6368,7 @@ export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses
6364
6368
 
6365
6369
  export type CreateChatData = {
6366
6370
  body: {
6371
+ id?: string;
6367
6372
  projectId: string;
6368
6373
  ownerDazlId: string;
6369
6374
  type: string;
@@ -6797,6 +6802,271 @@ export type AppendMessagesResponses = {
6797
6802
 
6798
6803
  export type AppendMessagesResponse = AppendMessagesResponses[keyof AppendMessagesResponses];
6799
6804
 
6805
+ export type ListSessionNotesData = {
6806
+ body?: never;
6807
+ path: {
6808
+ projectId: string;
6809
+ };
6810
+ query: {
6811
+ ownerDazlId: string;
6812
+ };
6813
+ url: '/session-note/project/{projectId}';
6814
+ };
6815
+
6816
+ export type ListSessionNotesErrors = {
6817
+ /**
6818
+ * Bad request - Invalid parameters or malformed JSON
6819
+ */
6820
+ 400: {
6821
+ message: string;
6822
+ issues?: string;
6823
+ };
6824
+ /**
6825
+ * Unauthorized
6826
+ */
6827
+ 401: ErrorResponse;
6828
+ /**
6829
+ * Forbidden
6830
+ */
6831
+ 403: ErrorResponse;
6832
+ /**
6833
+ * Not Found
6834
+ */
6835
+ 404: ErrorResponse;
6836
+ /**
6837
+ * Conflict
6838
+ */
6839
+ 409: ErrorResponse;
6840
+ /**
6841
+ * Internal server error
6842
+ */
6843
+ 500: ErrorResponse;
6844
+ /**
6845
+ * Service Unavailable
6846
+ */
6847
+ 503: ErrorResponse;
6848
+ };
6849
+
6850
+ export type ListSessionNotesError = ListSessionNotesErrors[keyof ListSessionNotesErrors];
6851
+
6852
+ export type ListSessionNotesResponses = {
6853
+ /**
6854
+ * Lists the session's notes (its shared summary), oldest first.
6855
+ */
6856
+ 200: {
6857
+ notes: Array<{
6858
+ id: string;
6859
+ projectId: string;
6860
+ content: string;
6861
+ createdAt: string;
6862
+ updatedAt: string;
6863
+ createdByChatId: string | null;
6864
+ updatedByChatId: string | null;
6865
+ updatedByUserId: string;
6866
+ }>;
6867
+ };
6868
+ };
6869
+
6870
+ export type ListSessionNotesResponse = ListSessionNotesResponses[keyof ListSessionNotesResponses];
6871
+
6872
+ export type CreateSessionNoteData = {
6873
+ body: {
6874
+ ownerDazlId: string;
6875
+ content: string;
6876
+ chatId?: string;
6877
+ };
6878
+ path: {
6879
+ projectId: string;
6880
+ };
6881
+ query?: never;
6882
+ url: '/session-note/project/{projectId}';
6883
+ };
6884
+
6885
+ export type CreateSessionNoteErrors = {
6886
+ /**
6887
+ * Bad request - Invalid parameters or malformed JSON
6888
+ */
6889
+ 400: {
6890
+ message: string;
6891
+ issues?: string;
6892
+ };
6893
+ /**
6894
+ * Unauthorized
6895
+ */
6896
+ 401: ErrorResponse;
6897
+ /**
6898
+ * Forbidden
6899
+ */
6900
+ 403: ErrorResponse;
6901
+ /**
6902
+ * Not Found
6903
+ */
6904
+ 404: ErrorResponse;
6905
+ /**
6906
+ * Conflict
6907
+ */
6908
+ 409: ErrorResponse;
6909
+ /**
6910
+ * Internal server error
6911
+ */
6912
+ 500: ErrorResponse;
6913
+ /**
6914
+ * Service Unavailable
6915
+ */
6916
+ 503: ErrorResponse;
6917
+ };
6918
+
6919
+ export type CreateSessionNoteError = CreateSessionNoteErrors[keyof CreateSessionNoteErrors];
6920
+
6921
+ export type CreateSessionNoteResponses = {
6922
+ /**
6923
+ * Adds a note to the session summary.
6924
+ */
6925
+ 200: {
6926
+ note: {
6927
+ id: string;
6928
+ projectId: string;
6929
+ content: string;
6930
+ createdAt: string;
6931
+ updatedAt: string;
6932
+ createdByChatId: string | null;
6933
+ updatedByChatId: string | null;
6934
+ updatedByUserId: string;
6935
+ };
6936
+ };
6937
+ };
6938
+
6939
+ export type CreateSessionNoteResponse = CreateSessionNoteResponses[keyof CreateSessionNoteResponses];
6940
+
6941
+ export type DeleteSessionNoteData = {
6942
+ body: {
6943
+ ownerDazlId: string;
6944
+ };
6945
+ path: {
6946
+ projectId: string;
6947
+ noteId: string;
6948
+ };
6949
+ query?: never;
6950
+ url: '/session-note/project/{projectId}/{noteId}';
6951
+ };
6952
+
6953
+ export type DeleteSessionNoteErrors = {
6954
+ /**
6955
+ * Bad request - Invalid parameters or malformed JSON
6956
+ */
6957
+ 400: {
6958
+ message: string;
6959
+ issues?: string;
6960
+ };
6961
+ /**
6962
+ * Unauthorized
6963
+ */
6964
+ 401: ErrorResponse;
6965
+ /**
6966
+ * Forbidden
6967
+ */
6968
+ 403: ErrorResponse;
6969
+ /**
6970
+ * Not Found
6971
+ */
6972
+ 404: ErrorResponse;
6973
+ /**
6974
+ * Conflict
6975
+ */
6976
+ 409: ErrorResponse;
6977
+ /**
6978
+ * Internal server error
6979
+ */
6980
+ 500: ErrorResponse;
6981
+ /**
6982
+ * Service Unavailable
6983
+ */
6984
+ 503: ErrorResponse;
6985
+ };
6986
+
6987
+ export type DeleteSessionNoteError = DeleteSessionNoteErrors[keyof DeleteSessionNoteErrors];
6988
+
6989
+ export type DeleteSessionNoteResponses = {
6990
+ /**
6991
+ * Removes a note from the session summary.
6992
+ */
6993
+ 200: {
6994
+ deleted: true;
6995
+ };
6996
+ };
6997
+
6998
+ export type DeleteSessionNoteResponse = DeleteSessionNoteResponses[keyof DeleteSessionNoteResponses];
6999
+
7000
+ export type UpdateSessionNoteData = {
7001
+ body: {
7002
+ ownerDazlId: string;
7003
+ content: string;
7004
+ chatId?: string;
7005
+ };
7006
+ path: {
7007
+ projectId: string;
7008
+ noteId: string;
7009
+ };
7010
+ query?: never;
7011
+ url: '/session-note/project/{projectId}/{noteId}';
7012
+ };
7013
+
7014
+ export type UpdateSessionNoteErrors = {
7015
+ /**
7016
+ * Bad request - Invalid parameters or malformed JSON
7017
+ */
7018
+ 400: {
7019
+ message: string;
7020
+ issues?: string;
7021
+ };
7022
+ /**
7023
+ * Unauthorized
7024
+ */
7025
+ 401: ErrorResponse;
7026
+ /**
7027
+ * Forbidden
7028
+ */
7029
+ 403: ErrorResponse;
7030
+ /**
7031
+ * Not Found
7032
+ */
7033
+ 404: ErrorResponse;
7034
+ /**
7035
+ * Conflict
7036
+ */
7037
+ 409: ErrorResponse;
7038
+ /**
7039
+ * Internal server error
7040
+ */
7041
+ 500: ErrorResponse;
7042
+ /**
7043
+ * Service Unavailable
7044
+ */
7045
+ 503: ErrorResponse;
7046
+ };
7047
+
7048
+ export type UpdateSessionNoteError = UpdateSessionNoteErrors[keyof UpdateSessionNoteErrors];
7049
+
7050
+ export type UpdateSessionNoteResponses = {
7051
+ /**
7052
+ * Replaces the content of a session note.
7053
+ */
7054
+ 200: {
7055
+ note: {
7056
+ id: string;
7057
+ projectId: string;
7058
+ content: string;
7059
+ createdAt: string;
7060
+ updatedAt: string;
7061
+ createdByChatId: string | null;
7062
+ updatedByChatId: string | null;
7063
+ updatedByUserId: string;
7064
+ };
7065
+ };
7066
+ };
7067
+
7068
+ export type UpdateSessionNoteResponse = UpdateSessionNoteResponses[keyof UpdateSessionNoteResponses];
7069
+
6800
7070
  export type GetUploadConfigurationData = {
6801
7071
  body: {
6802
7072
  /**
@@ -13088,7 +13358,7 @@ export type GetWorkspaceSecretsForProjectError = GetWorkspaceSecretsForProjectEr
13088
13358
 
13089
13359
  export type GetWorkspaceSecretsForProjectResponses = {
13090
13360
  /**
13091
- * The workspace's stored `.env` files, by repository
13361
+ * The effective `.env` files, by repository: the workspace-level copy with the caller's own keys overriding it
13092
13362
  */
13093
13363
  200: WorkspaceSecretsResponse;
13094
13364
  };
@@ -13142,7 +13412,7 @@ export type SetWorkspaceSecretsForProjectError = SetWorkspaceSecretsForProjectEr
13142
13412
 
13143
13413
  export type SetWorkspaceSecretsForProjectResponses = {
13144
13414
  /**
13145
- * Whether the copy was stored
13415
+ * Whether the copy was stored. Keys identical to the workspace-level copy are not stored as the caller's own
13146
13416
  */
13147
13417
  200: SetWorkspaceSecretsResponse;
13148
13418
  };
@@ -13312,3 +13582,167 @@ export type SetWorkspaceSecretsResponses = {
13312
13582
  };
13313
13583
 
13314
13584
  export type SetWorkspaceSecretsResponse2 = SetWorkspaceSecretsResponses[keyof SetWorkspaceSecretsResponses];
13585
+
13586
+ export type DeleteSharedWorkspaceSecretsData = {
13587
+ body?: never;
13588
+ path: {
13589
+ workspaceId: string;
13590
+ };
13591
+ query: {
13592
+ repo: string;
13593
+ };
13594
+ url: '/workspace-secrets/workspace/{workspaceId}/shared';
13595
+ };
13596
+
13597
+ export type DeleteSharedWorkspaceSecretsErrors = {
13598
+ /**
13599
+ * Bad request - Invalid parameters or malformed JSON
13600
+ */
13601
+ 400: {
13602
+ message: string;
13603
+ issues?: string;
13604
+ };
13605
+ /**
13606
+ * Unauthorized
13607
+ */
13608
+ 401: ErrorResponse;
13609
+ /**
13610
+ * Forbidden
13611
+ */
13612
+ 403: ErrorResponse;
13613
+ /**
13614
+ * Not Found
13615
+ */
13616
+ 404: ErrorResponse;
13617
+ /**
13618
+ * Conflict
13619
+ */
13620
+ 409: ErrorResponse;
13621
+ /**
13622
+ * Internal server error
13623
+ */
13624
+ 500: ErrorResponse;
13625
+ /**
13626
+ * Service Unavailable
13627
+ */
13628
+ 503: ErrorResponse;
13629
+ };
13630
+
13631
+ export type DeleteSharedWorkspaceSecretsError = DeleteSharedWorkspaceSecretsErrors[keyof DeleteSharedWorkspaceSecretsErrors];
13632
+
13633
+ export type DeleteSharedWorkspaceSecretsResponses = {
13634
+ /**
13635
+ * Whether an entry was removed
13636
+ */
13637
+ 200: DeleteWorkspaceSecretsResponse;
13638
+ };
13639
+
13640
+ export type DeleteSharedWorkspaceSecretsResponse = DeleteSharedWorkspaceSecretsResponses[keyof DeleteSharedWorkspaceSecretsResponses];
13641
+
13642
+ export type GetSharedWorkspaceSecretsData = {
13643
+ body?: never;
13644
+ path: {
13645
+ workspaceId: string;
13646
+ };
13647
+ query?: never;
13648
+ url: '/workspace-secrets/workspace/{workspaceId}/shared';
13649
+ };
13650
+
13651
+ export type GetSharedWorkspaceSecretsErrors = {
13652
+ /**
13653
+ * Bad request - Invalid parameters or malformed JSON
13654
+ */
13655
+ 400: {
13656
+ message: string;
13657
+ issues?: string;
13658
+ };
13659
+ /**
13660
+ * Unauthorized
13661
+ */
13662
+ 401: ErrorResponse;
13663
+ /**
13664
+ * Forbidden
13665
+ */
13666
+ 403: ErrorResponse;
13667
+ /**
13668
+ * Not Found
13669
+ */
13670
+ 404: ErrorResponse;
13671
+ /**
13672
+ * Conflict
13673
+ */
13674
+ 409: ErrorResponse;
13675
+ /**
13676
+ * Internal server error
13677
+ */
13678
+ 500: ErrorResponse;
13679
+ /**
13680
+ * Service Unavailable
13681
+ */
13682
+ 503: ErrorResponse;
13683
+ };
13684
+
13685
+ export type GetSharedWorkspaceSecretsError = GetSharedWorkspaceSecretsErrors[keyof GetSharedWorkspaceSecretsErrors];
13686
+
13687
+ export type GetSharedWorkspaceSecretsResponses = {
13688
+ /**
13689
+ * The workspace-level `.env` files, by repository
13690
+ */
13691
+ 200: WorkspaceSecretsByWorkspaceResponse;
13692
+ };
13693
+
13694
+ export type GetSharedWorkspaceSecretsResponse = GetSharedWorkspaceSecretsResponses[keyof GetSharedWorkspaceSecretsResponses];
13695
+
13696
+ export type SetSharedWorkspaceSecretsData = {
13697
+ body: SetWorkspaceSecretsRequest;
13698
+ path: {
13699
+ workspaceId: string;
13700
+ };
13701
+ query?: never;
13702
+ url: '/workspace-secrets/workspace/{workspaceId}/shared';
13703
+ };
13704
+
13705
+ export type SetSharedWorkspaceSecretsErrors = {
13706
+ /**
13707
+ * Bad request - Invalid parameters or malformed JSON
13708
+ */
13709
+ 400: {
13710
+ message: string;
13711
+ issues?: string;
13712
+ };
13713
+ /**
13714
+ * Unauthorized
13715
+ */
13716
+ 401: ErrorResponse;
13717
+ /**
13718
+ * Forbidden
13719
+ */
13720
+ 403: ErrorResponse;
13721
+ /**
13722
+ * Not Found
13723
+ */
13724
+ 404: ErrorResponse;
13725
+ /**
13726
+ * Conflict
13727
+ */
13728
+ 409: ErrorResponse;
13729
+ /**
13730
+ * Internal server error
13731
+ */
13732
+ 500: ErrorResponse;
13733
+ /**
13734
+ * Service Unavailable
13735
+ */
13736
+ 503: ErrorResponse;
13737
+ };
13738
+
13739
+ export type SetSharedWorkspaceSecretsError = SetSharedWorkspaceSecretsErrors[keyof SetSharedWorkspaceSecretsErrors];
13740
+
13741
+ export type SetSharedWorkspaceSecretsResponses = {
13742
+ /**
13743
+ * Whether the copy was stored
13744
+ */
13745
+ 200: SetWorkspaceSecretsByWorkspaceResponse;
13746
+ };
13747
+
13748
+ export type SetSharedWorkspaceSecretsResponse = SetSharedWorkspaceSecretsResponses[keyof SetSharedWorkspaceSecretsResponses];