@keboola/api-client 54.0.0 → 55.0.0

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.
Files changed (114) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +1 -1
  3. package/dist/{componentId-Cps6WBy1.js → componentId-Ba4gsJ9O.js} +3 -1
  4. package/dist/componentId-Ba4gsJ9O.js.map +1 -0
  5. package/dist/{componentId-_tRhEv6W.cjs → componentId-Ba_1Gv_A.cjs} +3 -1
  6. package/dist/componentId-Ba_1Gv_A.cjs.map +1 -0
  7. package/dist/constants/index.cjs +3 -2
  8. package/dist/constants/index.d.cts +2 -2
  9. package/dist/constants/index.d.ts +2 -2
  10. package/dist/constants/index.js +3 -3
  11. package/dist/{constants-DLPkpnGv.js → constants-HccvU5kx.js} +9 -2
  12. package/dist/constants-HccvU5kx.js.map +1 -0
  13. package/dist/{constants-Day8CU5i.cjs → constants-V9hAyPTo.cjs} +14 -1
  14. package/dist/constants-V9hAyPTo.cjs.map +1 -0
  15. package/dist/encryption/index.d.cts +1 -1
  16. package/dist/encryption/index.d.ts +1 -1
  17. package/dist/encryption/types.d.cts +1 -1
  18. package/dist/encryption/types.d.ts +1 -1
  19. package/dist/{index-DX7qciZA.d.cts → index-BE6qM0vu.d.cts} +526 -30
  20. package/dist/{index-DCfumWzq.d.ts → index-BGsP2QBc.d.ts} +2 -2
  21. package/dist/{index-Df30jjpZ.d.ts → index-CQPs3hrp.d.ts} +15 -38
  22. package/dist/{index-B04rWq_0.d.cts → index-CWowDl63.d.cts} +2 -2
  23. package/dist/{index-Cd0naVic.d.cts → index-CYk7Aa8u.d.cts} +11 -2
  24. package/dist/{index-BtvWJBYh.d.cts → index-CmyFWQXn.d.cts} +15 -38
  25. package/dist/{index-DbStyQKc.d.ts → index-D3hWR_e4.d.ts} +11 -2
  26. package/dist/{index-DzqHh0lE.d.ts → index-DeWeUUfE.d.ts} +526 -30
  27. package/dist/index.cjs +8 -13
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +2 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +8 -13
  32. package/dist/index.js.map +1 -1
  33. package/dist/management/index.cjs +1 -1
  34. package/dist/management/index.d.cts +1 -1
  35. package/dist/management/index.d.ts +1 -1
  36. package/dist/management/index.js +1 -1
  37. package/dist/management/types.d.cts +2 -2
  38. package/dist/management/types.d.ts +2 -2
  39. package/dist/{management-BAfg8BmK.js → management-BlMQnPNS.js} +10 -16
  40. package/dist/management-BlMQnPNS.js.map +1 -0
  41. package/dist/{management-BuNIc7Mr.cjs → management-dIMrTTpI.cjs} +10 -16
  42. package/dist/management-dIMrTTpI.cjs.map +1 -0
  43. package/dist/oauth/index.cjs +1 -1
  44. package/dist/oauth/index.d.cts +8 -1
  45. package/dist/oauth/index.d.ts +8 -1
  46. package/dist/oauth/index.js +1 -1
  47. package/dist/oauth/types.d.cts +2 -2
  48. package/dist/oauth/types.d.ts +2 -2
  49. package/dist/{oauth-CXcrilOp.cjs → oauth-CEW2AvDV.cjs} +9 -1
  50. package/dist/{oauth-CXcrilOp.cjs.map → oauth-CEW2AvDV.cjs.map} +1 -1
  51. package/dist/{oauth-Ci0qeaS2.js → oauth-Fri6IthS.js} +9 -1
  52. package/dist/{oauth-Ci0qeaS2.js.map → oauth-Fri6IthS.js.map} +1 -1
  53. package/dist/queryService/index.d.cts +1 -1
  54. package/dist/queryService/index.d.ts +1 -1
  55. package/dist/queryService/types.d.cts +1 -1
  56. package/dist/queryService/types.d.ts +1 -1
  57. package/dist/queue/index.d.cts +1 -1
  58. package/dist/queue/index.d.ts +1 -1
  59. package/dist/sdk/configurations/index.cjs +47 -2
  60. package/dist/sdk/configurations/index.cjs.map +1 -1
  61. package/dist/sdk/configurations/index.d.cts +230 -2
  62. package/dist/sdk/configurations/index.d.ts +230 -2
  63. package/dist/sdk/configurations/index.js +47 -2
  64. package/dist/sdk/configurations/index.js.map +1 -1
  65. package/dist/sdk/dataAppServer/index.cjs +1 -1
  66. package/dist/sdk/dataAppServer/index.cjs.map +1 -1
  67. package/dist/sdk/dataAppServer/index.d.cts +1 -1
  68. package/dist/sdk/dataAppServer/index.d.ts +1 -1
  69. package/dist/sdk/dataAppServer/index.js +1 -1
  70. package/dist/sdk/dataAppServer/index.js.map +1 -1
  71. package/dist/sdk/queryService/index.d.cts +1 -1
  72. package/dist/sdk/queryService/index.d.ts +1 -1
  73. package/dist/sdk/securityPolicy/index.cjs +13 -3
  74. package/dist/sdk/securityPolicy/index.cjs.map +1 -1
  75. package/dist/sdk/securityPolicy/index.d.cts +11 -1
  76. package/dist/sdk/securityPolicy/index.d.ts +11 -1
  77. package/dist/sdk/securityPolicy/index.js +12 -4
  78. package/dist/sdk/securityPolicy/index.js.map +1 -1
  79. package/dist/sdk/vault/index.cjs +3 -12
  80. package/dist/sdk/vault/index.cjs.map +1 -1
  81. package/dist/sdk/vault/index.d.cts +1 -1
  82. package/dist/sdk/vault/index.d.ts +1 -1
  83. package/dist/sdk/vault/index.js +3 -12
  84. package/dist/sdk/vault/index.js.map +1 -1
  85. package/dist/storage/index.cjs +1 -1
  86. package/dist/storage/index.d.cts +2 -2
  87. package/dist/storage/index.d.ts +2 -2
  88. package/dist/storage/index.js +1 -1
  89. package/dist/storage/types.d.cts +2 -2
  90. package/dist/storage/types.d.ts +2 -2
  91. package/dist/{storage-BMrYlyLB.cjs → storage-BL-TfHp8.cjs} +2 -2
  92. package/dist/storage-BL-TfHp8.cjs.map +1 -0
  93. package/dist/{storage--2FvvLAw.js → storage-DEJN8sw-.js} +2 -2
  94. package/dist/storage-DEJN8sw-.js.map +1 -0
  95. package/dist/syncActions/index.cjs +1 -1
  96. package/dist/syncActions/index.js +1 -1
  97. package/dist/{syncActions-CR7xvuIv.cjs → syncActions-B9JTiSao.cjs} +2 -2
  98. package/dist/{syncActions-CR7xvuIv.cjs.map → syncActions-B9JTiSao.cjs.map} +1 -1
  99. package/dist/{syncActions-CU4cIGRf.js → syncActions-W98Jme2Z.js} +2 -2
  100. package/dist/{syncActions-CU4cIGRf.js.map → syncActions-W98Jme2Z.js.map} +1 -1
  101. package/dist/{types-B7FKoyfy.d.cts → types-Bwvss_gW.d.cts} +819 -388
  102. package/dist/{types-CaBcgsT2.d.cts → types-DMhgKHCP.d.cts} +221 -54
  103. package/dist/{types-COb2O9c1.d.ts → types-J_dgwMjP.d.ts} +819 -388
  104. package/dist/{types-DFcj9YyQ.d.ts → types-p_lWvuQJ.d.ts} +221 -54
  105. package/package.json +3 -3
  106. package/surface/management.md +25 -25
  107. package/dist/componentId-Cps6WBy1.js.map +0 -1
  108. package/dist/componentId-_tRhEv6W.cjs.map +0 -1
  109. package/dist/constants-DLPkpnGv.js.map +0 -1
  110. package/dist/constants-Day8CU5i.cjs.map +0 -1
  111. package/dist/management-BAfg8BmK.js.map +0 -1
  112. package/dist/management-BuNIc7Mr.cjs.map +0 -1
  113. package/dist/storage--2FvvLAw.js.map +0 -1
  114. package/dist/storage-BMrYlyLB.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { di as MiddlewareFn, ni as ManagementClientAuthError, p as createGenericFetchClient, t as createOpenapiFetchClient, ti as ManagementSessionMintError } from "./index-FrsEkDvX.cjs";
