@credibledata/cred-cli 0.1.4 → 0.1.5

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 (172) hide show
  1. package/.prettierignore +2 -1
  2. package/README.md +0 -2
  3. package/bun.lock +182 -283
  4. package/dist/client/api.js +796 -111
  5. package/dist/client/api.js.map +1 -1
  6. package/dist/clientconfiguration.js +55 -13
  7. package/dist/clientconfiguration.js.map +1 -1
  8. package/dist/clientconfiguration.spec.js +305 -16
  9. package/dist/clientconfiguration.spec.js.map +1 -1
  10. package/dist/commands/add.js +6 -3
  11. package/dist/commands/add.js.map +1 -1
  12. package/dist/commands/connection/createconnections.js +18 -3
  13. package/dist/commands/connection/createconnections.js.map +1 -1
  14. package/dist/commands/connection/createconnections.spec.js +219 -0
  15. package/dist/commands/connection/createconnections.spec.js.map +1 -0
  16. package/dist/commands/connection/deleteconnection.spec.js +130 -0
  17. package/dist/commands/connection/deleteconnection.spec.js.map +1 -0
  18. package/dist/commands/connection/listconnections.js +9 -3
  19. package/dist/commands/connection/listconnections.js.map +1 -1
  20. package/dist/commands/connection/listconnections.spec.js +117 -0
  21. package/dist/commands/connection/listconnections.spec.js.map +1 -0
  22. package/dist/commands/group/addmember.js +2 -0
  23. package/dist/commands/group/addmember.js.map +1 -1
  24. package/dist/commands/group/addmember.spec.js +148 -0
  25. package/dist/commands/group/addmember.spec.js.map +1 -0
  26. package/dist/commands/group/creategroup.spec.js +122 -0
  27. package/dist/commands/group/creategroup.spec.js.map +1 -0
  28. package/dist/commands/group/deletegroup.spec.js +104 -0
  29. package/dist/commands/group/deletegroup.spec.js.map +1 -0
  30. package/dist/commands/group/getgroup.spec.js +111 -0
  31. package/dist/commands/group/getgroup.spec.js.map +1 -0
  32. package/dist/commands/group/listgroups.spec.js +118 -0
  33. package/dist/commands/group/listgroups.spec.js.map +1 -0
  34. package/dist/commands/group/removemember.js +1 -0
  35. package/dist/commands/group/removemember.js.map +1 -1
  36. package/dist/commands/group/removemember.spec.js +138 -0
  37. package/dist/commands/group/removemember.spec.js.map +1 -0
  38. package/dist/commands/groupaccesstoken/createToken.js +6 -2
  39. package/dist/commands/groupaccesstoken/createToken.js.map +1 -1
  40. package/dist/commands/groupaccesstoken/createToken.spec.js +127 -0
  41. package/dist/commands/groupaccesstoken/createToken.spec.js.map +1 -0
  42. package/dist/commands/groupaccesstoken/deleteToken.js.map +1 -1
  43. package/dist/commands/groupaccesstoken/deleteToken.spec.js +103 -0
  44. package/dist/commands/groupaccesstoken/deleteToken.spec.js.map +1 -0
  45. package/dist/commands/groupaccesstoken/groupContainer.js.map +1 -1
  46. package/dist/commands/groupaccesstoken/listTokens.js.map +1 -1
  47. package/dist/commands/groupaccesstoken/listTokens.spec.js +115 -0
  48. package/dist/commands/groupaccesstoken/listTokens.spec.js.map +1 -0
  49. package/dist/commands/list.js +10 -3
  50. package/dist/commands/list.js.map +1 -1
  51. package/dist/commands/misc/login.js +146 -22
  52. package/dist/commands/misc/login.js.map +1 -1
  53. package/dist/commands/misc/login.spec.js +111 -6
  54. package/dist/commands/misc/login.spec.js.map +1 -1
  55. package/dist/commands/misc/logout.spec.js +30 -0
  56. package/dist/commands/misc/logout.spec.js.map +1 -0
  57. package/dist/commands/misc/loopbackOAuth.js +110 -0
  58. package/dist/commands/misc/loopbackOAuth.js.map +1 -0
  59. package/dist/commands/misc/set-access-token.js.map +1 -1
  60. package/dist/commands/misc/set-access-token.spec.js +65 -0
  61. package/dist/commands/misc/set-access-token.spec.js.map +1 -0
  62. package/dist/commands/package/deletepackage.spec.js +136 -0
  63. package/dist/commands/package/deletepackage.spec.js.map +1 -0
  64. package/dist/commands/package/listpackages.js +10 -5
  65. package/dist/commands/package/listpackages.js.map +1 -1
  66. package/dist/commands/package/listpackages.spec.js +129 -0
  67. package/dist/commands/package/listpackages.spec.js.map +1 -0
  68. package/dist/commands/package/publish.js +23 -0
  69. package/dist/commands/package/publish.js.map +1 -1
  70. package/dist/commands/package/publish.spec.js +511 -0
  71. package/dist/commands/package/publish.spec.js.map +1 -0
  72. package/dist/commands/package/updatepackage.spec.js +50 -0
  73. package/dist/commands/package/updatepackage.spec.js.map +1 -1
  74. package/dist/commands/project/createproject.js +11 -1
  75. package/dist/commands/project/createproject.js.map +1 -1
  76. package/dist/commands/project/createproject.spec.js +154 -0
  77. package/dist/commands/project/createproject.spec.js.map +1 -0
  78. package/dist/commands/project/deleteproject.spec.js +106 -0
  79. package/dist/commands/project/deleteproject.spec.js.map +1 -0
  80. package/dist/commands/project/getproject.spec.js +99 -0
  81. package/dist/commands/project/getproject.spec.js.map +1 -0
  82. package/dist/commands/project/listprojects.js +13 -7
  83. package/dist/commands/project/listprojects.js.map +1 -1
  84. package/dist/commands/project/listprojects.spec.js +111 -0
  85. package/dist/commands/project/listprojects.spec.js.map +1 -0
  86. package/dist/commands/project/setproject.spec.js +58 -0
  87. package/dist/commands/project/setproject.spec.js.map +1 -0
  88. package/dist/commands/project/updateproject.js +68 -0
  89. package/dist/commands/project/updateproject.js.map +1 -0
  90. package/dist/commands/project/updateproject.spec.js +129 -0
  91. package/dist/commands/project/updateproject.spec.js.map +1 -0
  92. package/dist/commands/rm.js.map +1 -1
  93. package/dist/commands/update.js +13 -0
  94. package/dist/commands/update.js.map +1 -1
  95. package/dist/commands/version/listversions.spec.js +121 -0
  96. package/dist/commands/version/listversions.spec.js.map +1 -0
  97. package/dist/common/UserGroupId.spec.js +92 -0
  98. package/dist/common/UserGroupId.spec.js.map +1 -0
  99. package/dist/constants.js +49 -13
  100. package/dist/constants.js.map +1 -1
  101. package/dist/index.js +40 -18
  102. package/dist/index.js.map +1 -1
  103. package/dist/logger.spec.js +125 -0
  104. package/dist/logger.spec.js.map +1 -0
  105. package/dist/polyfills/file.polyfill.js.map +1 -1
  106. package/dist/utils.js +59 -0
  107. package/dist/utils.js.map +1 -1
  108. package/dist/utils.spec.js +158 -0
  109. package/dist/utils.spec.js.map +1 -0
  110. package/docker/Dockerfile.ci +11 -3
  111. package/eslint.config.mjs +45 -0
  112. package/generate-client.sh +3 -0
  113. package/package.json +24 -16
  114. package/src/client/.openapi-generator/FILES +1 -0
  115. package/src/client/api.ts +1347 -161
  116. package/src/clientconfiguration.spec.ts +394 -20
  117. package/src/clientconfiguration.ts +74 -15
  118. package/src/commands/add.ts +15 -6
  119. package/src/commands/connection/createconnections.spec.ts +403 -0
  120. package/src/commands/connection/createconnections.ts +30 -5
  121. package/src/commands/connection/deleteconnection.spec.ts +189 -0
  122. package/src/commands/connection/listconnections.spec.ts +132 -0
  123. package/src/commands/connection/listconnections.ts +22 -3
  124. package/src/commands/group/addmember.spec.ts +257 -0
  125. package/src/commands/group/addmember.ts +2 -0
  126. package/src/commands/group/creategroup.spec.ts +146 -0
  127. package/src/commands/group/deletegroup.spec.ts +120 -0
  128. package/src/commands/group/getgroup.spec.ts +129 -0
  129. package/src/commands/group/listgroups.spec.ts +137 -0
  130. package/src/commands/group/removemember.spec.ts +224 -0
  131. package/src/commands/group/removemember.ts +1 -0
  132. package/src/commands/groupaccesstoken/createToken.spec.ts +211 -0
  133. package/src/commands/groupaccesstoken/createToken.ts +55 -51
  134. package/src/commands/groupaccesstoken/deleteToken.spec.ts +147 -0
  135. package/src/commands/groupaccesstoken/deleteToken.ts +16 -11
  136. package/src/commands/groupaccesstoken/groupContainer.ts +51 -51
  137. package/src/commands/groupaccesstoken/listTokens.spec.ts +147 -0
  138. package/src/commands/groupaccesstoken/listTokens.ts +16 -11
  139. package/src/commands/list.ts +50 -9
  140. package/src/commands/misc/login.spec.ts +91 -6
  141. package/src/commands/misc/login.ts +208 -25
  142. package/src/commands/misc/logout.spec.ts +32 -0
  143. package/src/commands/misc/loopbackOAuth.ts +127 -0
  144. package/src/commands/misc/set-access-token.spec.ts +95 -0
  145. package/src/commands/misc/set-access-token.ts +16 -16
  146. package/src/commands/package/deletepackage.spec.ts +164 -0
  147. package/src/commands/package/listpackages.spec.ts +147 -0
  148. package/src/commands/package/listpackages.ts +28 -5
  149. package/src/commands/package/publish.spec.ts +597 -0
  150. package/src/commands/package/publish.ts +32 -0
  151. package/src/commands/package/updatepackage.spec.ts +98 -0
  152. package/src/commands/project/createproject.spec.ts +247 -0
  153. package/src/commands/project/createproject.ts +12 -1
  154. package/src/commands/project/deleteproject.spec.ts +123 -0
  155. package/src/commands/project/getproject.spec.ts +109 -0
  156. package/src/commands/project/listprojects.spec.ts +121 -0
  157. package/src/commands/project/listprojects.ts +33 -7
  158. package/src/commands/project/setproject.spec.ts +63 -0
  159. package/src/commands/project/updateproject.spec.ts +217 -0
  160. package/src/commands/project/updateproject.ts +82 -0
  161. package/src/commands/rm.ts +1 -6
  162. package/src/commands/update.ts +24 -1
  163. package/src/commands/version/listversions.spec.ts +138 -0
  164. package/src/common/UserGroupId.spec.ts +117 -0
  165. package/src/constants.ts +59 -13
  166. package/src/index.ts +46 -20
  167. package/src/logger.spec.ts +158 -0
  168. package/src/polyfills/file.polyfill.ts +1 -0
  169. package/src/utils.spec.ts +135 -0
  170. package/src/utils.ts +81 -0
  171. package/tsconfig.json +15 -18
  172. package/.eslintrc +0 -33
