@dazl/api-client 1.0.10 → 1.0.12

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.
@@ -148,6 +148,7 @@ export type ProjectRaw = {
148
148
  */
149
149
  updatedAt?: number;
150
150
  }>;
151
+ workspaceId: string | null;
151
152
  };
152
153
  export type OwnerDazlId = {
153
154
  /**
@@ -467,8 +468,12 @@ export type FeatureToggle = {
467
468
  export type Workspace = {
468
469
  id: string;
469
470
  name: string;
470
- dazlUserId: string;
471
+ /**
472
+ * The user which created the workspace. Null if the user was deleted.
473
+ */
474
+ dazlUserId: string | null;
471
475
  createdAt: string;
476
+ isDefault: boolean;
472
477
  };
473
478
  export type CreateSessionAuthorized = {
474
479
  status: 'authorized';
@@ -2426,6 +2431,7 @@ export type CreateProjectData = {
2426
2431
  latestScreenshot?: string | null;
2427
2432
  originTemplateId?: string | null;
2428
2433
  createdAt?: string;
2434
+ workspaceId?: string;
2429
2435
  projectInitData?: {
2430
2436
  gitRepoURL: string;
2431
2437
  gitBranchToClone?: string | null;
@@ -6800,6 +6806,237 @@ export type GetAllWorkspacesResponses = {
6800
6806
  };
6801
6807
  };
6802
6808
  export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6809
+ export type GetMyValuesData = {
6810
+ body?: never;
6811
+ path?: never;
6812
+ query?: {
6813
+ /**
6814
+ * Filter results to this category
6815
+ */
6816
+ categ?: string;
6817
+ };
6818
+ url: '/my-user-key-value/values';
6819
+ };
6820
+ export type GetMyValuesErrors = {
6821
+ /**
6822
+ * Bad request - Invalid parameters or malformed JSON
6823
+ */
6824
+ 400: {
6825
+ message: string;
6826
+ issues?: string;
6827
+ };
6828
+ /**
6829
+ * Unauthorized
6830
+ */
6831
+ 401: ErrorResponse;
6832
+ /**
6833
+ * Forbidden
6834
+ */
6835
+ 403: ErrorResponse;
6836
+ /**
6837
+ * Not Found
6838
+ */
6839
+ 404: ErrorResponse;
6840
+ /**
6841
+ * Conflict
6842
+ */
6843
+ 409: ErrorResponse;
6844
+ /**
6845
+ * Internal server error
6846
+ */
6847
+ 500: ErrorResponse;
6848
+ /**
6849
+ * Service Unavailable
6850
+ */
6851
+ 503: ErrorResponse;
6852
+ };
6853
+ export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6854
+ export type GetMyValuesResponses = {
6855
+ /**
6856
+ * Returns key values for the current user
6857
+ */
6858
+ 200: {
6859
+ values: Array<{
6860
+ id: string;
6861
+ dazlUserId: string;
6862
+ category: string;
6863
+ name: string;
6864
+ strVal: string | null;
6865
+ encryptedValId: string | null;
6866
+ createdAt: string;
6867
+ updatedAt: string;
6868
+ encryptedValue: string | null;
6869
+ }>;
6870
+ };
6871
+ };
6872
+ export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6873
+ export type SetMyValueData = {
6874
+ body: {
6875
+ value: string;
6876
+ isSecret?: boolean;
6877
+ };
6878
+ path: {
6879
+ categ: string;
6880
+ name: string;
6881
+ };
6882
+ query?: never;
6883
+ url: '/my-user-key-value/values/{categ}/{name}';
6884
+ };
6885
+ export type SetMyValueErrors = {
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
+ export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
6919
+ export type SetMyValueResponses = {
6920
+ /**
6921
+ * Sets a single key value and returns its id
6922
+ */
6923
+ 200: {
6924
+ id: string;
6925
+ };
6926
+ };
6927
+ export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
6928
+ export type DeleteMyCategValuesData = {
6929
+ body?: never;
6930
+ path: {
6931
+ categ: string;
6932
+ };
6933
+ query?: never;
6934
+ url: '/my-user-key-value/values/{categ}';
6935
+ };
6936
+ export type DeleteMyCategValuesErrors = {
6937
+ /**
6938
+ * Bad request - Invalid parameters or malformed JSON
6939
+ */
6940
+ 400: {
6941
+ message: string;
6942
+ issues?: string;
6943
+ };
6944
+ /**
6945
+ * Unauthorized
6946
+ */
6947
+ 401: ErrorResponse;
6948
+ /**
6949
+ * Forbidden
6950
+ */
6951
+ 403: ErrorResponse;
6952
+ /**
6953
+ * Not Found
6954
+ */
6955
+ 404: ErrorResponse;
6956
+ /**
6957
+ * Conflict
6958
+ */
6959
+ 409: ErrorResponse;
6960
+ /**
6961
+ * Internal server error
6962
+ */
6963
+ 500: ErrorResponse;
6964
+ /**
6965
+ * Service Unavailable
6966
+ */
6967
+ 503: ErrorResponse;
6968
+ };
6969
+ export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
6970
+ export type DeleteMyCategValuesResponses = {
6971
+ /**
6972
+ * Deletes all values for the category
6973
+ */
6974
+ 200: {
6975
+ categ: string;
6976
+ };
6977
+ };
6978
+ export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
6979
+ export type ReplaceMyCategValuesData = {
6980
+ body: {
6981
+ values: Array<{
6982
+ name: string;
6983
+ value: string;
6984
+ isSecret?: boolean;
6985
+ }>;
6986
+ };
6987
+ path: {
6988
+ categ: string;
6989
+ };
6990
+ query?: never;
6991
+ url: '/my-user-key-value/values/{categ}';
6992
+ };
6993
+ export type ReplaceMyCategValuesErrors = {
6994
+ /**
6995
+ * Bad request - Invalid parameters or malformed JSON
6996
+ */
6997
+ 400: {
6998
+ message: string;
6999
+ issues?: string;
7000
+ };
7001
+ /**
7002
+ * Unauthorized
7003
+ */
7004
+ 401: ErrorResponse;
7005
+ /**
7006
+ * Forbidden
7007
+ */
7008
+ 403: ErrorResponse;
7009
+ /**
7010
+ * Not Found
7011
+ */
7012
+ 404: ErrorResponse;
7013
+ /**
7014
+ * Conflict
7015
+ */
7016
+ 409: ErrorResponse;
7017
+ /**
7018
+ * Internal server error
7019
+ */
7020
+ 500: ErrorResponse;
7021
+ /**
7022
+ * Service Unavailable
7023
+ */
7024
+ 503: ErrorResponse;
7025
+ };
7026
+ export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7027
+ export type ReplaceMyCategValuesResponses = {
7028
+ /**
7029
+ * Replaces all values for the category and returns the upserted rows
7030
+ */
7031
+ 200: {
7032
+ values: Array<{
7033
+ id: string;
7034
+ name: string;
7035
+ }>;
7036
+ replaced: boolean;
7037
+ };
7038
+ };
7039
+ export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
6803
7040
  export type GetAllData = {
6804
7041
  body?: never;
6805
7042
  path?: never;