2
2
  import { n as ClientInitOptions } from "./types-B4ezB18r.cjs";
3
- import { $ as GetProjectReviewersPath, $r as paths, An as MaintainerMetadataItemPath, At as SetProjectLimitsInput, Br as DeletedProjectsListQuery, Bt as GetUsersQuery, C as StorageBackend, Cr as RotateFileStorageAbsInput, Ct as RemoveProjectUserPath, Dn as MaintainerDetail, En as Maintainer, Er as RotateFileStorageGcsInput, Et as Reviewer, F as SearchQuery, G as CreateProjectFeatureBody, Gn as AddOrganizationUserInput, Gt as UpdateUserInput, In as SamlConfigPath, Ir as GetAllFeaturesQuery, It as UpdateProjectInput, J as CreateProjectInvitationPath, Jn as CreateOrganizationInvitationInput, Jt as UserListItem, K as CreateProjectFeaturePath, Kt as User, Lt as AddUserFeatureBody, Mn as MaintainerUser, Mr as Feature, Mt as SetProjectMetadataPath, Nn as MaintainerUserPath, Nr as FeatureAdmin, Nt as SetProjectReviewersBody, Ot as SetProjectDisabledInput, Pr as FeatureProject, Pt as SetProjectReviewersPath, Q as GetProjectPath, Qn as OrganizationDetail, Qr as components, Qt as UserProjectMembership, R as AddProjectUserBody, Rt as AddUserFeaturePath, Sn as CreateMaintainerOrganizationInput, St as RemoveProjectTemplateFeaturePath, Tt as RequestProjectAccessInput, U as ChangeProjectUserRoleInput, Un as UpdateSamlConfigInput, Ut as SetUserMetadataInput, V as AssignProjectTemplateFeatureInput, Vn as UpdateMaintainerInput, Vt as RemoveUserFeaturePath, X as DeleteProjectMetadataPath, Xn as CreateOrganizationProjectInput, Xr as CreateApplicationTokenBody, Xt as UserOrganizationMembership, Y as DeleteProjectInvitationPath, Yt as UserMaintainerMembership, Z as GetProjectMetadataPath, _n as CompleteSamlSetupInput, _r as FileStorageGcs, a as GetUiAppsQuery, an as PayAsYouGoBillingConfiguration, bn as CreateMaintainerInvitationInput, br as FileStorageProjectsQuery, bt as RemoveProjectFeaturePath, c as UiApp, cn as TopUpSetting, cr as SetOrganizationMetadataInput, ct as ProjectBase, dr as SetUpBigQueryBody, er as OrganizationInvitationPath, f as CreateBigqueryServerSideStorageBackendBody, fr as CreateFileStorageAbsBody, g as GetStorageBackendProjectsQuery, hn as AddMaintainerUserInput, hr as FileStorage, i as ReactivateWorkspaceResult, in as CreditPurchase, it as ListProjectUsersPath, j as UpdateStorageBackendInput, jr as UpdateFileStorageBody, jt as SetProjectMetadataBody, k as UpdateBigqueryStorageBackendInput, kn as MaintainerInvitationPath, kr as RotateFileStorageS3Input, l as UiAppDetail, ln as UpdateStripeCustomerBody, m as CreateSnowflakeStorageBackendBody, mr as CreateFileStorageS3Body, n as ProjectRetentionWorkspace, nn as CreatePaymentRequestBody, nt as ListProjectInvitationsPath, o as RegisterUiAppBody, on as StripeCustomer, or as OrganizationUserPath, ot as MoveProjectInput, p as CreateBigqueryStorageBackendBody, pr as CreateFileStorageGcsBody, pt as ProjectJoinRequestPath, q as CreateProjectInvitationBody, qt as UserDetail, r as ProjectRetentionWorkspaceState, rn as CreditPaymentRequest, rr as OrganizationMetadataItemPath, rt as ListProjectJoinRequestsPath, s as RenameUiAppBody, st as Project, tt as JoinProjectInput, un as UpdateTopUpSettingBody, ur as UpdateOrganizationInput, vn as CreateMaintainerBody, w as StorageBackendBigquery, wn as CreateSamlConfigInput, xt as RemoveProjectLimitPath, y as PolicyTagEnablementGuideInput, yt as ProjectWithFeatureWarnings, z as AddProjectUserPath, zn as SetMaintainerMetadataInput, zt as DeleteUserMetadataPath } from "./types-B7FKoyfy.cjs";
3
+ import { $r as DeletedProjectsListQuery, A as CreateBigqueryStorageBackendBody, An as CompleteSamlSetupInput, Ar as FileStorageGcs, B as StorageBackend, Bn as MaintainerDetail, C as UserDetail, Cn as UpdateTopUpSettingBody, Cr as UpdateOrganizationInput, Ct as GetProjectReviewersPath, Dr as CreateFileStorageS3Body, Dt as ListProjectInvitationsPath, E as UserOrganizationMembership, Er as CreateFileStorageGcsBody, Fn as CreateMaintainerOrganizationInput, Gn as MaintainerUser, Gr as Feature, Gt as RemoveProjectLimitPath, Hn as MaintainerInvitationPath, Hr as RotateFileStorageS3Input, I as PolicyTagEnablementGuideInput, Ir as RotateFileStorageAbsInput, J as UpdateStorageBackendInput, K as UpdateBigqueryStorageBackendInput, Kn as MaintainerUserPath, Kr as FeatureAdmin, Kt as RemoveProjectTemplateFeaturePath, Ln as CreateSamlConfigInput, N as GetStorageBackendProjectsQuery, Nn as CreateMaintainerInvitationInput, Nr as FileStorageProjectsQuery, O as UserProjectMembership, On as AddMaintainerUserInput, Or as FileStorage, Ot as ListProjectJoinRequestsPath, Q as SearchQuery, Qn as SetMaintainerMetadataInput, Qt as SetProjectDisabledInput, S as User, Sn as UpdateStripeCustomerBody, St as GetProjectPath, T as UserMaintainerMembership, Tr as CreateFileStorageAbsBody, Tt as JoinProjectInput, Un as MaintainerMetadataItemPath, Ut as RejectProjectJoinRequestPath, V as StorageBackendBigquery, Wr as UpdateFileStorageBody, Wt as RemoveProjectFeaturePath, Yn as SamlConfigPath, Yr as GetAllFeaturesQuery, Yt as RequestProjectAccessInput, _ as RemoveUserFeaturePath, _n as CreditPurchase, _t as DeleteProjectInvitationPath, a as ReactivateWorkspaceResult, bt as GetProjectJoinRequestPath, c as RenameUiAppBody, di as components, dr as OrganizationDetail, er as UpdateMaintainerInput, fi as paths, ft as CreateProjectFeatureInput, g as GetUsersQuery, gn as CreditPaymentRequest, gr as OrganizationMetadataItemPath, h as DeleteUserMetadataPath, hn as CreatePaymentRequestBody, ht as CreateProjectInvitationInput, i as ProjectRetentionWorkspaceState, in as SetProjectMetadataInput, ir as AddOrganizationUserInput, it as ApproveProjectJoinRequestPath, j as CreateSnowflakeStorageBackendBody, jn as CreateMaintainerBody, jt as MoveProjectInput, k as CreateBigqueryServerSideStorageBackendBody, kt as ListProjectUsersPath, l as UiApp, li as CreateApplicationTokenBody, lr as CreateOrganizationProjectInput, lt as ChangeProjectUserRoleInput, m as AddUserFeaturePath, nr as UpdateSamlConfigInput, nt as AddProjectUserInput, o as GetUiAppsQuery, ot as AssignProjectTemplateFeatureInput, p as AddUserFeatureBody, pr as OrganizationInvitationPath, qr as FeatureProject, qt as RemoveProjectUserPath, r as ProjectRetentionWorkspace, s as RegisterUiAppBody, sn as SetProjectReviewersInput, sr as CreateOrganizationInvitationInput, tn as SetProjectLimitsInput, u as UiAppDetail, un as UpdateProjectInput, vn as PayAsYouGoBillingConfiguration, vt as DeleteProjectMetadataPath, w as UserListItem, wr as SetUpBigQueryBody, x as UpdateUserInput, xn as TopUpSetting, xr as SetOrganizationMetadataInput, xt as GetProjectMetadataPath, y as SetUserMetadataInput, yn as StripeCustomer, yr as OrganizationUserPath, yt as GetProjectInvitationPath, zn as Maintainer, zr as RotateFileStorageGcsInput } from "./types-Bwvss_gW.cjs";
4
4
  type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