@@ -25,14 +25,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.PackagesApi = exports.PackagesApiFactory = exports.PackagesApiFp = exports.PackagesApiAxiosParamCreator = exports.PackagePermissionsApi = exports.PackagePermissionsApiFactory = exports.PackagePermissionsApiFp = exports.PackagePermissionsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrganizationPermissionsApi = exports.OrganizationPermissionsApiFactory = exports.OrganizationPermissionsApiFp = exports.OrganizationPermissionsApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentPermissionsApi = exports.DocumentPermissionsApiFactory = exports.DocumentPermissionsApiFp = exports.DocumentPermissionsApiAxiosParamCreator = exports.DemoApi = exports.DemoApiFactory = exports.DemoApiFp = exports.DemoApiAxiosParamCreator = exports.ConnectionsApi = exports.ConnectionsApiFactory = exports.ConnectionsApiFp = exports.ConnectionsApiAxiosParamCreator = exports.WorkspacePermissionPermissionEnum = exports.VersionArchiveStatusEnum = exports.UpdateGroupMemberStatusRequestStatusEnum = exports.SystemPermissionPermissionEnum = exports.ProjectPermissionPermissionEnum = exports.PackagePermissionInheritedPermissionEnum = exports.PackagePermissionPermissionEnum = exports.OrganizationPermissionPermissionEnum = exports.GroupMemberStatusEnum = exports.DocumentPermissionInheritedPermissionEnum = exports.DocumentPermissionPermissionEnum = exports.DocumentTypeEnum = exports.ConnectionAllOfDuckdbConnectionAttachedDatabasesTypeEnum = exports.ConnectionTypeEnum = void 0;
29
- exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = exports.WorkspacePermissionsApi = exports.WorkspacePermissionsApiFactory = exports.WorkspacePermissionsApiFp = exports.WorkspacePermissionsApiAxiosParamCreator = exports.VersionsApi = exports.VersionsApiFactory = exports.VersionsApiFp = exports.VersionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectPermissionsApi = exports.ProjectPermissionsApiFactory = exports.ProjectPermissionsApiFp = exports.ProjectPermissionsApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = void 0;
28
+ exports.OrganizationPermissionsApiFactory = exports.OrganizationPermissionsApiFp = exports.OrganizationPermissionsApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentPermissionsApi = exports.DocumentPermissionsApiFactory = exports.DocumentPermissionsApiFp = exports.DocumentPermissionsApiAxiosParamCreator = exports.DemoApi = exports.DemoApiFactory = exports.DemoApiFp = exports.DemoApiAxiosParamCreator = exports.ConnectionsApi = exports.ConnectionsApiFactory = exports.ConnectionsApiFp = exports.ConnectionsApiAxiosParamCreator = exports.ListBookmarksBookmarkTypeEnum = exports.GetBookmarkBookmarkTypeEnum = exports.DeleteBookmarkBookmarkTypeEnum = exports.BookmarksApi = exports.BookmarksApiFactory = exports.BookmarksApiFp = exports.BookmarksApiAxiosParamCreator = exports.WorkspacePermissionPermissionEnum = exports.WorkspaceWorkspaceTypeEnum = exports.VersionArchiveStatusEnum = exports.UpdateGroupMemberStatusRequestStatusEnum = exports.SystemPermissionPermissionEnum = exports.ProjectPermissionPermissionEnum = exports.PackagePermissionInheritedPermissionEnum = exports.PackagePermissionPermissionEnum = exports.OrganizationPermissionPermissionEnum = exports.IndexStatus = exports.GroupMemberStatusEnum = exports.GetOrganizationResponseUserPermissionEnum = exports.DocumentPermissionInheritedPermissionEnum = exports.DocumentPermissionPermissionEnum = exports.DocumentTypeEnum = exports.ConnectionAllOfDuckdbConnectionAzureConnectionAuthTypeEnum = exports.ConnectionAllOfDuckdbConnectionAttachedDatabasesTypeEnum = exports.ConnectionIndexingStatusEnum = exports.ConnectionTypeEnum = exports.BookmarkBookmarkTypeEnum = void 0;
29
+ exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = exports.WorkspacePermissionsApi = exports.WorkspacePermissionsApiFactory = exports.WorkspacePermissionsApiFp = exports.WorkspacePermissionsApiAxiosParamCreator = exports.VersionsApi = exports.VersionsApiFactory = exports.VersionsApiFp = exports.VersionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectPermissionsApi = exports.ProjectPermissionsApiFactory = exports.ProjectPermissionsApiFp = exports.ProjectPermissionsApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.PackagesApi = exports.PackagesApiFactory = exports.PackagesApiFp = exports.PackagesApiAxiosParamCreator = exports.PackagePermissionsApi = exports.PackagePermissionsApiFactory = exports.PackagePermissionsApiFp = exports.PackagePermissionsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrganizationPermissionsApi = void 0;
30
30
  const axios_1 = __importDefault(require("axios"));
31
31
  // Some imports not used depending on template conditions
32
32
  // @ts-ignore
33
33
  const common_1 = require("./common");
34
34
  // @ts-ignore
35
35
  const base_1 = require("./base");