5
5
  type ManagementGenericFetchClient = ReturnType<typeof createGenericFetchClient>;
6
6
  type AuthStrategy = {
@@ -583,7 +583,101 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
583
583
  };
584
584
  }>;
585
585
  deleteOrganizationInvitation: ({ organizationId, invitationId }: OrganizationInvitationPath) => Promise<void>;
586
- getOrganizationProjects: (organizationId: number, signal?: AbortSignal) => Promise<Project[]>;
586
+ getOrganizationProjects: (organizationId: number, signal?: AbortSignal) => Promise<({
587
+ id: number;
588
+ name: string;
589
+ type: string;
590
+ region: string;
591
+ created: string | null;
592
+ expires: string | null;
593
+ features: string[];
594
+ dataSizeBytes: number;
595
+ rowsCount: number;
596
+ hasMysql: boolean;
597
+ hasSynapse: boolean;
598
+ hasSnowflake: boolean;
599
+ hasExasol: boolean;
600
+ hasTeradata: boolean;
601
+ hasBigquery: boolean;
602
+ defaultBackend: string;
603
+ hasTryModeOn: string;
604
+ limits: {
605
+ [key: string]: {
606
+ name: string;
607
+ value: number;
608
+ };
609
+ };
610
+ metrics: {
611
+ [key: string]: {
612
+ name: string;
613
+ value: number;
614
+ };
615
+ };
616
+ isDisabled: boolean;
617
+ billedMonthlyPrice: number | null;
618
+ dataRetentionTimeInDays: number;
619
+ isBYODB: boolean;
620
+ assignedBackends: string[];
621
+ fileStorageProvider?: string;
622
+ usersCount: number;
623
+ timezone: string | null;
624
+ payAsYouGo?: {
625
+ purchasedCredits: number;
626
+ };
627
+ disabled?: {
628
+ reason: string;
629
+ estimatedEndTime: string | null;
630
+ };
631
+ } & {
632
+ organization: {
633
+ id: number;
634
+ name: string;
635
+ crmId: string;
636
+ activityCenterProjectId: number | null;
637
+ created: string;
638
+ allowAutoJoin: boolean;
639
+ mfaRequired: boolean;
640
+ };
641
+ fileStorage: components['schemas']['FileStorageS3Response'] | components['schemas']['FileStorageAbsResponse'] | components['schemas']['FileStorageGcsResponse'];
642
+ backends: {
643
+ snowflake?: {
644
+ id: number;
645
+ host: string;
646
+ region: string;
647
+ owner: string;
648
+ technicalOwner: string;
649
+ };
650
+ synapse?: {
651
+ id: number;
652
+ host: string;
653
+ owner: string;
654
+ technicalOwner: string;
655
+ };
656
+ exasol?: {
657
+ id: number;
658
+ host: string;
659
+ region: string;
660
+ owner: string;
661
+ technicalOwner: string;
662
+ };
663
+ teradata?: {
664
+ id: number;
665
+ host: string;
666
+ region: string;
667
+ owner: string;
668
+ technicalOwner: string;
669
+ };
670
+ bigquery?: {
671
+ id: number;
672
+ credentials: {
673
+ [key: string]: unknown;
674
+ };
675
+ folderId: string;
676
+ owner: string;
677
+ technicalOwner: string;
678
+ };
679
+ };
680
+ })[]>;
587
681
  createOrganizationProject: ({ organizationId, ...body }: CreateOrganizationProjectInput) => Promise<{
588
682
  id: number;
589
683
  name: string;
@@ -635,10 +729,10 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
635
729
  }>;
636
730
  getOrganizationMetadata: (organizationId: number, signal?: AbortSignal) => Promise<{
637
731
  id: number;
732
+ key: string;
733
+ value: string | null;
638
734
  provider: string;
639
735
  timestamp: string;
640
- key: string;
641
- value: string;
642
736
  }[]>;
643
737
  setOrganizationMetadata: ({ organizationId, ...body }: SetOrganizationMetadataInput) => Promise<{
644
738
  id: number;
@@ -843,7 +937,101 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
843
937
  }>;
844
938
  };
845
939
  projects: {
846
- getProject: (projectId: GetProjectPath['projectId'], signal?: AbortSignal) => Promise<Project>;
940
+ getProject: (projectId: GetProjectPath['projectId'], signal?: AbortSignal) => Promise<{
941
+ id: number;
942
+ name: string;
943
+ type: string;
944
+ region: string;
945
+ created: string | null;
946
+ expires: string | null;
947
+ features: string[];
948
+ dataSizeBytes: number;
949
+ rowsCount: number;
950
+ hasMysql: boolean;
951
+ hasSynapse: boolean;
952
+ hasSnowflake: boolean;
953
+ hasExasol: boolean;
954
+ hasTeradata: boolean;
955
+ hasBigquery: boolean;
956
+ defaultBackend: string;
957
+ hasTryModeOn: string;
958
+ limits: {
959
+ [key: string]: {
960
+ name: string;
961
+ value: number;
962
+ };
963
+ };
964
+ metrics: {
965
+ [key: string]: {
966
+ name: string;
967
+ value: number;
968
+ };
969
+ };
970
+ isDisabled: boolean;
971
+ billedMonthlyPrice: number | null;
972
+ dataRetentionTimeInDays: number;
973
+ isBYODB: boolean;
974
+ assignedBackends: string[];
975
+ fileStorageProvider?: string;
976
+ usersCount: number;
977
+ timezone: string | null;
978
+ payAsYouGo?: {
979
+ purchasedCredits: number;
980
+ };
981
+ disabled?: {
982
+ reason: string;
983
+ estimatedEndTime: string | null;
984
+ };
985
+ } & {
986
+ organization: {
987
+ id: number;
988
+ name: string;
989
+ crmId: string;
990
+ activityCenterProjectId: number | null;
991
+ created: string;
992
+ allowAutoJoin: boolean;
993
+ mfaRequired: boolean;
994
+ };
995
+ fileStorage: components['schemas']['FileStorageS3Response'] | components['schemas']['FileStorageAbsResponse'] | components['schemas']['FileStorageGcsResponse'];
996
+ backends: {
997
+ snowflake?: {
998
+ id: number;
999
+ host: string;
1000
+ region: string;
1001
+ owner: string;
1002
+ technicalOwner: string;
1003
+ };
1004
+ synapse?: {
1005
+ id: number;
1006
+ host: string;
1007
+ owner: string;
1008
+ technicalOwner: string;
1009
+ };
1010
+ exasol?: {
1011
+ id: number;
1012
+ host: string;
1013
+ region: string;
1014
+ owner: string;
1015
+ technicalOwner: string;
1016
+ };
1017
+ teradata?: {
1018
+ id: number;
1019
+ host: string;
1020
+ region: string;
1021
+ owner: string;
1022
+ technicalOwner: string;
1023
+ };
1024
+ bigquery?: {
1025
+ id: number;
1026
+ credentials: {
1027
+ [key: string]: unknown;
1028
+ };
1029
+ folderId: string;
1030
+ owner: string;
1031
+ technicalOwner: string;
1032
+ };
1033
+ };
1034
+ }>;
847
1035
  getProjectTemplates: (signal?: AbortSignal) => Promise<{
848
1036
  id: string;
849
1037
  name: string;
@@ -853,10 +1041,86 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
853
1041
  hasTryModeOn: boolean;
854
1042
  defaultBackend: string;
855
1043
  }[]>;
856
- addProjectFeature: ({ projectId, feature }: CreateProjectFeaturePath & CreateProjectFeatureBody) => Promise<ProjectWithFeatureWarnings>;
1044
+ addProjectFeature: ({ projectId, ...body }: CreateProjectFeatureInput) => Promise<{
1045
+ id: number;
1046
+ name: string;
1047
+ type: string;
1048
+ region: string;
1049
+ created: string | null;
1050
+ expires: string | null;
1051
+ features: string[];
1052
+ dataSizeBytes: number;
1053
+ rowsCount: number;
1054
+ hasMysql: boolean;
1055
+ hasSynapse: boolean;
1056
+ hasSnowflake: boolean;
1057
+ hasExasol: boolean;
1058
+ hasTeradata: boolean;
1059
+ hasBigquery: boolean;
1060
+ defaultBackend: string;
1061
+ hasTryModeOn: string;
1062
+ limits: {
1063
+ [key: string]: {
1064
+ name: string;
1065
+ value: number;
1066
+ };
1067
+ };
1068
+ metrics: {
1069
+ [key: string]: {
1070
+ name: string;
1071
+ value: number;
1072
+ };
1073
+ };
1074
+ isDisabled: boolean;
1075
+ billedMonthlyPrice: number | null;
1076
+ dataRetentionTimeInDays: number;
1077
+ isBYODB: boolean;
1078
+ assignedBackends: string[];
1079
+ fileStorageProvider?: string;
1080
+ usersCount: number;
1081
+ timezone: string | null;
1082
+ payAsYouGo?: {
1083
+ purchasedCredits: number;
1084
+ };
1085
+ disabled?: {
1086
+ reason: string;
1087
+ estimatedEndTime: string | null;
1088
+ };
1089
+ } & {
1090
+ warnings?: {
1091
+ code?: string;
1092
+ message?: string;
1093
+ }[];
1094
+ }>;
857
1095
  removeProjectFeature: ({ projectId, feature }: RemoveProjectFeaturePath) => Promise<null>;
858
- changeProjectUserRole: ({ projectId, userId, role }: ChangeProjectUserRoleInput) => Promise<User>;
859
- getProjectUsers: (projectId: ListProjectUsersPath['projectId'], signal?: AbortSignal) => Promise<User[]>;
1096
+ changeProjectUserRole: ({ projectId, userId, ...body }: ChangeProjectUserRoleInput) => Promise<User>;
1097
+ getProjectUsers: (projectId: ListProjectUsersPath['projectId'], signal?: AbortSignal) => Promise<({
1098
+ id: number;
1099
+ name: string;
1100
+ email: string;
1101
+ mfaEnabled: boolean;
1102
+ features: string[];
1103
+ canAccessLogs: boolean;
1104
+ isSuperAdmin: boolean;
1105
+ } & {
1106
+ expires: string | null;
1107
+ created: string | null;
1108
+ reason: string | null;
1109
+ role: 'admin' | 'guest' | 'readOnly' | 'share' | 'developer' | 'reviewer' | 'productionManager';
1110
+ status: 'active';
1111
+ invitor: {
1112
+ id: number;
1113
+ name: string;
1114
+ email: string;
1115
+ } | null;
1116
+ approver: {
1117
+ id: number;
1118
+ name: string;
1119
+ email: string;
1120
+ } | null;
1121
+ canApproveMergeRequests: boolean;
1122
+ isOrganizationMember: boolean;
1123
+ })[]>;
860
1124
  getProjectInvitations: (projectId: ListProjectInvitationsPath['projectId'], signal?: AbortSignal) => Promise<{
861
1125
  id: number;
862
1126
  created: string;
@@ -874,7 +1138,7 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
874
1138
  email: string;
875
1139
  };
876
1140
  }[]>;