36
+ exports.BookmarkBookmarkTypeEnum = {
37
+ Workspace: 'WORKSPACE',
38
+ Model: 'MODEL',
39
+ Chat: 'CHAT'
40
+ };
36
41
  exports.ConnectionTypeEnum = {
37
42
  Postgres: 'postgres',
38
43
  Bigquery: 'bigquery',
@@ -40,16 +45,38 @@ exports.ConnectionTypeEnum = {
40
45
  Trino: 'trino',
41
46
  Mysql: 'mysql',
42
47
  Duckdb: 'duckdb',
43
- Motherduck: 'motherduck'
48
+ Motherduck: 'motherduck',
49
+ Ducklake: 'ducklake'
50
+ };
51
+ exports.ConnectionIndexingStatusEnum = {
52
+ Unknown: 'UNKNOWN',
53
+ Pending: 'PENDING',
54
+ Indexed: 'INDEXED',
55
+ Skipped: 'SKIPPED',
56
+ Failed: 'FAILED',
57
+ Retry: 'RETRY'
44
58
  };
45
59
  exports.ConnectionAllOfDuckdbConnectionAttachedDatabasesTypeEnum = {
46
60
  Bigquery: 'bigquery',
47
61
  Snowflake: 'snowflake',
48
- Postgres: 'postgres'
62
+ Postgres: 'postgres',
63
+ Gcs: 'gcs',
64
+ S3: 's3',
65
+ Azure: 'azure'
66
+ };
67
+ exports.ConnectionAllOfDuckdbConnectionAzureConnectionAuthTypeEnum = {
68
+ ServicePrincipal: 'service_principal',
69
+ SasToken: 'sas_token'
49
70
  };
50
71
  exports.DocumentTypeEnum = {
51
72
  Workbook: 'workbook',
52
- Dashboard: 'dashboard'
73
+ Dashboard: 'dashboard',
74
+ ModelingChat: 'modeling_chat',
75
+ DataChat: 'data_chat',
76
+ AgentReport: 'agent_report',
77
+ AgentModelingFile: 'agent_modeling_file',
78
+ AgentHtmlReport: 'agent_html_report',
79
+ DraftAgentHtmlReport: 'draft_agent_html_report'
53
80
  };
54
81
  exports.DocumentPermissionPermissionEnum = {
55
82
  Editor: 'editor',
@@ -59,10 +86,27 @@ exports.DocumentPermissionInheritedPermissionEnum = {
59
86
  Manager: 'manager',
60
87
  Viewer: 'viewer'
61
88
  };
89
+ exports.GetOrganizationResponseUserPermissionEnum = {
90
+ Admin: 'admin',
91
+ Modeler: 'modeler',
92
+ Member: 'member'
93
+ };
62
94
  exports.GroupMemberStatusEnum = {
63
95
  Admin: 'admin',
64
96
  Member: 'member'
65
97
  };
98
+ /**
99
+ * Status of the indexing process. Possible values: unknown (initial state, indexing not yet started), indexing (currently being processed), indexed (successfully indexed and ready for use), failed (indexing process encountered an error).
100
+ * @export
101
+ * @enum {string}
102
+ */
103
+ exports.IndexStatus = {
104
+ Unknown: 'unknown',
105
+ Indexing: 'indexing',
106
+ Indexed: 'indexed',
107
+ Failed: 'failed',
108
+ Retry: 'retry'
109
+ };
66
110
  exports.OrganizationPermissionPermissionEnum = {
67
111
  Admin: 'admin',
68
112
  Modeler: 'modeler',
@@ -95,10 +139,387 @@ exports.VersionArchiveStatusEnum = {
95
139
  Unarchive: 'unarchive',
96
140
  ErrorState: 'error_state'
97
141
  };
142
+ exports.WorkspaceWorkspaceTypeEnum = {
143
+ PersonalInfra: 'PersonalInfra',
144
+ Group: 'Group'
145
+ };
98
146
  exports.WorkspacePermissionPermissionEnum = {
99
147
  Manager: 'manager',
100
148
  Viewer: 'viewer'
101
149
  };
150
+ /**
151
+ * BookmarksApi - axios parameter creator
152
+ * @export
153
+ */
154
+ const BookmarksApiAxiosParamCreator = function (configuration) {
155
+ return {
156
+ /**
157
+ * Creates a new bookmark for the current user within the organization. Bookmarks allow users to save references to workspaces, models, and chat conversations. **Authorization**: Requires read access to the organization. **Constraints**: Users can only create bookmarks for themselves. Duplicate bookmarks (same type and objectId) are not allowed.
158
+ * @summary Create a new bookmark
159
+ * @param {string} organizationName The unique identifier of the organization
160
+ * @param {Bookmark} bookmark
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ createBookmark: (organizationName_1, bookmark_1, ...args_1) => __awaiter(this, [organizationName_1, bookmark_1, ...args_1], void 0, function* (organizationName, bookmark, options = {}) {
165
+ // verify required parameter 'organizationName' is not null or undefined
166
+ (0, common_1.assertParamExists)('createBookmark', 'organizationName', organizationName);
167
+ // verify required parameter 'bookmark' is not null or undefined
168
+ (0, common_1.assertParamExists)('createBookmark', 'bookmark', bookmark);
169
+ const localVarPath = `/organizations/{organizationName}/bookmarks`
170
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
173
+ let baseOptions;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ }
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
178
+ const localVarHeaderParameter = {};
179
+ const localVarQueryParameter = {};
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookmark, localVarRequestOptions, configuration);
185
+ return {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ }),
190
+ /**
191
+ * Deletes a specific bookmark for the current user. This operation cannot be undone. **Authorization**: Requires read access to the organization. **Constraints**: Users can only delete their own bookmarks.
192
+ * @summary Delete a bookmark
193
+ * @param {string} organizationName The unique identifier of the organization
194
+ * @param {DeleteBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
195
+ * @param {string} objectId The unique identifier of the bookmarked object
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ deleteBookmark: (organizationName_1, bookmarkType_1, objectId_1, ...args_1) => __awaiter(this, [organizationName_1, bookmarkType_1, objectId_1, ...args_1], void 0, function* (organizationName, bookmarkType, objectId, options = {}) {
200
+ // verify required parameter 'organizationName' is not null or undefined
201
+ (0, common_1.assertParamExists)('deleteBookmark', 'organizationName', organizationName);
202
+ // verify required parameter 'bookmarkType' is not null or undefined
203
+ (0, common_1.assertParamExists)('deleteBookmark', 'bookmarkType', bookmarkType);
204
+ // verify required parameter 'objectId' is not null or undefined
205
+ (0, common_1.assertParamExists)('deleteBookmark', 'objectId', objectId);
206
+ const localVarPath = `/organizations/{organizationName}/bookmarks/{bookmarkType}`
207
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
208
+ .replace(`{${"bookmarkType"}}`, encodeURIComponent(String(bookmarkType)));
209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
211
+ let baseOptions;
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ }
215
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
216
+ const localVarHeaderParameter = {};
217
+ const localVarQueryParameter = {};
218
+ if (objectId !== undefined) {
219
+ localVarQueryParameter['objectId'] = objectId;
220
+ }
221
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
224
+ return {
225
+ url: (0, common_1.toPathString)(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ }),
229
+ /**
230
+ * Retrieves a specific bookmark for the current user by type and object ID. **Authorization**: Requires read access to the organization. **Constraints**: Users can only access their own bookmarks.
231
+ * @summary Get a specific bookmark
232
+ * @param {string} organizationName The unique identifier of the organization
233
+ * @param {GetBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
234
+ * @param {string} objectId The unique identifier of the bookmarked object
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ getBookmark: (organizationName_1, bookmarkType_1, objectId_1, ...args_1) => __awaiter(this, [organizationName_1, bookmarkType_1, objectId_1, ...args_1], void 0, function* (organizationName, bookmarkType, objectId, options = {}) {
239
+ // verify required parameter 'organizationName' is not null or undefined
240
+ (0, common_1.assertParamExists)('getBookmark', 'organizationName', organizationName);
241
+ // verify required parameter 'bookmarkType' is not null or undefined
242
+ (0, common_1.assertParamExists)('getBookmark', 'bookmarkType', bookmarkType);
243
+ // verify required parameter 'objectId' is not null or undefined
244
+ (0, common_1.assertParamExists)('getBookmark', 'objectId', objectId);
245
+ const localVarPath = `/organizations/{organizationName}/bookmarks/{bookmarkType}`
246
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
247
+ .replace(`{${"bookmarkType"}}`, encodeURIComponent(String(bookmarkType)));
248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
250
+ let baseOptions;
251
+ if (configuration) {
252
+ baseOptions = configuration.baseOptions;
253
+ }
254
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
+ const localVarHeaderParameter = {};
256
+ const localVarQueryParameter = {};
257
+ if (objectId !== undefined) {
258
+ localVarQueryParameter['objectId'] = objectId;
259
+ }
260
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
262
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
263
+ return {
264
+ url: (0, common_1.toPathString)(localVarUrlObj),
265
+ options: localVarRequestOptions,
266
+ };
267
+ }),
268
+ /**
269
+ * Retrieves all bookmarks for the current user within the specified organization. Optionally filter by bookmark type. **Authorization**: Requires read access to the organization. **Filtering**: Use `bookmarkType` parameter to filter by type (WORKSPACE, MODEL, CHAT).
270
+ * @summary List bookmarks for current user
271
+ * @param {string} organizationName The unique identifier of the organization
272
+ * @param {ListBookmarksBookmarkTypeEnum} [bookmarkType] Optional filter by bookmark type
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ listBookmarks: (organizationName_1, bookmarkType_1, ...args_1) => __awaiter(this, [organizationName_1, bookmarkType_1, ...args_1], void 0, function* (organizationName, bookmarkType, options = {}) {
277
+ // verify required parameter 'organizationName' is not null or undefined
278
+ (0, common_1.assertParamExists)('listBookmarks', 'organizationName', organizationName);
279
+ const localVarPath = `/organizations/{organizationName}/bookmarks`
280
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ }
287
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
288
+ const localVarHeaderParameter = {};
289
+ const localVarQueryParameter = {};
290
+ if (bookmarkType !== undefined) {
291
+ localVarQueryParameter['bookmarkType'] = bookmarkType;
292
+ }
293
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
+ return {
297
+ url: (0, common_1.toPathString)(localVarUrlObj),
298
+ options: localVarRequestOptions,
299
+ };
300
+ }),
301
+ };
302
+ };
303
+ exports.BookmarksApiAxiosParamCreator = BookmarksApiAxiosParamCreator;
304
+ /**
305
+ * BookmarksApi - functional programming interface
306
+ * @export
307
+ */
308
+ const BookmarksApiFp = function (configuration) {
309
+ const localVarAxiosParamCreator = (0, exports.BookmarksApiAxiosParamCreator)(configuration);
310
+ return {
311
+ /**
312
+ * Creates a new bookmark for the current user within the organization. Bookmarks allow users to save references to workspaces, models, and chat conversations. **Authorization**: Requires read access to the organization. **Constraints**: Users can only create bookmarks for themselves. Duplicate bookmarks (same type and objectId) are not allowed.
313
+ * @summary Create a new bookmark
314
+ * @param {string} organizationName The unique identifier of the organization
315
+ * @param {Bookmark} bookmark
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ createBookmark(organizationName, bookmark, options) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ var _a, _b, _c;
322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookmark(organizationName, bookmark, options);
323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookmarksApi.createBookmark']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
+ });
327
+ },
328
+ /**
329
+ * Deletes a specific bookmark for the current user. This operation cannot be undone. **Authorization**: Requires read access to the organization. **Constraints**: Users can only delete their own bookmarks.
330
+ * @summary Delete a bookmark
331
+ * @param {string} organizationName The unique identifier of the organization
332
+ * @param {DeleteBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
333
+ * @param {string} objectId The unique identifier of the bookmarked object
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ deleteBookmark(organizationName, bookmarkType, objectId, options) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ var _a, _b, _c;
340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookmark(organizationName, bookmarkType, objectId, options);
341
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
342
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookmarksApi.deleteBookmark']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
343
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
344
+ });
345
+ },
346
+ /**
347
+ * Retrieves a specific bookmark for the current user by type and object ID. **Authorization**: Requires read access to the organization. **Constraints**: Users can only access their own bookmarks.
348
+ * @summary Get a specific bookmark
349
+ * @param {string} organizationName The unique identifier of the organization
350
+ * @param {GetBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
351
+ * @param {string} objectId The unique identifier of the bookmarked object
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ getBookmark(organizationName, bookmarkType, objectId, options) {
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ var _a, _b, _c;
358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookmark(organizationName, bookmarkType, objectId, options);
359
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
360
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookmarksApi.getBookmark']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
361
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
+ });
363
+ },
364
+ /**
365
+ * Retrieves all bookmarks for the current user within the specified organization. Optionally filter by bookmark type. **Authorization**: Requires read access to the organization. **Filtering**: Use `bookmarkType` parameter to filter by type (WORKSPACE, MODEL, CHAT).
366
+ * @summary List bookmarks for current user
367
+ * @param {string} organizationName The unique identifier of the organization
368
+ * @param {ListBookmarksBookmarkTypeEnum} [bookmarkType] Optional filter by bookmark type
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ listBookmarks(organizationName, bookmarkType, options) {
373
+ return __awaiter(this, void 0, void 0, function* () {
374
+ var _a, _b, _c;
375
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBookmarks(organizationName, bookmarkType, options);
376
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
377
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookmarksApi.listBookmarks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
378
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
379
+ });
380
+ },
381
+ };
382
+ };
383
+ exports.BookmarksApiFp = BookmarksApiFp;
384
+ /**
385
+ * BookmarksApi - factory interface
386
+ * @export
387
+ */
388
+ const BookmarksApiFactory = function (configuration, basePath, axios) {
389
+ const localVarFp = (0, exports.BookmarksApiFp)(configuration);
390
+ return {
391
+ /**
392
+ * Creates a new bookmark for the current user within the organization. Bookmarks allow users to save references to workspaces, models, and chat conversations. **Authorization**: Requires read access to the organization. **Constraints**: Users can only create bookmarks for themselves. Duplicate bookmarks (same type and objectId) are not allowed.
393
+ * @summary Create a new bookmark
394
+ * @param {string} organizationName The unique identifier of the organization
395
+ * @param {Bookmark} bookmark
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ createBookmark(organizationName, bookmark, options) {
400
+ return localVarFp.createBookmark(organizationName, bookmark, options).then((request) => request(axios, basePath));
401
+ },
402
+ /**
403
+ * Deletes a specific bookmark for the current user. This operation cannot be undone. **Authorization**: Requires read access to the organization. **Constraints**: Users can only delete their own bookmarks.
404
+ * @summary Delete a bookmark
405
+ * @param {string} organizationName The unique identifier of the organization
406
+ * @param {DeleteBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
407
+ * @param {string} objectId The unique identifier of the bookmarked object
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ deleteBookmark(organizationName, bookmarkType, objectId, options) {
412
+ return localVarFp.deleteBookmark(organizationName, bookmarkType, objectId, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ * Retrieves a specific bookmark for the current user by type and object ID. **Authorization**: Requires read access to the organization. **Constraints**: Users can only access their own bookmarks.
416
+ * @summary Get a specific bookmark
417
+ * @param {string} organizationName The unique identifier of the organization
418
+ * @param {GetBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
419
+ * @param {string} objectId The unique identifier of the bookmarked object
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ getBookmark(organizationName, bookmarkType, objectId, options) {
424
+ return localVarFp.getBookmark(organizationName, bookmarkType, objectId, options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ * Retrieves all bookmarks for the current user within the specified organization. Optionally filter by bookmark type. **Authorization**: Requires read access to the organization. **Filtering**: Use `bookmarkType` parameter to filter by type (WORKSPACE, MODEL, CHAT).
428
+ * @summary List bookmarks for current user
429
+ * @param {string} organizationName The unique identifier of the organization
430
+ * @param {ListBookmarksBookmarkTypeEnum} [bookmarkType] Optional filter by bookmark type
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ listBookmarks(organizationName, bookmarkType, options) {
435
+ return localVarFp.listBookmarks(organizationName, bookmarkType, options).then((request) => request(axios, basePath));
436
+ },
437
+ };
438
+ };
439
+ exports.BookmarksApiFactory = BookmarksApiFactory;
440
+ /**
441
+ * BookmarksApi - object-oriented interface
442
+ * @export
443
+ * @class BookmarksApi
444
+ * @extends {BaseAPI}
445
+ */
446
+ class BookmarksApi extends base_1.BaseAPI {
447
+ /**
448
+ * Creates a new bookmark for the current user within the organization. Bookmarks allow users to save references to workspaces, models, and chat conversations. **Authorization**: Requires read access to the organization. **Constraints**: Users can only create bookmarks for themselves. Duplicate bookmarks (same type and objectId) are not allowed.
449
+ * @summary Create a new bookmark
450
+ * @param {string} organizationName The unique identifier of the organization
451
+ * @param {Bookmark} bookmark
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ * @memberof BookmarksApi
455
+ */
456
+ createBookmark(organizationName, bookmark, options) {
457
+ return (0, exports.BookmarksApiFp)(this.configuration).createBookmark(organizationName, bookmark, options).then((request) => request(this.axios, this.basePath));
458
+ }
459
+ /**
460
+ * Deletes a specific bookmark for the current user. This operation cannot be undone. **Authorization**: Requires read access to the organization. **Constraints**: Users can only delete their own bookmarks.
461
+ * @summary Delete a bookmark
462
+ * @param {string} organizationName The unique identifier of the organization
463
+ * @param {DeleteBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
464
+ * @param {string} objectId The unique identifier of the bookmarked object
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ * @memberof BookmarksApi
468
+ */
469
+ deleteBookmark(organizationName, bookmarkType, objectId, options) {
470
+ return (0, exports.BookmarksApiFp)(this.configuration).deleteBookmark(organizationName, bookmarkType, objectId, options).then((request) => request(this.axios, this.basePath));
471
+ }
472
+ /**
473
+ * Retrieves a specific bookmark for the current user by type and object ID. **Authorization**: Requires read access to the organization. **Constraints**: Users can only access their own bookmarks.
474
+ * @summary Get a specific bookmark
475
+ * @param {string} organizationName The unique identifier of the organization
476
+ * @param {GetBookmarkBookmarkTypeEnum} bookmarkType The type of bookmark
477
+ * @param {string} objectId The unique identifier of the bookmarked object
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ * @memberof BookmarksApi
481
+ */
482
+ getBookmark(organizationName, bookmarkType, objectId, options) {
483
+ return (0, exports.BookmarksApiFp)(this.configuration).getBookmark(organizationName, bookmarkType, objectId, options).then((request) => request(this.axios, this.basePath));
484
+ }
485
+ /**
486
+ * Retrieves all bookmarks for the current user within the specified organization. Optionally filter by bookmark type. **Authorization**: Requires read access to the organization. **Filtering**: Use `bookmarkType` parameter to filter by type (WORKSPACE, MODEL, CHAT).
487
+ * @summary List bookmarks for current user
488
+ * @param {string} organizationName The unique identifier of the organization
489
+ * @param {ListBookmarksBookmarkTypeEnum} [bookmarkType] Optional filter by bookmark type
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ * @memberof BookmarksApi
493
+ */
494
+ listBookmarks(organizationName, bookmarkType, options) {
495
+ return (0, exports.BookmarksApiFp)(this.configuration).listBookmarks(organizationName, bookmarkType, options).then((request) => request(this.axios, this.basePath));
496
+ }
497
+ }
498
+ exports.BookmarksApi = BookmarksApi;
499
+ /**
500
+ * @export
501
+ */
502
+ exports.DeleteBookmarkBookmarkTypeEnum = {
503
+ Workspace: 'WORKSPACE',
504
+ Model: 'MODEL',
505
+ Chat: 'CHAT'
506
+ };
507
+ /**
508
+ * @export
509
+ */
510
+ exports.GetBookmarkBookmarkTypeEnum = {
511
+ Workspace: 'WORKSPACE',
512
+ Model: 'MODEL',
513
+ Chat: 'CHAT'
514
+ };
515
+ /**
516
+ * @export
517
+ */
518
+ exports.ListBookmarksBookmarkTypeEnum = {
519
+ Workspace: 'WORKSPACE',
520
+ Model: 'MODEL',
521
+ Chat: 'CHAT'
522
+ };
102
523
  /**
103
524
  * ConnectionsApi - axios parameter creator
104
525
  * @export
@@ -222,14 +643,16 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
222
643
  };
223
644
  }),
224
645
  /**
225
- * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details.
646
+ * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details. **Pagination**: Supports offset-based pagination with limit and offset parameters.
226
647
  * @summary List database connections
227
648
  * @param {string} organizationName The unique identifier of the organization
228
649
  * @param {string} projectName The unique identifier of the project
650
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
651
+ * @param {number} [offset] Number of items to skip before starting to return results
229
652
  * @param {*} [options] Override http request option.
230
653
  * @throws {RequiredError}
231
654
  */
232
- listConnections: (organizationName_1, projectName_1, ...args_1) => __awaiter(this, [organizationName_1, projectName_1, ...args_1], void 0, function* (organizationName, projectName, options = {}) {
655
+ listConnections: (organizationName_1, projectName_1, limit_1, offset_1, ...args_1) => __awaiter(this, [organizationName_1, projectName_1, limit_1, offset_1, ...args_1], void 0, function* (organizationName, projectName, limit, offset, options = {}) {
233
656
  // verify required parameter 'organizationName' is not null or undefined
234
657
  (0, common_1.assertParamExists)('listConnections', 'organizationName', organizationName);
235
658
  // verify required parameter 'projectName' is not null or undefined
@@ -246,6 +669,12 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
246
669
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
247
670
  const localVarHeaderParameter = {};
248
671
  const localVarQueryParameter = {};
672
+ if (limit !== undefined) {
673
+ localVarQueryParameter['limit'] = limit;
674
+ }
675
+ if (offset !== undefined) {
676
+ localVarQueryParameter['offset'] = offset;
677
+ }
249
678
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
250
679
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
680
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -360,17 +789,19 @@ const ConnectionsApiFp = function (configuration) {
360
789
  });
361
790
  },
362
791
  /**
363
- * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details.
792
+ * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details. **Pagination**: Supports offset-based pagination with limit and offset parameters.
364
793
  * @summary List database connections
365
794
  * @param {string} organizationName The unique identifier of the organization
366
795
  * @param {string} projectName The unique identifier of the project
796
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
797
+ * @param {number} [offset] Number of items to skip before starting to return results
367
798
  * @param {*} [options] Override http request option.
368
799
  * @throws {RequiredError}
369
800
  */
370
- listConnections(organizationName, projectName, options) {
801
+ listConnections(organizationName, projectName, limit, offset, options) {
371
802
  return __awaiter(this, void 0, void 0, function* () {
372
803
  var _a, _b, _c;
373
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnections(organizationName, projectName, options);
804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnections(organizationName, projectName, limit, offset, options);
374
805
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
375
806
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.listConnections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
376
807
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -443,15 +874,17 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
443
874
  return localVarFp.getConnection(organizationName, projectName, connectionName, options).then((request) => request(axios, basePath));
444
875
  },
445
876
  /**
446
- * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details.
877
+ * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details. **Pagination**: Supports offset-based pagination with limit and offset parameters.
447
878
  * @summary List database connections
448
879
  * @param {string} organizationName The unique identifier of the organization
449
880
  * @param {string} projectName The unique identifier of the project
881
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
882
+ * @param {number} [offset] Number of items to skip before starting to return results
450
883
  * @param {*} [options] Override http request option.
451
884
  * @throws {RequiredError}
452
885
  */
453
- listConnections(organizationName, projectName, options) {
454
- return localVarFp.listConnections(organizationName, projectName, options).then((request) => request(axios, basePath));
886
+ listConnections(organizationName, projectName, limit, offset, options) {
887
+ return localVarFp.listConnections(organizationName, projectName, limit, offset, options).then((request) => request(axios, basePath));
455
888
  },
456
889
  /**
457
890
  * Updates the configuration of an existing database connection, including credentials, settings, and connection parameters. **Authorization**: Requires project admin permissions. **Security**: Credentials are encrypted and stored securely. **Validation**: Tests connection before saving changes.
@@ -517,16 +950,18 @@ class ConnectionsApi extends base_1.BaseAPI {
517
950
  return (0, exports.ConnectionsApiFp)(this.configuration).getConnection(organizationName, projectName, connectionName, options).then((request) => request(this.axios, this.basePath));
518
951
  }
519
952
  /**
520
- * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details.
953
+ * Retrieves all database connections configured for the specified project, including connection metadata, status, and configuration details. **Authorization**: Requires project admin or modeler permissions. **Response**: Returns array of connection objects with configuration details. **Pagination**: Supports offset-based pagination with limit and offset parameters.
521
954
  * @summary List database connections
522
955
  * @param {string} organizationName The unique identifier of the organization
523
956
  * @param {string} projectName The unique identifier of the project
957
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
958
+ * @param {number} [offset] Number of items to skip before starting to return results
524
959
  * @param {*} [options] Override http request option.
525
960
  * @throws {RequiredError}
526
961
  * @memberof ConnectionsApi
527
962
  */
528
- listConnections(organizationName, projectName, options) {
529
- return (0, exports.ConnectionsApiFp)(this.configuration).listConnections(organizationName, projectName, options).then((request) => request(this.axios, this.basePath));
963
+ listConnections(organizationName, projectName, limit, offset, options) {
964
+ return (0, exports.ConnectionsApiFp)(this.configuration).listConnections(organizationName, projectName, limit, offset, options).then((request) => request(this.axios, this.basePath));
530
965
  }
531
966
  /**
532
967
  * Updates the configuration of an existing database connection, including credentials, settings, and connection parameters. **Authorization**: Requires project admin permissions. **Security**: Credentials are encrypted and stored securely. **Validation**: Tests connection before saving changes.
@@ -1313,10 +1748,11 @@ const DocumentsApiAxiosParamCreator = function (configuration) {
1313
1748
  * @summary List workspace documents
1314
1749
  * @param {string} organizationName The unique identifier of the organization
1315
1750
  * @param {string} workspaceName The unique identifier of the workspace
1751
+ * @param {boolean} [retrieveContent] If true, include the document content in the response. Defaults to false.
1316
1752
  * @param {*} [options] Override http request option.
1317
1753
  * @throws {RequiredError}
1318
1754
  */
1319
- listDocuments: (organizationName_1, workspaceName_1, ...args_1) => __awaiter(this, [organizationName_1, workspaceName_1, ...args_1], void 0, function* (organizationName, workspaceName, options = {}) {
1755
+ listDocuments: (organizationName_1, workspaceName_1, retrieveContent_1, ...args_1) => __awaiter(this, [organizationName_1, workspaceName_1, retrieveContent_1, ...args_1], void 0, function* (organizationName, workspaceName, retrieveContent, options = {}) {
1320
1756
  // verify required parameter 'organizationName' is not null or undefined
1321
1757
  (0, common_1.assertParamExists)('listDocuments', 'organizationName', organizationName);
1322
1758
  // verify required parameter 'workspaceName' is not null or undefined
@@ -1333,6 +1769,9 @@ const DocumentsApiAxiosParamCreator = function (configuration) {
1333
1769
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1334
1770
  const localVarHeaderParameter = {};
1335
1771
  const localVarQueryParameter = {};
1772
+ if (retrieveContent !== undefined) {
1773
+ localVarQueryParameter['retrieveContent'] = retrieveContent;
1774
+ }
1336
1775
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1337
1776
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1338
1777
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1452,13 +1891,14 @@ const DocumentsApiFp = function (configuration) {
1452
1891
  * @summary List workspace documents
1453
1892
  * @param {string} organizationName The unique identifier of the organization
1454
1893
  * @param {string} workspaceName The unique identifier of the workspace
1894
+ * @param {boolean} [retrieveContent] If true, include the document content in the response. Defaults to false.
1455
1895
  * @param {*} [options] Override http request option.
1456
1896
  * @throws {RequiredError}
1457
1897
  */
1458
- listDocuments(organizationName, workspaceName, options) {
1898
+ listDocuments(organizationName, workspaceName, retrieveContent, options) {
1459
1899
  return __awaiter(this, void 0, void 0, function* () {
1460
1900
  var _a, _b, _c;
1461
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listDocuments(organizationName, workspaceName, options);
1901
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDocuments(organizationName, workspaceName, retrieveContent, options);
1462
1902
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1463
1903
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentsApi.listDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1464
1904
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1536,11 +1976,12 @@ const DocumentsApiFactory = function (configuration, basePath, axios) {
1536
1976
  * @summary List workspace documents
1537
1977
  * @param {string} organizationName The unique identifier of the organization
1538
1978
  * @param {string} workspaceName The unique identifier of the workspace
1979
+ * @param {boolean} [retrieveContent] If true, include the document content in the response. Defaults to false.
1539
1980
  * @param {*} [options] Override http request option.
1540
1981
  * @throws {RequiredError}
1541
1982
  */
1542
- listDocuments(organizationName, workspaceName, options) {
1543
- return localVarFp.listDocuments(organizationName, workspaceName, options).then((request) => request(axios, basePath));
1983
+ listDocuments(organizationName, workspaceName, retrieveContent, options) {
1984
+ return localVarFp.listDocuments(organizationName, workspaceName, retrieveContent, options).then((request) => request(axios, basePath));
1544
1985
  },
1545
1986
  /**
1546
1987
  * Updates the content and metadata of an existing document within the workspace. **Authorization**: Requires document editor or workspace manager permissions. **Content**: Supports updating document content, type, and other properties.
@@ -1611,12 +2052,13 @@ class DocumentsApi extends base_1.BaseAPI {
1611
2052
  * @summary List workspace documents
1612
2053
  * @param {string} organizationName The unique identifier of the organization
1613
2054
  * @param {string} workspaceName The unique identifier of the workspace
2055
+ * @param {boolean} [retrieveContent] If true, include the document content in the response. Defaults to false.
1614
2056
  * @param {*} [options] Override http request option.
1615
2057
  * @throws {RequiredError}
1616
2058
  * @memberof DocumentsApi
1617
2059
  */
1618
- listDocuments(organizationName, workspaceName, options) {
1619
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(organizationName, workspaceName, options).then((request) => request(this.axios, this.basePath));
2060
+ listDocuments(organizationName, workspaceName, retrieveContent, options) {
2061
+ return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(organizationName, workspaceName, retrieveContent, options).then((request) => request(this.axios, this.basePath));
1620
2062
  }
1621
2063
  /**
1622
2064
  * Updates the content and metadata of an existing document within the workspace. **Authorization**: Requires document editor or workspace manager permissions. **Content**: Supports updating document content, type, and other properties.
@@ -3070,14 +3512,13 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3070
3512
  };
3071
3513
  }),
3072
3514
  /**
3073
- * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. **Authorization**: Requires read access to the specified organization. **Parameters**: The `checkAdmin` parameter can be used to verify admin privileges.
3515
+ * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. The response includes the current user\'s permission level (admin, modeler, or member) within the organization. **Authorization**: Requires read access to the specified organization.
3074
3516
  * @summary Get organization details
3075
3517
  * @param {string} organizationName The unique identifier of the organization to retrieve
3076
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3077
3518
  * @param {*} [options] Override http request option.
3078
3519
  * @throws {RequiredError}
3079
3520
  */
3080
- getOrganization: (organizationName_1, checkAdmin_1, ...args_1) => __awaiter(this, [organizationName_1, checkAdmin_1, ...args_1], void 0, function* (organizationName, checkAdmin, options = {}) {
3521
+ getOrganization: (organizationName_1, ...args_1) => __awaiter(this, [organizationName_1, ...args_1], void 0, function* (organizationName, options = {}) {
3081
3522
  // verify required parameter 'organizationName' is not null or undefined
3082
3523
  (0, common_1.assertParamExists)('getOrganization', 'organizationName', organizationName);
3083
3524
  const localVarPath = `/organizations/{organizationName}`
@@ -3091,9 +3532,39 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3091
3532
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3092
3533
  const localVarHeaderParameter = {};
3093
3534
  const localVarQueryParameter = {};
3094
- if (checkAdmin !== undefined) {
3095
- localVarQueryParameter['checkAdmin'] = checkAdmin;
3535
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3537
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3538
+ return {
3539
+ url: (0, common_1.toPathString)(localVarUrlObj),
3540
+ options: localVarRequestOptions,
3541
+ };
3542
+ }),
3543
+ /**
3544
+ * Retrieves basic user information for a user within an organization context. This endpoint verifies that both the caller and the target user are members of the specified organization before returning user data. **Security**: Returns 404 (not 403) if the target user doesn\'t exist or is not a member of the organization. This prevents information leakage about user existence. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns only basic user fields (userName, email) for privacy.
3545
+ * @summary Get user within organization context
3546
+ * @param {string} organizationName The unique identifier of the organization
3547
+ * @param {string} userName The username (email) of the user to retrieve
3548
+ * @param {*} [options] Override http request option.
3549
+ * @throws {RequiredError}
3550
+ */
3551
+ getOrganizationUser: (organizationName_1, userName_1, ...args_1) => __awaiter(this, [organizationName_1, userName_1, ...args_1], void 0, function* (organizationName, userName, options = {}) {
3552
+ // verify required parameter 'organizationName' is not null or undefined
3553
+ (0, common_1.assertParamExists)('getOrganizationUser', 'organizationName', organizationName);
3554
+ // verify required parameter 'userName' is not null or undefined
3555
+ (0, common_1.assertParamExists)('getOrganizationUser', 'userName', userName);
3556
+ const localVarPath = `/organizations/{organizationName}/users/{userName}`
3557
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
3558
+ .replace(`{${"userName"}}`, encodeURIComponent(String(userName)));
3559
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3560
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3561
+ let baseOptions;
3562
+ if (configuration) {
3563
+ baseOptions = configuration.baseOptions;
3096
3564
  }
3565
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3566
+ const localVarHeaderParameter = {};
3567
+ const localVarQueryParameter = {};
3097
3568
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3098
3569
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3099
3570
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3103,12 +3574,43 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3103
3574
  };
3104
3575
  }),
3105
3576
  /**
3106
- * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply.
3577
+ * Retrieves all users that are members of the specified organization, returning basic user information (userName, email) for each. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns array of user objects with basic fields only.
3578
+ * @summary List users in organization
3579
+ * @param {string} organizationName The unique identifier of the organization
3580
+ * @param {*} [options] Override http request option.
3581
+ * @throws {RequiredError}
3582
+ */
3583
+ listOrganizationUsers: (organizationName_1, ...args_1) => __awaiter(this, [organizationName_1, ...args_1], void 0, function* (organizationName, options = {}) {
3584
+ // verify required parameter 'organizationName' is not null or undefined
3585
+ (0, common_1.assertParamExists)('listOrganizationUsers', 'organizationName', organizationName);
3586
+ const localVarPath = `/organizations/{organizationName}/users`
3587
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
3588
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3589
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3590
+ let baseOptions;
3591
+ if (configuration) {
3592
+ baseOptions = configuration.baseOptions;
3593
+ }
3594
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3595
+ const localVarHeaderParameter = {};
3596
+ const localVarQueryParameter = {};
3597
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3599
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3600
+ return {
3601
+ url: (0, common_1.toPathString)(localVarUrlObj),
3602
+ options: localVarRequestOptions,
3603
+ };
3604
+ }),
3605
+ /**
3606
+ * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply. **Pagination**: Supports offset-based pagination with limit and offset parameters.
3107
3607
  * @summary List all organizations
3608
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
3609
+ * @param {number} [offset] Number of items to skip before starting to return results
3108
3610
  * @param {*} [options] Override http request option.
3109
3611
  * @throws {RequiredError}
3110
3612
  */
3111
- listOrganizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3613
+ listOrganizations: (limit_1, offset_1, ...args_1) => __awaiter(this, [limit_1, offset_1, ...args_1], void 0, function* (limit, offset, options = {}) {
3112
3614
  const localVarPath = `/organizations`;
3113
3615
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3114
3616
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3119,6 +3621,12 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3119
3621
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3120
3622
  const localVarHeaderParameter = {};
3121
3623
  const localVarQueryParameter = {};
3624
+ if (limit !== undefined) {
3625
+ localVarQueryParameter['limit'] = limit;
3626
+ }
3627
+ if (offset !== undefined) {
3628
+ localVarQueryParameter['offset'] = offset;
3629
+ }
3122
3630
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3123
3631
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3124
3632
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3204,32 +3712,66 @@ const OrganizationsApiFp = function (configuration) {
3204
3712
  });
3205
3713
  },
3206
3714
  /**
3207
- * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. **Authorization**: Requires read access to the specified organization. **Parameters**: The `checkAdmin` parameter can be used to verify admin privileges.
3715
+ * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. The response includes the current user\'s permission level (admin, modeler, or member) within the organization. **Authorization**: Requires read access to the specified organization.
3208
3716
  * @summary Get organization details
3209
3717
  * @param {string} organizationName The unique identifier of the organization to retrieve
3210
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3211
3718
  * @param {*} [options] Override http request option.
3212
3719
  * @throws {RequiredError}
3213
3720
  */
3214
- getOrganization(organizationName, checkAdmin, options) {
3721
+ getOrganization(organizationName, options) {
3215
3722
  return __awaiter(this, void 0, void 0, function* () {
3216
3723
  var _a, _b, _c;
3217
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(organizationName, checkAdmin, options);
3724
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(organizationName, options);
3218
3725
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3219
3726
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.getOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3220
3727
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3221
3728
  });
3222
3729
  },
3223
3730
  /**
3224
- * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply.
3731
+ * Retrieves basic user information for a user within an organization context. This endpoint verifies that both the caller and the target user are members of the specified organization before returning user data. **Security**: Returns 404 (not 403) if the target user doesn\'t exist or is not a member of the organization. This prevents information leakage about user existence. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns only basic user fields (userName, email) for privacy.
3732
+ * @summary Get user within organization context
3733
+ * @param {string} organizationName The unique identifier of the organization
3734
+ * @param {string} userName The username (email) of the user to retrieve
3735
+ * @param {*} [options] Override http request option.
3736
+ * @throws {RequiredError}
3737
+ */
3738
+ getOrganizationUser(organizationName, userName, options) {
3739
+ return __awaiter(this, void 0, void 0, function* () {
3740
+ var _a, _b, _c;
3741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationUser(organizationName, userName, options);
3742
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3743
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.getOrganizationUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3744
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3745
+ });
3746
+ },
3747
+ /**
3748
+ * Retrieves all users that are members of the specified organization, returning basic user information (userName, email) for each. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns array of user objects with basic fields only.
3749
+ * @summary List users in organization
3750
+ * @param {string} organizationName The unique identifier of the organization
3751
+ * @param {*} [options] Override http request option.
3752
+ * @throws {RequiredError}
3753
+ */
3754
+ listOrganizationUsers(organizationName, options) {
3755
+ return __awaiter(this, void 0, void 0, function* () {
3756
+ var _a, _b, _c;
3757
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationUsers(organizationName, options);
3758
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3759
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.listOrganizationUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3760
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3761
+ });
3762
+ },
3763
+ /**
3764
+ * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply. **Pagination**: Supports offset-based pagination with limit and offset parameters.
3225
3765
  * @summary List all organizations
3766
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
3767
+ * @param {number} [offset] Number of items to skip before starting to return results
3226
3768
  * @param {*} [options] Override http request option.
3227
3769
  * @throws {RequiredError}
3228
3770
  */
3229
- listOrganizations(options) {
3771
+ listOrganizations(limit, offset, options) {
3230
3772
  return __awaiter(this, void 0, void 0, function* () {
3231
3773
  var _a, _b, _c;
3232
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(options);
3774
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(limit, offset, options);
3233
3775
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3234
3776
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.listOrganizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3235
3777
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3283,24 +3825,46 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
3283
3825
  return localVarFp.deleteOrganization(organizationName, options).then((request) => request(axios, basePath));
3284
3826
  },
3285
3827
  /**
3286
- * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. **Authorization**: Requires read access to the specified organization. **Parameters**: The `checkAdmin` parameter can be used to verify admin privileges.
3828
+ * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. The response includes the current user\'s permission level (admin, modeler, or member) within the organization. **Authorization**: Requires read access to the specified organization.
3287
3829
  * @summary Get organization details
3288
3830
  * @param {string} organizationName The unique identifier of the organization to retrieve
3289
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3290
3831
  * @param {*} [options] Override http request option.
3291
3832
  * @throws {RequiredError}
3292
3833
  */
3293
- getOrganization(organizationName, checkAdmin, options) {
3294
- return localVarFp.getOrganization(organizationName, checkAdmin, options).then((request) => request(axios, basePath));
3834
+ getOrganization(organizationName, options) {
3835
+ return localVarFp.getOrganization(organizationName, options).then((request) => request(axios, basePath));
3836
+ },
3837
+ /**
3838
+ * Retrieves basic user information for a user within an organization context. This endpoint verifies that both the caller and the target user are members of the specified organization before returning user data. **Security**: Returns 404 (not 403) if the target user doesn\'t exist or is not a member of the organization. This prevents information leakage about user existence. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns only basic user fields (userName, email) for privacy.
3839
+ * @summary Get user within organization context
3840
+ * @param {string} organizationName The unique identifier of the organization
3841
+ * @param {string} userName The username (email) of the user to retrieve
3842
+ * @param {*} [options] Override http request option.
3843
+ * @throws {RequiredError}
3844
+ */
3845
+ getOrganizationUser(organizationName, userName, options) {
3846
+ return localVarFp.getOrganizationUser(organizationName, userName, options).then((request) => request(axios, basePath));
3847
+ },
3848
+ /**
3849
+ * Retrieves all users that are members of the specified organization, returning basic user information (userName, email) for each. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns array of user objects with basic fields only.
3850
+ * @summary List users in organization
3851
+ * @param {string} organizationName The unique identifier of the organization
3852
+ * @param {*} [options] Override http request option.
3853
+ * @throws {RequiredError}
3854
+ */
3855
+ listOrganizationUsers(organizationName, options) {
3856
+ return localVarFp.listOrganizationUsers(organizationName, options).then((request) => request(axios, basePath));
3295
3857
  },
3296
3858
  /**
3297
- * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply.
3859
+ * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply. **Pagination**: Supports offset-based pagination with limit and offset parameters.
3298
3860
  * @summary List all organizations
3861
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
3862
+ * @param {number} [offset] Number of items to skip before starting to return results
3299
3863
  * @param {*} [options] Override http request option.
3300
3864
  * @throws {RequiredError}
3301
3865
  */
3302
- listOrganizations(options) {
3303
- return localVarFp.listOrganizations(options).then((request) => request(axios, basePath));
3866
+ listOrganizations(limit, offset, options) {
3867
+ return localVarFp.listOrganizations(limit, offset, options).then((request) => request(axios, basePath));
3304
3868
  },
3305
3869
  /**
3306
3870
  * Partially updates an organization\'s details. Only the provided fields will be updated. This operation allows for selective updates without requiring all organization fields. **Authorization**: Requires organization admin permissions. **Validation**: All provided fields are validated according to their schema constraints. **Side Effects**: Updates the organization\'s `updatedAt` timestamp.
@@ -3346,26 +3910,50 @@ class OrganizationsApi extends base_1.BaseAPI {
3346
3910
  return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganization(organizationName, options).then((request) => request(this.axios, this.basePath));
3347
3911
  }
3348
3912
  /**
3349
- * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. **Authorization**: Requires read access to the specified organization. **Parameters**: The `checkAdmin` parameter can be used to verify admin privileges.
3913
+ * Retrieves detailed information about a specific organization including metadata, configuration, and administrative details. The response includes the current user\'s permission level (admin, modeler, or member) within the organization. **Authorization**: Requires read access to the specified organization.
3350
3914
  * @summary Get organization details
3351
3915
  * @param {string} organizationName The unique identifier of the organization to retrieve
3352
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3353
3916
  * @param {*} [options] Override http request option.
3354
3917
  * @throws {RequiredError}
3355
3918
  * @memberof OrganizationsApi
3356
3919
  */
3357
- getOrganization(organizationName, checkAdmin, options) {
3358
- return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(organizationName, checkAdmin, options).then((request) => request(this.axios, this.basePath));
3920
+ getOrganization(organizationName, options) {
3921
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(organizationName, options).then((request) => request(this.axios, this.basePath));
3359
3922
  }
3360
3923
  /**
3361
- * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply.
3924
+ * Retrieves basic user information for a user within an organization context. This endpoint verifies that both the caller and the target user are members of the specified organization before returning user data. **Security**: Returns 404 (not 403) if the target user doesn\'t exist or is not a member of the organization. This prevents information leakage about user existence. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns only basic user fields (userName, email) for privacy.
3925
+ * @summary Get user within organization context
3926
+ * @param {string} organizationName The unique identifier of the organization
3927
+ * @param {string} userName The username (email) of the user to retrieve
3928
+ * @param {*} [options] Override http request option.
3929
+ * @throws {RequiredError}
3930
+ * @memberof OrganizationsApi
3931
+ */
3932
+ getOrganizationUser(organizationName, userName, options) {
3933
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationUser(organizationName, userName, options).then((request) => request(this.axios, this.basePath));
3934
+ }
3935
+ /**
3936
+ * Retrieves all users that are members of the specified organization, returning basic user information (userName, email) for each. **Authorization**: Requires read access to the organization (caller must be a member). **Response**: Returns array of user objects with basic fields only.
3937
+ * @summary List users in organization
3938
+ * @param {string} organizationName The unique identifier of the organization
3939
+ * @param {*} [options] Override http request option.
3940
+ * @throws {RequiredError}
3941
+ * @memberof OrganizationsApi
3942
+ */
3943
+ listOrganizationUsers(organizationName, options) {
3944
+ return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizationUsers(organizationName, options).then((request) => request(this.axios, this.basePath));
3945
+ }
3946
+ /**
3947
+ * Retrieves a comprehensive list of all organizations accessible to the authenticated user. This endpoint returns organization metadata including names, display names, and timestamps. **Authorization**: Requires appropriate permissions to view organizations. **Rate Limiting**: Standard rate limits apply. **Pagination**: Supports offset-based pagination with limit and offset parameters.
3362
3948
  * @summary List all organizations
3949
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
3950
+ * @param {number} [offset] Number of items to skip before starting to return results
3363
3951
  * @param {*} [options] Override http request option.
3364
3952
  * @throws {RequiredError}
3365
3953
  * @memberof OrganizationsApi
3366
3954
  */
3367
- listOrganizations(options) {
3368
- return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(options).then((request) => request(this.axios, this.basePath));
3955
+ listOrganizations(limit, offset, options) {
3956
+ return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(limit, offset, options).then((request) => request(this.axios, this.basePath));
3369
3957
  }
3370
3958
  /**
3371
3959
  * Partially updates an organization\'s details. Only the provided fields will be updated. This operation allows for selective updates without requiring all organization fields. **Authorization**: Requires organization admin permissions. **Validation**: All provided fields are validated according to their schema constraints. **Side Effects**: Updates the organization\'s `updatedAt` timestamp.
@@ -4007,21 +4595,18 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4007
4595
  };
4008
4596
  }),
4009
4597
  /**
4010
- * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata.
4011
- * @summary List packages in project
4598
+ * Returns a list of package resource identifiers under the given organization that the current user has access to. By default returns only packages the user can share (admin/modeler role). Set `onlyShareable=false` to include all readable packages (including viewer access). **Note**: This endpoint provides cross-project package visibility. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers.
4599
+ * @summary List accessible packages by organization
4012
4600
  * @param {string} organizationName The unique identifier of the organization
4013
- * @param {string} projectName The unique identifier of the project
4601
+ * @param {boolean} [onlyShareable] When true, returns only packages the user can share (admin/modeler). When false, returns all readable packages.
4014
4602
  * @param {*} [options] Override http request option.
4015
4603
  * @throws {RequiredError}
4016
4604
  */
4017
- listPackages: (organizationName_1, projectName_1, ...args_1) => __awaiter(this, [organizationName_1, projectName_1, ...args_1], void 0, function* (organizationName, projectName, options = {}) {
4605
+ listOrganizationPackages: (organizationName_1, onlyShareable_1, ...args_1) => __awaiter(this, [organizationName_1, onlyShareable_1, ...args_1], void 0, function* (organizationName, onlyShareable, options = {}) {
4018
4606
  // verify required parameter 'organizationName' is not null or undefined
4019
- (0, common_1.assertParamExists)('listPackages', 'organizationName', organizationName);
4020
- // verify required parameter 'projectName' is not null or undefined
4021
- (0, common_1.assertParamExists)('listPackages', 'projectName', projectName);
4022
- const localVarPath = `/organizations/{organizationName}/projects/{projectName}/packages`
4023
- .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
4024
- .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)));
4607
+ (0, common_1.assertParamExists)('listOrganizationPackages', 'organizationName', organizationName);
4608
+ const localVarPath = `/organizations/{organizationName}/packages`
4609
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
4025
4610
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4026
4611
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4027
4612
  let baseOptions;
@@ -4031,6 +4616,9 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4031
4616
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4032
4617
  const localVarHeaderParameter = {};
4033
4618
  const localVarQueryParameter = {};
4619
+ if (onlyShareable !== undefined) {
4620
+ localVarQueryParameter['onlyShareable'] = onlyShareable;
4621
+ }
4034
4622
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4035
4623
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4036
4624
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4040,18 +4628,23 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4040
4628
  };
4041
4629
  }),
4042
4630
  /**
4043
- * Returns a list of filtered package resource identifiers under the given organization that the current user has access to. This endpoint provides a filtered view of packages that are available for sharing or collaboration. **Note**: This endpoint is an exception to the standard resource hierarchy pattern (`/organizations/{org}/projects/{project}/packages`) because it provides cross-project package visibility for sharing and collaboration purposes. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers with access metadata.
4044
- * @summary List shareable packages by organization
4631
+ * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
4632
+ * @summary List packages in project
4045
4633
  * @param {string} organizationName The unique identifier of the organization
4634
+ * @param {string} projectName The unique identifier of the project
4635
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
4636
+ * @param {number} [offset] Number of items to skip before starting to return results
4046
4637
  * @param {*} [options] Override http request option.
4047
- * @deprecated
4048
4638
  * @throws {RequiredError}
4049
4639
  */
4050
- listShareablePackages: (organizationName_1, ...args_1) => __awaiter(this, [organizationName_1, ...args_1], void 0, function* (organizationName, options = {}) {
4640
+ listPackages: (organizationName_1, projectName_1, limit_1, offset_1, ...args_1) => __awaiter(this, [organizationName_1, projectName_1, limit_1, offset_1, ...args_1], void 0, function* (organizationName, projectName, limit, offset, options = {}) {
4051
4641
  // verify required parameter 'organizationName' is not null or undefined
4052
- (0, common_1.assertParamExists)('listShareablePackages', 'organizationName', organizationName);
4053
- const localVarPath = `/organizations/{organizationName}/shareable-packages`
4054
- .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
4642
+ (0, common_1.assertParamExists)('listPackages', 'organizationName', organizationName);
4643
+ // verify required parameter 'projectName' is not null or undefined
4644
+ (0, common_1.assertParamExists)('listPackages', 'projectName', projectName);
4645
+ const localVarPath = `/organizations/{organizationName}/projects/{projectName}/packages`
4646
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
4647
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)));
4055
4648
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4056
4649
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4057
4650
  let baseOptions;
@@ -4061,6 +4654,12 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4061
4654
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4062
4655
  const localVarHeaderParameter = {};
4063
4656
  const localVarQueryParameter = {};
4657
+ if (limit !== undefined) {
4658
+ localVarQueryParameter['limit'] = limit;
4659
+ }
4660
+ if (offset !== undefined) {
4661
+ localVarQueryParameter['offset'] = offset;
4662
+ }
4064
4663
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4065
4664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4066
4665
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4181,36 +4780,38 @@ const PackagesApiFp = function (configuration) {
4181
4780
  });
4182
4781
  },
4183
4782
  /**
4184
- * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata.
4185
- * @summary List packages in project
4783
+ * Returns a list of package resource identifiers under the given organization that the current user has access to. By default returns only packages the user can share (admin/modeler role). Set `onlyShareable=false` to include all readable packages (including viewer access). **Note**: This endpoint provides cross-project package visibility. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers.
4784
+ * @summary List accessible packages by organization
4186
4785
  * @param {string} organizationName The unique identifier of the organization
4187
- * @param {string} projectName The unique identifier of the project
4786
+ * @param {boolean} [onlyShareable] When true, returns only packages the user can share (admin/modeler). When false, returns all readable packages.
4188
4787
  * @param {*} [options] Override http request option.
4189
4788
  * @throws {RequiredError}
4190
4789
  */
4191
- listPackages(organizationName, projectName, options) {
4790
+ listOrganizationPackages(organizationName, onlyShareable, options) {
4192
4791
  return __awaiter(this, void 0, void 0, function* () {
4193
4792
  var _a, _b, _c;
4194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPackages(organizationName, projectName, options);
4793
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationPackages(organizationName, onlyShareable, options);
4195
4794
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4196
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PackagesApi.listPackages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4795
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PackagesApi.listOrganizationPackages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4197
4796
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4198
4797
  });
4199
4798
  },
4200
4799
  /**
4201
- * Returns a list of filtered package resource identifiers under the given organization that the current user has access to. This endpoint provides a filtered view of packages that are available for sharing or collaboration. **Note**: This endpoint is an exception to the standard resource hierarchy pattern (`/organizations/{org}/projects/{project}/packages`) because it provides cross-project package visibility for sharing and collaboration purposes. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers with access metadata.
4202
- * @summary List shareable packages by organization
4800
+ * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
4801
+ * @summary List packages in project
4203
4802
  * @param {string} organizationName The unique identifier of the organization
4803
+ * @param {string} projectName The unique identifier of the project
4804
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
4805
+ * @param {number} [offset] Number of items to skip before starting to return results
4204
4806
  * @param {*} [options] Override http request option.
4205
- * @deprecated
4206
4807
  * @throws {RequiredError}
4207
4808
  */
4208
- listShareablePackages(organizationName, options) {
4809
+ listPackages(organizationName, projectName, limit, offset, options) {
4209
4810
  return __awaiter(this, void 0, void 0, function* () {
4210
4811
  var _a, _b, _c;
4211
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listShareablePackages(organizationName, options);
4812
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPackages(organizationName, projectName, limit, offset, options);
4212
4813
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4213
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PackagesApi.listShareablePackages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4814
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PackagesApi.listPackages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4214
4815
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4215
4816
  });
4216
4817
  },
@@ -4285,26 +4886,28 @@ const PackagesApiFactory = function (configuration, basePath, axios) {
4285
4886
  return localVarFp.getPackage(organizationName, projectName, packageName, checkAdmin, options).then((request) => request(axios, basePath));
4286
4887
  },
4287
4888
  /**
4288
- * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata.
4289
- * @summary List packages in project
4889
+ * Returns a list of package resource identifiers under the given organization that the current user has access to. By default returns only packages the user can share (admin/modeler role). Set `onlyShareable=false` to include all readable packages (including viewer access). **Note**: This endpoint provides cross-project package visibility. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers.
4890
+ * @summary List accessible packages by organization
4290
4891
  * @param {string} organizationName The unique identifier of the organization
4291
- * @param {string} projectName The unique identifier of the project
4892
+ * @param {boolean} [onlyShareable] When true, returns only packages the user can share (admin/modeler). When false, returns all readable packages.
4292
4893
  * @param {*} [options] Override http request option.
4293
4894
  * @throws {RequiredError}
4294
4895
  */
4295
- listPackages(organizationName, projectName, options) {
4296
- return localVarFp.listPackages(organizationName, projectName, options).then((request) => request(axios, basePath));
4896
+ listOrganizationPackages(organizationName, onlyShareable, options) {
4897
+ return localVarFp.listOrganizationPackages(organizationName, onlyShareable, options).then((request) => request(axios, basePath));
4297
4898
  },
4298
4899
  /**
4299
- * Returns a list of filtered package resource identifiers under the given organization that the current user has access to. This endpoint provides a filtered view of packages that are available for sharing or collaboration. **Note**: This endpoint is an exception to the standard resource hierarchy pattern (`/organizations/{org}/projects/{project}/packages`) because it provides cross-project package visibility for sharing and collaboration purposes. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers with access metadata.
4300
- * @summary List shareable packages by organization
4900
+ * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
4901
+ * @summary List packages in project
4301
4902
  * @param {string} organizationName The unique identifier of the organization
4903
+ * @param {string} projectName The unique identifier of the project
4904
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
4905
+ * @param {number} [offset] Number of items to skip before starting to return results
4302
4906
  * @param {*} [options] Override http request option.
4303
- * @deprecated
4304
4907
  * @throws {RequiredError}
4305
4908
  */
4306
- listShareablePackages(organizationName, options) {
4307
- return localVarFp.listShareablePackages(organizationName, options).then((request) => request(axios, basePath));
4909
+ listPackages(organizationName, projectName, limit, offset, options) {
4910
+ return localVarFp.listPackages(organizationName, projectName, limit, offset, options).then((request) => request(axios, basePath));
4308
4911
  },
4309
4912
  /**
4310
4913
  * Updates the metadata and configuration of an existing package, including description, settings, and other package-level properties. **Authorization**: Requires package admin or modeler permissions. **Validation**: Updates are validated against package constraints and naming rules.
@@ -4374,28 +4977,30 @@ class PackagesApi extends base_1.BaseAPI {
4374
4977
  return (0, exports.PackagesApiFp)(this.configuration).getPackage(organizationName, projectName, packageName, checkAdmin, options).then((request) => request(this.axios, this.basePath));
4375
4978
  }
4376
4979
  /**
4377
- * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata.
4378
- * @summary List packages in project
4980
+ * Returns a list of package resource identifiers under the given organization that the current user has access to. By default returns only packages the user can share (admin/modeler role). Set `onlyShareable=false` to include all readable packages (including viewer access). **Note**: This endpoint provides cross-project package visibility. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers.
4981
+ * @summary List accessible packages by organization
4379
4982
  * @param {string} organizationName The unique identifier of the organization
4380
- * @param {string} projectName The unique identifier of the project
4983
+ * @param {boolean} [onlyShareable] When true, returns only packages the user can share (admin/modeler). When false, returns all readable packages.
4381
4984
  * @param {*} [options] Override http request option.
4382
4985
  * @throws {RequiredError}
4383
4986
  * @memberof PackagesApi
4384
4987
  */
4385
- listPackages(organizationName, projectName, options) {
4386
- return (0, exports.PackagesApiFp)(this.configuration).listPackages(organizationName, projectName, options).then((request) => request(this.axios, this.basePath));
4988
+ listOrganizationPackages(organizationName, onlyShareable, options) {
4989
+ return (0, exports.PackagesApiFp)(this.configuration).listOrganizationPackages(organizationName, onlyShareable, options).then((request) => request(this.axios, this.basePath));
4387
4990
  }
4388
4991
  /**
4389
- * Returns a list of filtered package resource identifiers under the given organization that the current user has access to. This endpoint provides a filtered view of packages that are available for sharing or collaboration. **Note**: This endpoint is an exception to the standard resource hierarchy pattern (`/organizations/{org}/projects/{project}/packages`) because it provides cross-project package visibility for sharing and collaboration purposes. It aggregates packages from all projects within the organization that the user has access to. **Authorization**: Requires read access to the organization. **Response**: Returns array of package resource identifiers with access metadata.
4390
- * @summary List shareable packages by organization
4992
+ * Retrieves all packages within the specified project, including metadata such as names, descriptions, latest versions, and creation timestamps. **Authorization**: Requires read access to the project. **Response**: Returns array of package objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
4993
+ * @summary List packages in project
4391
4994
  * @param {string} organizationName The unique identifier of the organization
4995
+ * @param {string} projectName The unique identifier of the project
4996
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
4997
+ * @param {number} [offset] Number of items to skip before starting to return results
4392
4998
  * @param {*} [options] Override http request option.
4393
- * @deprecated
4394
4999
  * @throws {RequiredError}
4395
5000
  * @memberof PackagesApi
4396
5001
  */
4397
- listShareablePackages(organizationName, options) {
4398
- return (0, exports.PackagesApiFp)(this.configuration).listShareablePackages(organizationName, options).then((request) => request(this.axios, this.basePath));
5002
+ listPackages(organizationName, projectName, limit, offset, options) {
5003
+ return (0, exports.PackagesApiFp)(this.configuration).listPackages(organizationName, projectName, limit, offset, options).then((request) => request(this.axios, this.basePath));
4399
5004
  }
4400
5005
  /**
4401
5006
  * Updates the metadata and configuration of an existing package, including description, settings, and other package-level properties. **Authorization**: Requires package admin or modeler permissions. **Validation**: Updates are validated against package constraints and naming rules.
@@ -5077,13 +5682,15 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
5077
5682
  };
5078
5683
  }),
5079
5684
  /**
5080
- * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata.
5685
+ * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
5081
5686
  * @summary List projects in organization
5082
5687
  * @param {string} organizationName The unique identifier of the organization
5688
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
5689
+ * @param {number} [offset] Number of items to skip before starting to return results
5083
5690
  * @param {*} [options] Override http request option.
5084
5691
  * @throws {RequiredError}
5085
5692
  */
5086
- listProjects: (organizationName_1, ...args_1) => __awaiter(this, [organizationName_1, ...args_1], void 0, function* (organizationName, options = {}) {
5693
+ listProjects: (organizationName_1, limit_1, offset_1, ...args_1) => __awaiter(this, [organizationName_1, limit_1, offset_1, ...args_1], void 0, function* (organizationName, limit, offset, options = {}) {
5087
5694
  // verify required parameter 'organizationName' is not null or undefined
5088
5695
  (0, common_1.assertParamExists)('listProjects', 'organizationName', organizationName);
5089
5696
  const localVarPath = `/organizations/{organizationName}/projects`
@@ -5097,6 +5704,12 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
5097
5704
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5098
5705
  const localVarHeaderParameter = {};
5099
5706
  const localVarQueryParameter = {};
5707
+ if (limit !== undefined) {
5708
+ localVarQueryParameter['limit'] = limit;
5709
+ }
5710
+ if (offset !== undefined) {
5711
+ localVarQueryParameter['offset'] = offset;
5712
+ }
5100
5713
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5101
5714
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5102
5715
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5206,16 +5819,18 @@ const ProjectsApiFp = function (configuration) {
5206
5819
  });
5207
5820
  },
5208
5821
  /**
5209
- * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata.
5822
+ * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
5210
5823
  * @summary List projects in organization
5211
5824
  * @param {string} organizationName The unique identifier of the organization
5825
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
5826
+ * @param {number} [offset] Number of items to skip before starting to return results
5212
5827
  * @param {*} [options] Override http request option.
5213
5828
  * @throws {RequiredError}
5214
5829
  */
5215
- listProjects(organizationName, options) {
5830
+ listProjects(organizationName, limit, offset, options) {
5216
5831
  return __awaiter(this, void 0, void 0, function* () {
5217
5832
  var _a, _b, _c;
5218
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProjects(organizationName, options);
5833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProjects(organizationName, limit, offset, options);
5219
5834
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5220
5835
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.listProjects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5221
5836
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5284,14 +5899,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
5284
5899
  return localVarFp.getProject(organizationName, projectName, checkAdmin, options).then((request) => request(axios, basePath));
5285
5900
  },
5286
5901
  /**
5287
- * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata.
5902
+ * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
5288
5903
  * @summary List projects in organization
5289
5904
  * @param {string} organizationName The unique identifier of the organization
5905
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
5906
+ * @param {number} [offset] Number of items to skip before starting to return results
5290
5907
  * @param {*} [options] Override http request option.
5291
5908
  * @throws {RequiredError}
5292
5909
  */
5293
- listProjects(organizationName, options) {
5294
- return localVarFp.listProjects(organizationName, options).then((request) => request(axios, basePath));
5910
+ listProjects(organizationName, limit, offset, options) {
5911
+ return localVarFp.listProjects(organizationName, limit, offset, options).then((request) => request(axios, basePath));
5295
5912
  },
5296
5913
  /**
5297
5914
  * Partially updates a project\'s details. Only the provided fields will be updated. This operation allows for selective updates without requiring all project fields. **Authorization**: Requires project admin permissions. **Validation**: All provided fields are validated according to their schema constraints. **Side Effects**: Updates the project\'s `updatedAt` timestamp.
@@ -5353,15 +5970,17 @@ class ProjectsApi extends base_1.BaseAPI {
5353
5970
  return (0, exports.ProjectsApiFp)(this.configuration).getProject(organizationName, projectName, checkAdmin, options).then((request) => request(this.axios, this.basePath));
5354
5971
  }
5355
5972
  /**
5356
- * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata.
5973
+ * Retrieves all projects within the specified organization, including metadata such as names, descriptions, creation dates, and replication counts. **Authorization**: Requires read access to the organization. **Response**: Returns array of project objects with full metadata. **Pagination**: Supports offset-based pagination with limit and offset parameters.
5357
5974
  * @summary List projects in organization
5358
5975
  * @param {string} organizationName The unique identifier of the organization
5976
+ * @param {number} [limit] Maximum number of items to return. Use -1 or omit to return all results. Valid values: -1 (all results) or 1–100.
5977
+ * @param {number} [offset] Number of items to skip before starting to return results
5359
5978
  * @param {*} [options] Override http request option.
5360
5979
  * @throws {RequiredError}
5361
5980
  * @memberof ProjectsApi
5362
5981
  */
5363
- listProjects(organizationName, options) {
5364
- return (0, exports.ProjectsApiFp)(this.configuration).listProjects(organizationName, options).then((request) => request(this.axios, this.basePath));
5982
+ listProjects(organizationName, limit, offset, options) {
5983
+ return (0, exports.ProjectsApiFp)(this.configuration).listProjects(organizationName, limit, offset, options).then((request) => request(this.axios, this.basePath));
5365
5984
  }
5366
5985
  /**
5367
5986
  * Partially updates a project\'s details. Only the provided fields will be updated. This operation allows for selective updates without requiring all project fields. **Authorization**: Requires project admin permissions. **Validation**: All provided fields are validated according to their schema constraints. **Side Effects**: Updates the project\'s `updatedAt` timestamp.
@@ -6681,6 +7300,35 @@ const WorkspacesApiAxiosParamCreator = function (configuration) {
6681
7300
  options: localVarRequestOptions,
6682
7301
  };
6683
7302
  }),
7303
+ /**
7304
+ * Gets or creates a personal workspace for the current user. This workspace is private and only the user has permissions to read and write documents in it. **Authorization**: Requires only organization member permissions. The user does not need \'can_create_workspace\' permission as personal workspaces are automatically provisioned. **Features**: Personal workspace for storing user-specific documents like chat histories.
7305
+ * @summary Get or create personal workspace
7306
+ * @param {string} organizationName The unique identifier of the organization
7307
+ * @param {*} [options] Override http request option.
7308
+ * @throws {RequiredError}
7309
+ */
7310
+ getOrCreatePersonalWorkspace: (organizationName_1, ...args_1) => __awaiter(this, [organizationName_1, ...args_1], void 0, function* (organizationName, options = {}) {
7311
+ // verify required parameter 'organizationName' is not null or undefined
7312
+ (0, common_1.assertParamExists)('getOrCreatePersonalWorkspace', 'organizationName', organizationName);
7313
+ const localVarPath = `/organizations/{organizationName}/workspaces/personal`
7314
+ .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)));
7315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7316
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7317
+ let baseOptions;
7318
+ if (configuration) {
7319
+ baseOptions = configuration.baseOptions;
7320
+ }
7321
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7322
+ const localVarHeaderParameter = {};
7323
+ const localVarQueryParameter = {};
7324
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7327
+ return {
7328
+ url: (0, common_1.toPathString)(localVarUrlObj),
7329
+ options: localVarRequestOptions,
7330
+ };
7331
+ }),
6684
7332
  /**
6685
7333
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6686
7334
  * @summary Get workspace details
@@ -6833,6 +7481,22 @@ const WorkspacesApiFp = function (configuration) {
6833
7481
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6834
7482
  });
6835
7483
  },
7484
+ /**
7485
+ * Gets or creates a personal workspace for the current user. This workspace is private and only the user has permissions to read and write documents in it. **Authorization**: Requires only organization member permissions. The user does not need \'can_create_workspace\' permission as personal workspaces are automatically provisioned. **Features**: Personal workspace for storing user-specific documents like chat histories.
7486
+ * @summary Get or create personal workspace
7487
+ * @param {string} organizationName The unique identifier of the organization
7488
+ * @param {*} [options] Override http request option.
7489
+ * @throws {RequiredError}
7490
+ */
7491
+ getOrCreatePersonalWorkspace(organizationName, options) {
7492
+ return __awaiter(this, void 0, void 0, function* () {
7493
+ var _a, _b, _c;
7494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrCreatePersonalWorkspace(organizationName, options);
7495
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7496
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspacesApi.getOrCreatePersonalWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7497
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7498
+ });
7499
+ },
6836
7500
  /**
6837
7501
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6838
7502
  * @summary Get workspace details
@@ -6918,6 +7582,16 @@ const WorkspacesApiFactory = function (configuration, basePath, axios) {
6918
7582
  deleteWorkspace(organizationName, workspaceName, options) {
6919
7583
  return localVarFp.deleteWorkspace(organizationName, workspaceName, options).then((request) => request(axios, basePath));
6920
7584
  },
7585
+ /**
7586
+ * Gets or creates a personal workspace for the current user. This workspace is private and only the user has permissions to read and write documents in it. **Authorization**: Requires only organization member permissions. The user does not need \'can_create_workspace\' permission as personal workspaces are automatically provisioned. **Features**: Personal workspace for storing user-specific documents like chat histories.
7587
+ * @summary Get or create personal workspace
7588
+ * @param {string} organizationName The unique identifier of the organization
7589
+ * @param {*} [options] Override http request option.
7590
+ * @throws {RequiredError}
7591
+ */
7592
+ getOrCreatePersonalWorkspace(organizationName, options) {
7593
+ return localVarFp.getOrCreatePersonalWorkspace(organizationName, options).then((request) => request(axios, basePath));
7594
+ },
6921
7595
  /**
6922
7596
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6923
7597
  * @summary Get workspace details
@@ -6987,6 +7661,17 @@ class WorkspacesApi extends base_1.BaseAPI {
6987
7661
  deleteWorkspace(organizationName, workspaceName, options) {
6988
7662
  return (0, exports.WorkspacesApiFp)(this.configuration).deleteWorkspace(organizationName, workspaceName, options).then((request) => request(this.axios, this.basePath));
6989
7663
  }
7664
+ /**
7665
+ * Gets or creates a personal workspace for the current user. This workspace is private and only the user has permissions to read and write documents in it. **Authorization**: Requires only organization member permissions. The user does not need \'can_create_workspace\' permission as personal workspaces are automatically provisioned. **Features**: Personal workspace for storing user-specific documents like chat histories.
7666
+ * @summary Get or create personal workspace
7667
+ * @param {string} organizationName The unique identifier of the organization
7668
+ * @param {*} [options] Override http request option.
7669
+ * @throws {RequiredError}
7670
+ * @memberof WorkspacesApi
7671
+ */
7672
+ getOrCreatePersonalWorkspace(organizationName, options) {
7673
+ return (0, exports.WorkspacesApiFp)(this.configuration).getOrCreatePersonalWorkspace(organizationName, options).then((request) => request(this.axios, this.basePath));
7674
+ }
6990
7675
  /**
6991
7676
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6992
7677
  * @summary Get workspace details