877
- createProjectInvitation: ({ projectId, ...body }: CreateProjectInvitationPath & CreateProjectInvitationBody) => Promise<{
1141
+ createProjectInvitation: ({ projectId, ...body }: CreateProjectInvitationInput) => Promise<{
878
1142
  id: number;
879
1143
  created: string;
880
1144
  expires: string | null;
@@ -892,42 +1156,275 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
892
1156
  };
893
1157
  }>;
894
1158
  deleteProjectInvitation: ({ projectId, invitationId }: DeleteProjectInvitationPath) => Promise<null>;
895
- addProjectUser: ({ projectId, ...body }: AddProjectUserPath & AddProjectUserBody) => Promise<null>;
1159
+ addProjectUser: ({ projectId, ...body }: AddProjectUserInput) => Promise<null>;
896
1160
  removeProjectUser: ({ projectId, idOrEmail }: RemoveProjectUserPath) => Promise<null>;
897
1161
  getProjectJoinRequests: (projectId: ListProjectJoinRequestsPath['projectId'], signal?: AbortSignal) => Promise<{
898
1162
  id: number;
899
1163
  created: string;
900
1164
  expires: string | null;
901
1165
  reason: string | null;
902
- user?: {
1166
+ user: {
903
1167
  id: number;
904
1168
  name: string;
905
1169
  email: string;
906
1170
  };
907
1171
  }[]>;
908
- approveProjectJoinRequest: ({ projectId, joinRequestId }: ProjectJoinRequestPath) => Promise<null>;
909
- rejectProjectJoinRequest: ({ projectId, joinRequestId }: ProjectJoinRequestPath) => Promise<null>;
1172
+ approveProjectJoinRequest: ({ projectId, joinRequestId }: ApproveProjectJoinRequestPath) => Promise<null>;
1173
+ rejectProjectJoinRequest: ({ projectId, joinRequestId }: RejectProjectJoinRequestPath) => Promise<null>;
910
1174
  getProjectMetadata: (projectId: GetProjectMetadataPath['projectId'], signal?: AbortSignal) => Promise<{
911
1175
  id: number;
1176
+ key: string;
1177
+ value: string | null;
912
1178
  provider: string;
913
1179
  timestamp: string;
914
- key: string;
915
- value: string;
916
1180
  }[]>;
917
- setProjectMetadata: ({ projectId, provider, metadata }: SetProjectMetadataPath & SetProjectMetadataBody) => Promise<{
1181
+ setProjectMetadata: ({ projectId, ...body }: SetProjectMetadataInput) => Promise<{
918
1182
  id: number;
919
1183
  provider: string;
920
1184
  timestamp: string;
921
1185
  key: string;
922
1186
  value: string;
923
1187
  }[]>;
924
- getProjectReviewers: (projectId: GetProjectReviewersPath['projectId'], signal?: AbortSignal) => Promise<Reviewer[]>;
925
- setProjectReviewers: ({ projectId, adminIds }: SetProjectReviewersPath & SetProjectReviewersBody) => Promise<void>;
926
- updateProject: ({ projectId, ...body }: UpdateProjectInput) => Promise<ProjectBase>;
1188
+ getProjectReviewers: (projectId: GetProjectReviewersPath['projectId'], signal?: AbortSignal) => Promise<{
1189
+ id: number;
1190
+ name: string;
1191
+ email: string;
1192
+ }[]>;
1193
+ setProjectReviewers: ({ projectId, ...body }: SetProjectReviewersInput) => Promise<void>;
1194
+ updateProject: ({ projectId, ...body }: UpdateProjectInput) => Promise<{
1195
+ id: number;
1196
+ name: string;
1197
+ type: string;
1198
+ region: string;
1199
+ created: string | null;
1200
+ expires: string | null;
1201
+ features: string[];
1202
+ dataSizeBytes: number;
1203
+ rowsCount: number;
1204
+ hasMysql: boolean;
1205
+ hasSynapse: boolean;
1206
+ hasSnowflake: boolean;
1207
+ hasExasol: boolean;
1208
+ hasTeradata: boolean;
1209
+ hasBigquery: boolean;
1210
+ defaultBackend: string;
1211
+ hasTryModeOn: string;
1212
+ limits: {
1213
+ [key: string]: {
1214
+ name: string;
1215
+ value: number;
1216
+ };
1217
+ };
1218
+ metrics: {
1219
+ [key: string]: {
1220
+ name: string;
1221
+ value: number;
1222
+ };
1223
+ };
1224
+ isDisabled: boolean;
1225
+ billedMonthlyPrice: number | null;
1226
+ dataRetentionTimeInDays: number;
1227
+ isBYODB: boolean;
1228
+ assignedBackends: string[];
1229
+ fileStorageProvider?: string;
1230
+ usersCount: number;
1231
+ timezone: string | null;
1232
+ payAsYouGo?: {
1233
+ purchasedCredits: number;
1234
+ };
1235
+ disabled?: {
1236
+ reason: string;
1237
+ estimatedEndTime: string | null;
1238
+ };
1239
+ }>;
927
1240
  deleteProject: (projectId: number) => Promise<null>;
928
- moveProject: ({ projectId, organizationId }: MoveProjectInput) => Promise<ProjectBase>;
929
- setProjectDisabled: ({ projectId, ...body }: SetProjectDisabledInput) => Promise<ProjectBase>;
930
- setProjectLimits: ({ projectId, ...body }: SetProjectLimitsInput) => Promise<Project>;
1241
+ moveProject: ({ projectId, organizationId }: MoveProjectInput) => Promise<{
1242
+ id: number;
1243
+ name: string;
1244
+ type: string;
1245
+ region: string;
1246
+ created: string | null;
1247
+ expires: string | null;
1248
+ features: string[];
1249
+ dataSizeBytes: number;
1250
+ rowsCount: number;
1251
+ hasMysql: boolean;
1252
+ hasSynapse: boolean;
1253
+ hasSnowflake: boolean;
1254
+ hasExasol: boolean;
1255
+ hasTeradata: boolean;
1256
+ hasBigquery: boolean;
1257
+ defaultBackend: string;
1258
+ hasTryModeOn: string;
1259
+ limits: {
1260
+ [key: string]: {
1261
+ name: string;
1262
+ value: number;
1263
+ };
1264
+ };
1265
+ metrics: {
1266
+ [key: string]: {
1267
+ name: string;
1268
+ value: number;
1269
+ };
1270
+ };
1271
+ isDisabled: boolean;
1272
+ billedMonthlyPrice: number | null;
1273
+ dataRetentionTimeInDays: number;
1274
+ isBYODB: boolean;
1275
+ assignedBackends: string[];
1276
+ fileStorageProvider?: string;
1277
+ usersCount: number;
1278
+ timezone: string | null;
1279
+ payAsYouGo?: {
1280
+ purchasedCredits: number;
1281
+ };
1282
+ disabled?: {
1283
+ reason: string;
1284
+ estimatedEndTime: string | null;
1285
+ };
1286
+ }>;
1287
+ setProjectDisabled: ({ projectId, ...body }: SetProjectDisabledInput) => Promise<{
1288
+ id: number;
1289
+ name: string;
1290
+ type: string;
1291
+ region: string;
1292
+ created: string | null;
1293
+ expires: string | null;
1294
+ features: string[];
1295
+ dataSizeBytes: number;
1296
+ rowsCount: number;
1297
+ hasMysql: boolean;
1298
+ hasSynapse: boolean;
1299
+ hasSnowflake: boolean;
1300
+ hasExasol: boolean;
1301
+ hasTeradata: boolean;
1302
+ hasBigquery: boolean;
1303
+ defaultBackend: string;
1304
+ hasTryModeOn: string;
1305
+ limits: {
1306
+ [key: string]: {
1307
+ name: string;
1308
+ value: number;
1309
+ };
1310
+ };
1311
+ metrics: {
1312
+ [key: string]: {
1313
+ name: string;
1314
+ value: number;
1315
+ };
1316
+ };
1317
+ isDisabled: boolean;
1318
+ billedMonthlyPrice: number | null;
1319
+ dataRetentionTimeInDays: number;
1320
+ isBYODB: boolean;
1321
+ assignedBackends: string[];
1322
+ fileStorageProvider?: string;
1323
+ usersCount: number;
1324
+ timezone: string | null;
1325
+ payAsYouGo?: {
1326
+ purchasedCredits: number;
1327
+ };
1328
+ disabled?: {
1329
+ reason: string;
1330
+ estimatedEndTime: string | null;
1331
+ };
1332
+ }>;
1333
+ setProjectLimits: ({ projectId, ...body }: SetProjectLimitsInput) => Promise<{
1334
+ id: number;
1335
+ name: string;
1336
+ type: string;
1337
+ region: string;
1338
+ created: string | null;
1339
+ expires: string | null;
1340
+ features: string[];
1341
+ dataSizeBytes: number;
1342
+ rowsCount: number;
1343
+ hasMysql: boolean;
1344
+ hasSynapse: boolean;
1345
+ hasSnowflake: boolean;
1346
+ hasExasol: boolean;
1347
+ hasTeradata: boolean;
1348
+ hasBigquery: boolean;
1349
+ defaultBackend: string;
1350
+ hasTryModeOn: string;
1351
+ limits: {
1352
+ [key: string]: {
1353
+ name: string;
1354
+ value: number;
1355
+ };
1356
+ };
1357
+ metrics: {
1358
+ [key: string]: {
1359
+ name: string;
1360
+ value: number;
1361
+ };
1362
+ };
1363
+ isDisabled: boolean;
1364
+ billedMonthlyPrice: number | null;
1365
+ dataRetentionTimeInDays: number;
1366
+ isBYODB: boolean;
1367
+ assignedBackends: string[];
1368
+ fileStorageProvider?: string;
1369
+ usersCount: number;
1370
+ timezone: string | null;
1371
+ payAsYouGo?: {
1372
+ purchasedCredits: number;
1373
+ };
1374
+ disabled?: {
1375
+ reason: string;
1376
+ estimatedEndTime: string | null;
1377
+ };
1378
+ } & {
1379
+ organization: {
1380
+ id: number;
1381
+ name: string;
1382
+ crmId: string;
1383
+ activityCenterProjectId: number | null;
1384
+ created: string;
1385
+ allowAutoJoin: boolean;
1386
+ mfaRequired: boolean;
1387
+ };
1388
+ fileStorage: components['schemas']['FileStorageS3Response'] | components['schemas']['FileStorageAbsResponse'] | components['schemas']['FileStorageGcsResponse'];
1389
+ backends: {
1390
+ snowflake?: {
1391
+ id: number;
1392
+ host: string;
1393
+ region: string;
1394
+ owner: string;
1395
+ technicalOwner: string;
1396
+ };
1397
+ synapse?: {
1398
+ id: number;
1399
+ host: string;
1400
+ owner: string;
1401
+ technicalOwner: string;
1402
+ };
1403
+ exasol?: {
1404
+ id: number;
1405
+ host: string;
1406
+ region: string;
1407
+ owner: string;
1408
+ technicalOwner: string;
1409
+ };
1410
+ teradata?: {
1411
+ id: number;
1412
+ host: string;
1413
+ region: string;
1414
+ owner: string;
1415
+ technicalOwner: string;
1416
+ };
1417
+ bigquery?: {
1418
+ id: number;
1419
+ credentials: {
1420
+ [key: string]: unknown;
1421
+ };
1422
+ folderId: string;
1423
+ owner: string;
1424
+ technicalOwner: string;
1425
+ };
1426
+ };
1427
+ }>;
931
1428
  getProjectTemplate: (templateId: string, signal?: AbortSignal) => Promise<{
932
1429
  id: string;
933
1430
  name: string;
@@ -947,7 +1444,7 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
947
1444
  }[]>;
948
1445
  addProjectTemplateFeature: ({ templateId, ...body }: AssignProjectTemplateFeatureInput) => Promise<void>;
949
1446
  removeProjectTemplateFeature: ({ templateId, featureName }: RemoveProjectTemplateFeaturePath) => Promise<void>;
950
- getProjectInvitation: ({ projectId, invitationId }: DeleteProjectInvitationPath, signal?: AbortSignal) => Promise<{
1447
+ getProjectInvitation: ({ projectId, invitationId }: GetProjectInvitationPath, signal?: AbortSignal) => Promise<{
951
1448
  id: number;
952
1449
  created: string;
953
1450
  expires: string | null;
@@ -964,12 +1461,12 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
964
1461
  email: string;
965
1462
  };
966
1463
  }>;
967
- getProjectJoinRequest: ({ projectId, joinRequestId }: ProjectJoinRequestPath, signal?: AbortSignal) => Promise<{
1464
+ getProjectJoinRequest: ({ projectId, joinRequestId }: GetProjectJoinRequestPath, signal?: AbortSignal) => Promise<{
968
1465
  id: number;
969
1466
  created: string;
970
1467
  expires: string | null;
971
1468
  reason: string | null;
972
- user?: {
1469
+ user: {
973
1470
  id: number;
974
1471
  name: string;
975
1472
  email: string;
@@ -981,10 +1478,9 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
981
1478
  created: string;
982
1479
  expires: string | null;
983
1480
  reason: string | null;
984
- user?: {
1481
+ project: {
985
1482
  id: number;
986
1483
  name: string;
987
- email: string;
988
1484
  };
989
1485
  }>;
990
1486
  removeProjectLimit: ({ projectId, limitName }: RemoveProjectLimitPath) => Promise<void>;
@@ -1186,10 +1682,10 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
1186
1682
  }>;
1187
1683
  getUserMetadata: (id: number, signal?: AbortSignal) => Promise<{
1188
1684
  id: number;
1685
+ key: string;
1686
+ value: string | null;
1189
1687
  provider: string;
1190
1688
  timestamp: string;
1191
- key: string;
1192
- value: string;
1193
1689
  }[]>;
1194
1690
  setUserMetadata: ({ id, ...body }: SetUserMetadataInput) => Promise<{
1195
1691
  id: number;
@@ -1236,4 +1732,4 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
1236
1732
  declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
1237
1733
  declare const isManagementSessionMintError: (error: unknown) => error is ManagementSessionMintError;
1238
1734
  export { ManagementOpenApiFetchClient as a, ManagementGenericFetchClient as i, isManagementSessionMintError as n, createManagementClient as o, AuthStrategy as r, isManagementClientAuthError as t };
1239
- //# sourceMappingURL=index-DX7qciZA.d.cts.map
1735
+ //# sourceMappingURL=index-BE6qM0vu.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { pt as WorkspaceSqlConnection, rt as WorkspaceConnection } from "./index-FrsEkDvX.js";
2
- import { Oa as Subscriber } from "./index-Df30jjpZ.js";
2
+ import { Oa as Subscriber } from "./index-CQPs3hrp.js";
3
3
  declare const isSqlWorkspaceConnection: (connection: WorkspaceConnection) => connection is WorkspaceSqlConnection;
4
4
  /**
5
5
  * Encodes subscribers as GCP IAM principals (`user:`/`group:`); `fromBackendSubscribers` decodes.
@@ -7,4 +7,4 @@ declare const isSqlWorkspaceConnection: (connection: WorkspaceConnection) => con
7
7
  declare const toBackendSubscribers: (subscribers: Subscriber[]) => string[];
8
8
  declare const fromBackendSubscribers: (raw: string[]) => Subscriber[];
9
9
  export { toBackendSubscribers as n, isSqlWorkspaceConnection as r, fromBackendSubscribers as t };
10
- //# sourceMappingURL=index-DCfumWzq.d.ts.map
10
+ //# sourceMappingURL=index-BGsP2QBc.d.ts.map