@credibledata/cred-cli 0.1.3 → 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 +804 -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 +5 -0
  113. package/package.json +24 -16
  114. package/src/client/.openapi-generator/FILES +1 -0
  115. package/src/client/api.ts +1999 -696
  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,24 +25,58 @@ 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.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 = 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.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 = 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',
39
44
  Snowflake: 'snowflake',
40
45
  Trino: 'trino',
41
- Mysql: 'mysql'
46
+ Mysql: 'mysql',
47
+ Duckdb: 'duckdb',
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'
58
+ };
59
+ exports.ConnectionAllOfDuckdbConnectionAttachedDatabasesTypeEnum = {
60
+ Bigquery: 'bigquery',
61
+ Snowflake: 'snowflake',
62
+ Postgres: 'postgres',
63
+ Gcs: 'gcs',
64
+ S3: 's3',
65
+ Azure: 'azure'
66
+ };
67
+ exports.ConnectionAllOfDuckdbConnectionAzureConnectionAuthTypeEnum = {
68
+ ServicePrincipal: 'service_principal',
69
+ SasToken: 'sas_token'
42
70
  };
43
71
  exports.DocumentTypeEnum = {
44
72
  Workbook: 'workbook',
45
- 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'
46
80
  };
47
81
  exports.DocumentPermissionPermissionEnum = {
48
82
  Editor: 'editor',
@@ -52,10 +86,27 @@ exports.DocumentPermissionInheritedPermissionEnum = {
52
86
  Manager: 'manager',
53
87
  Viewer: 'viewer'
54
88
  };
89
+ exports.GetOrganizationResponseUserPermissionEnum = {
90
+ Admin: 'admin',
91
+ Modeler: 'modeler',
92
+ Member: 'member'
93
+ };
55
94
  exports.GroupMemberStatusEnum = {
56
95
  Admin: 'admin',
57
96
  Member: 'member'
58
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
+ };
59
110
  exports.OrganizationPermissionPermissionEnum = {
60
111
  Admin: 'admin',
61
112
  Modeler: 'modeler',
@@ -85,12 +136,390 @@ exports.UpdateGroupMemberStatusRequestStatusEnum = {
85
136
  };
86
137
  exports.VersionArchiveStatusEnum = {
87
138
  Archive: 'archive',
88
- Unarchive: 'unarchive'
139
+ Unarchive: 'unarchive',
140
+ ErrorState: 'error_state'
141
+ };
142
+ exports.WorkspaceWorkspaceTypeEnum = {
143
+ PersonalInfra: 'PersonalInfra',
144
+ Group: 'Group'
89
145
  };
90
146
  exports.WorkspacePermissionPermissionEnum = {
91
147
  Manager: 'manager',
92
148
  Viewer: 'viewer'
93
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
+ };
94
523
  /**
95
524
  * ConnectionsApi - axios parameter creator
96
525
  * @export
@@ -214,14 +643,16 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
214
643
  };
215
644
  }),
216
645
  /**
217
- * 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.
218
647
  * @summary List database connections
219
648
  * @param {string} organizationName The unique identifier of the organization
220
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
221
652
  * @param {*} [options] Override http request option.
222
653
  * @throws {RequiredError}
223
654
  */
224
- 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 = {}) {
225
656
  // verify required parameter 'organizationName' is not null or undefined
226
657
  (0, common_1.assertParamExists)('listConnections', 'organizationName', organizationName);
227
658
  // verify required parameter 'projectName' is not null or undefined
@@ -238,6 +669,12 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
238
669
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
239
670
  const localVarHeaderParameter = {};
240
671
  const localVarQueryParameter = {};
672
+ if (limit !== undefined) {
673
+ localVarQueryParameter['limit'] = limit;
674
+ }
675
+ if (offset !== undefined) {
676
+ localVarQueryParameter['offset'] = offset;
677
+ }
241
678
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
242
679
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
680
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -352,17 +789,19 @@ const ConnectionsApiFp = function (configuration) {
352
789
  });
353
790
  },
354
791
  /**
355
- * 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.
356
793
  * @summary List database connections
357
794
  * @param {string} organizationName The unique identifier of the organization
358
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
359
798
  * @param {*} [options] Override http request option.
360
799
  * @throws {RequiredError}
361
800
  */
362
- listConnections(organizationName, projectName, options) {
801
+ listConnections(organizationName, projectName, limit, offset, options) {
363
802
  return __awaiter(this, void 0, void 0, function* () {
364
803
  var _a, _b, _c;
365
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnections(organizationName, projectName, options);
804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnections(organizationName, projectName, limit, offset, options);
366
805
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
367
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;
368
807
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -435,15 +874,17 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
435
874
  return localVarFp.getConnection(organizationName, projectName, connectionName, options).then((request) => request(axios, basePath));
436
875
  },
437
876
  /**
438
- * 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.
439
878
  * @summary List database connections
440
879
  * @param {string} organizationName The unique identifier of the organization
441
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
442
883
  * @param {*} [options] Override http request option.
443
884
  * @throws {RequiredError}
444
885
  */
445
- listConnections(organizationName, projectName, options) {
446
- 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));
447
888
  },
448
889
  /**
449
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.
@@ -509,16 +950,18 @@ class ConnectionsApi extends base_1.BaseAPI {
509
950
  return (0, exports.ConnectionsApiFp)(this.configuration).getConnection(organizationName, projectName, connectionName, options).then((request) => request(this.axios, this.basePath));
510
951
  }
511
952
  /**
512
- * 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.
513
954
  * @summary List database connections
514
955
  * @param {string} organizationName The unique identifier of the organization
515
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
516
959
  * @param {*} [options] Override http request option.
517
960
  * @throws {RequiredError}
518
961
  * @memberof ConnectionsApi
519
962
  */
520
- listConnections(organizationName, projectName, options) {
521
- 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));
522
965
  }
523
966
  /**
524
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.
@@ -1305,10 +1748,11 @@ const DocumentsApiAxiosParamCreator = function (configuration) {
1305
1748
  * @summary List workspace documents
1306
1749
  * @param {string} organizationName The unique identifier of the organization
1307
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.
1308
1752
  * @param {*} [options] Override http request option.
1309
1753
  * @throws {RequiredError}
1310
1754
  */
1311
- 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 = {}) {
1312
1756
  // verify required parameter 'organizationName' is not null or undefined
1313
1757
  (0, common_1.assertParamExists)('listDocuments', 'organizationName', organizationName);
1314
1758
  // verify required parameter 'workspaceName' is not null or undefined
@@ -1325,6 +1769,9 @@ const DocumentsApiAxiosParamCreator = function (configuration) {
1325
1769
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1326
1770
  const localVarHeaderParameter = {};
1327
1771
  const localVarQueryParameter = {};
1772
+ if (retrieveContent !== undefined) {
1773
+ localVarQueryParameter['retrieveContent'] = retrieveContent;
1774
+ }
1328
1775
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1329
1776
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1330
1777
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1444,13 +1891,14 @@ const DocumentsApiFp = function (configuration) {
1444
1891
  * @summary List workspace documents
1445
1892
  * @param {string} organizationName The unique identifier of the organization
1446
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.
1447
1895
  * @param {*} [options] Override http request option.
1448
1896
  * @throws {RequiredError}
1449
1897
  */
1450
- listDocuments(organizationName, workspaceName, options) {
1898
+ listDocuments(organizationName, workspaceName, retrieveContent, options) {
1451
1899
  return __awaiter(this, void 0, void 0, function* () {
1452
1900
  var _a, _b, _c;
1453
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listDocuments(organizationName, workspaceName, options);
1901
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDocuments(organizationName, workspaceName, retrieveContent, options);
1454
1902
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1455
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;
1456
1904
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1528,11 +1976,12 @@ const DocumentsApiFactory = function (configuration, basePath, axios) {
1528
1976
  * @summary List workspace documents
1529
1977
  * @param {string} organizationName The unique identifier of the organization
1530
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.
1531
1980
  * @param {*} [options] Override http request option.
1532
1981
  * @throws {RequiredError}
1533
1982
  */
1534
- listDocuments(organizationName, workspaceName, options) {
1535
- 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));
1536
1985
  },
1537
1986
  /**
1538
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.
@@ -1603,12 +2052,13 @@ class DocumentsApi extends base_1.BaseAPI {
1603
2052
  * @summary List workspace documents
1604
2053
  * @param {string} organizationName The unique identifier of the organization
1605
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.
1606
2056
  * @param {*} [options] Override http request option.
1607
2057
  * @throws {RequiredError}
1608
2058
  * @memberof DocumentsApi
1609
2059
  */
1610
- listDocuments(organizationName, workspaceName, options) {
1611
- 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));
1612
2062
  }
1613
2063
  /**
1614
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.
@@ -3062,14 +3512,13 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3062
3512
  };
3063
3513
  }),
3064
3514
  /**
3065
- * 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.
3066
3516
  * @summary Get organization details
3067
3517
  * @param {string} organizationName The unique identifier of the organization to retrieve
3068
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3069
3518
  * @param {*} [options] Override http request option.
3070
3519
  * @throws {RequiredError}
3071
3520
  */
3072
- 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 = {}) {
3073
3522
  // verify required parameter 'organizationName' is not null or undefined
3074
3523
  (0, common_1.assertParamExists)('getOrganization', 'organizationName', organizationName);
3075
3524
  const localVarPath = `/organizations/{organizationName}`
@@ -3083,9 +3532,68 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3083
3532
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3084
3533
  const localVarHeaderParameter = {};
3085
3534
  const localVarQueryParameter = {};
3086
- if (checkAdmin !== undefined) {
3087
- 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;
3088
3564
  }
3565
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3566
+ const localVarHeaderParameter = {};
3567
+ const localVarQueryParameter = {};
3568
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3569
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3570
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3571
+ return {
3572
+ url: (0, common_1.toPathString)(localVarUrlObj),
3573
+ options: localVarRequestOptions,
3574
+ };
3575
+ }),
3576
+ /**
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 = {};
3089
3597
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3090
3598
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3091
3599
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3095,12 +3603,14 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3095
3603
  };
3096
3604
  }),
3097
3605
  /**
3098
- * 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.
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.
3099
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
3100
3610
  * @param {*} [options] Override http request option.
3101
3611
  * @throws {RequiredError}
3102
3612
  */
3103
- 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 = {}) {
3104
3614
  const localVarPath = `/organizations`;
3105
3615
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3106
3616
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3111,6 +3621,12 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
3111
3621
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3112
3622
  const localVarHeaderParameter = {};
3113
3623
  const localVarQueryParameter = {};
3624
+ if (limit !== undefined) {
3625
+ localVarQueryParameter['limit'] = limit;
3626
+ }
3627
+ if (offset !== undefined) {
3628
+ localVarQueryParameter['offset'] = offset;
3629
+ }
3114
3630
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3115
3631
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3116
3632
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3196,32 +3712,66 @@ const OrganizationsApiFp = function (configuration) {
3196
3712
  });
3197
3713
  },
3198
3714
  /**
3199
- * 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.
3200
3716
  * @summary Get organization details
3201
3717
  * @param {string} organizationName The unique identifier of the organization to retrieve
3202
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3203
3718
  * @param {*} [options] Override http request option.
3204
3719
  * @throws {RequiredError}
3205
3720
  */
3206
- getOrganization(organizationName, checkAdmin, options) {
3721
+ getOrganization(organizationName, options) {
3207
3722
  return __awaiter(this, void 0, void 0, function* () {
3208
3723
  var _a, _b, _c;
3209
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(organizationName, checkAdmin, options);
3724
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(organizationName, options);
3210
3725
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3211
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;
3212
3727
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3213
3728
  });
3214
3729
  },
3215
3730
  /**
3216
- * 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.
3217
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
3218
3768
  * @param {*} [options] Override http request option.
3219
3769
  * @throws {RequiredError}
3220
3770
  */
3221
- listOrganizations(options) {
3771
+ listOrganizations(limit, offset, options) {
3222
3772
  return __awaiter(this, void 0, void 0, function* () {
3223
3773
  var _a, _b, _c;
3224
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(options);
3774
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(limit, offset, options);
3225
3775
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3226
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;
3227
3777
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3275,24 +3825,46 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
3275
3825
  return localVarFp.deleteOrganization(organizationName, options).then((request) => request(axios, basePath));
3276
3826
  },
3277
3827
  /**
3278
- * 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.
3279
3829
  * @summary Get organization details
3280
3830
  * @param {string} organizationName The unique identifier of the organization to retrieve
3281
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3282
3831
  * @param {*} [options] Override http request option.
3283
3832
  * @throws {RequiredError}
3284
3833
  */
3285
- getOrganization(organizationName, checkAdmin, options) {
3286
- 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));
3287
3857
  },
3288
3858
  /**
3289
- * 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.
3290
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
3291
3863
  * @param {*} [options] Override http request option.
3292
3864
  * @throws {RequiredError}
3293
3865
  */
3294
- listOrganizations(options) {
3295
- 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));
3296
3868
  },
3297
3869
  /**
3298
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.
@@ -3338,26 +3910,50 @@ class OrganizationsApi extends base_1.BaseAPI {
3338
3910
  return (0, exports.OrganizationsApiFp)(this.configuration).deleteOrganization(organizationName, options).then((request) => request(this.axios, this.basePath));
3339
3911
  }
3340
3912
  /**
3341
- * 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.
3342
3914
  * @summary Get organization details
3343
3915
  * @param {string} organizationName The unique identifier of the organization to retrieve
3344
- * @param {boolean} [checkAdmin] If true, includes admin privilege verification in the response
3345
3916
  * @param {*} [options] Override http request option.
3346
3917
  * @throws {RequiredError}
3347
3918
  * @memberof OrganizationsApi
3348
3919
  */
3349
- getOrganization(organizationName, checkAdmin, options) {
3350
- 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));
3351
3922
  }
3352
3923
  /**
3353
- * 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.
3354
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
3355
3951
  * @param {*} [options] Override http request option.
3356
3952
  * @throws {RequiredError}
3357
3953
  * @memberof OrganizationsApi
3358
3954
  */
3359
- listOrganizations(options) {
3360
- 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));
3361
3957
  }
3362
3958
  /**
3363
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.
@@ -3999,21 +4595,18 @@ const PackagesApiAxiosParamCreator = function (configuration) {
3999
4595
  };
4000
4596
  }),
4001
4597
  /**
4002
- * 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.
4003
- * @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
4004
4600
  * @param {string} organizationName The unique identifier of the organization
4005
- * @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.
4006
4602
  * @param {*} [options] Override http request option.
4007
4603
  * @throws {RequiredError}
4008
4604
  */
4009
- 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 = {}) {
4010
4606
  // verify required parameter 'organizationName' is not null or undefined
4011
- (0, common_1.assertParamExists)('listPackages', 'organizationName', organizationName);
4012
- // verify required parameter 'projectName' is not null or undefined
4013
- (0, common_1.assertParamExists)('listPackages', 'projectName', projectName);
4014
- const localVarPath = `/organizations/{organizationName}/projects/{projectName}/packages`
4015
- .replace(`{${"organizationName"}}`, encodeURIComponent(String(organizationName)))
4016
- .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)));
4017
4610
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4018
4611
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4019
4612
  let baseOptions;
@@ -4023,6 +4616,9 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4023
4616
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4024
4617
  const localVarHeaderParameter = {};
4025
4618
  const localVarQueryParameter = {};
4619
+ if (onlyShareable !== undefined) {
4620
+ localVarQueryParameter['onlyShareable'] = onlyShareable;
4621
+ }
4026
4622
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4027
4623
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4028
4624
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4032,18 +4628,23 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4032
4628
  };
4033
4629
  }),
4034
4630
  /**
4035
- * 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.
4036
- * @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
4037
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
4038
4637
  * @param {*} [options] Override http request option.
4039
- * @deprecated
4040
4638
  * @throws {RequiredError}
4041
4639
  */
4042
- 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 = {}) {
4043
4641
  // verify required parameter 'organizationName' is not null or undefined
4044
- (0, common_1.assertParamExists)('listShareablePackages', 'organizationName', organizationName);
4045
- const localVarPath = `/organizations/{organizationName}/shareable-packages`
4046
- .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)));
4047
4648
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4048
4649
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4049
4650
  let baseOptions;
@@ -4053,6 +4654,12 @@ const PackagesApiAxiosParamCreator = function (configuration) {
4053
4654
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4054
4655
  const localVarHeaderParameter = {};
4055
4656
  const localVarQueryParameter = {};
4657
+ if (limit !== undefined) {
4658
+ localVarQueryParameter['limit'] = limit;
4659
+ }
4660
+ if (offset !== undefined) {
4661
+ localVarQueryParameter['offset'] = offset;
4662
+ }
4056
4663
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4057
4664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4058
4665
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4173,36 +4780,38 @@ const PackagesApiFp = function (configuration) {
4173
4780
  });
4174
4781
  },
4175
4782
  /**
4176
- * 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.
4177
- * @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
4178
4785
  * @param {string} organizationName The unique identifier of the organization
4179
- * @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.
4180
4787
  * @param {*} [options] Override http request option.
4181
4788
  * @throws {RequiredError}
4182
4789
  */
4183
- listPackages(organizationName, projectName, options) {
4790
+ listOrganizationPackages(organizationName, onlyShareable, options) {
4184
4791
  return __awaiter(this, void 0, void 0, function* () {
4185
4792
  var _a, _b, _c;
4186
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPackages(organizationName, projectName, options);
4793
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationPackages(organizationName, onlyShareable, options);
4187
4794
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4188
- 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;
4189
4796
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4190
4797
  });
4191
4798
  },
4192
4799
  /**
4193
- * 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.
4194
- * @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
4195
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
4196
4806
  * @param {*} [options] Override http request option.
4197
- * @deprecated
4198
4807
  * @throws {RequiredError}
4199
4808
  */
4200
- listShareablePackages(organizationName, options) {
4809
+ listPackages(organizationName, projectName, limit, offset, options) {
4201
4810
  return __awaiter(this, void 0, void 0, function* () {
4202
4811
  var _a, _b, _c;
4203
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listShareablePackages(organizationName, options);
4812
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPackages(organizationName, projectName, limit, offset, options);
4204
4813
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4205
- 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;
4206
4815
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4207
4816
  });
4208
4817
  },
@@ -4277,26 +4886,28 @@ const PackagesApiFactory = function (configuration, basePath, axios) {
4277
4886
  return localVarFp.getPackage(organizationName, projectName, packageName, checkAdmin, options).then((request) => request(axios, basePath));
4278
4887
  },
4279
4888
  /**
4280
- * 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.
4281
- * @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
4282
4891
  * @param {string} organizationName The unique identifier of the organization
4283
- * @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.
4284
4893
  * @param {*} [options] Override http request option.
4285
4894
  * @throws {RequiredError}
4286
4895
  */
4287
- listPackages(organizationName, projectName, options) {
4288
- 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));
4289
4898
  },
4290
4899
  /**
4291
- * 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.
4292
- * @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
4293
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
4294
4906
  * @param {*} [options] Override http request option.
4295
- * @deprecated
4296
4907
  * @throws {RequiredError}
4297
4908
  */
4298
- listShareablePackages(organizationName, options) {
4299
- 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));
4300
4911
  },
4301
4912
  /**
4302
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.
@@ -4366,28 +4977,30 @@ class PackagesApi extends base_1.BaseAPI {
4366
4977
  return (0, exports.PackagesApiFp)(this.configuration).getPackage(organizationName, projectName, packageName, checkAdmin, options).then((request) => request(this.axios, this.basePath));
4367
4978
  }
4368
4979
  /**
4369
- * 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.
4370
- * @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
4371
4982
  * @param {string} organizationName The unique identifier of the organization
4372
- * @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.
4373
4984
  * @param {*} [options] Override http request option.
4374
4985
  * @throws {RequiredError}
4375
4986
  * @memberof PackagesApi
4376
4987
  */
4377
- listPackages(organizationName, projectName, options) {
4378
- 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));
4379
4990
  }
4380
4991
  /**
4381
- * 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.
4382
- * @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
4383
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
4384
4998
  * @param {*} [options] Override http request option.
4385
- * @deprecated
4386
4999
  * @throws {RequiredError}
4387
5000
  * @memberof PackagesApi
4388
5001
  */
4389
- listShareablePackages(organizationName, options) {
4390
- 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));
4391
5004
  }
4392
5005
  /**
4393
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.
@@ -5069,13 +5682,15 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
5069
5682
  };
5070
5683
  }),
5071
5684
  /**
5072
- * 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.
5073
5686
  * @summary List projects in organization
5074
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
5075
5690
  * @param {*} [options] Override http request option.
5076
5691
  * @throws {RequiredError}
5077
5692
  */
5078
- 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 = {}) {
5079
5694
  // verify required parameter 'organizationName' is not null or undefined
5080
5695
  (0, common_1.assertParamExists)('listProjects', 'organizationName', organizationName);
5081
5696
  const localVarPath = `/organizations/{organizationName}/projects`
@@ -5089,6 +5704,12 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
5089
5704
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5090
5705
  const localVarHeaderParameter = {};
5091
5706
  const localVarQueryParameter = {};
5707
+ if (limit !== undefined) {
5708
+ localVarQueryParameter['limit'] = limit;
5709
+ }
5710
+ if (offset !== undefined) {
5711
+ localVarQueryParameter['offset'] = offset;
5712
+ }
5092
5713
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5093
5714
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5094
5715
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5198,16 +5819,18 @@ const ProjectsApiFp = function (configuration) {
5198
5819
  });
5199
5820
  },
5200
5821
  /**
5201
- * 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.
5202
5823
  * @summary List projects in organization
5203
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
5204
5827
  * @param {*} [options] Override http request option.
5205
5828
  * @throws {RequiredError}
5206
5829
  */
5207
- listProjects(organizationName, options) {
5830
+ listProjects(organizationName, limit, offset, options) {
5208
5831
  return __awaiter(this, void 0, void 0, function* () {
5209
5832
  var _a, _b, _c;
5210
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProjects(organizationName, options);
5833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProjects(organizationName, limit, offset, options);
5211
5834
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5212
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;
5213
5836
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5276,14 +5899,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
5276
5899
  return localVarFp.getProject(organizationName, projectName, checkAdmin, options).then((request) => request(axios, basePath));
5277
5900
  },
5278
5901
  /**
5279
- * 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.
5280
5903
  * @summary List projects in organization
5281
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
5282
5907
  * @param {*} [options] Override http request option.
5283
5908
  * @throws {RequiredError}
5284
5909
  */
5285
- listProjects(organizationName, options) {
5286
- 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));
5287
5912
  },
5288
5913
  /**
5289
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.
@@ -5345,15 +5970,17 @@ class ProjectsApi extends base_1.BaseAPI {
5345
5970
  return (0, exports.ProjectsApiFp)(this.configuration).getProject(organizationName, projectName, checkAdmin, options).then((request) => request(this.axios, this.basePath));
5346
5971
  }
5347
5972
  /**
5348
- * 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.
5349
5974
  * @summary List projects in organization
5350
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
5351
5978
  * @param {*} [options] Override http request option.
5352
5979
  * @throws {RequiredError}
5353
5980
  * @memberof ProjectsApi
5354
5981
  */
5355
- listProjects(organizationName, options) {
5356
- 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));
5357
5984
  }
5358
5985
  /**
5359
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.
@@ -6673,6 +7300,35 @@ const WorkspacesApiAxiosParamCreator = function (configuration) {
6673
7300
  options: localVarRequestOptions,
6674
7301
  };
6675
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
+ }),
6676
7332
  /**
6677
7333
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6678
7334
  * @summary Get workspace details
@@ -6825,6 +7481,22 @@ const WorkspacesApiFp = function (configuration) {
6825
7481
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6826
7482
  });
6827
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
+ },
6828
7500
  /**
6829
7501
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6830
7502
  * @summary Get workspace details
@@ -6910,6 +7582,16 @@ const WorkspacesApiFactory = function (configuration, basePath, axios) {
6910
7582
  deleteWorkspace(organizationName, workspaceName, options) {
6911
7583
  return localVarFp.deleteWorkspace(organizationName, workspaceName, options).then((request) => request(axios, basePath));
6912
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
+ },
6913
7595
  /**
6914
7596
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6915
7597
  * @summary Get workspace details
@@ -6979,6 +7661,17 @@ class WorkspacesApi extends base_1.BaseAPI {
6979
7661
  deleteWorkspace(organizationName, workspaceName, options) {
6980
7662
  return (0, exports.WorkspacesApiFp)(this.configuration).deleteWorkspace(organizationName, workspaceName, options).then((request) => request(this.axios, this.basePath));
6981
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
+ }
6982
7675
  /**
6983
7676
  * Retrieves detailed information about a specific workspace, including its metadata, associated packages, and configuration settings.
6984
7677
  * @summary Get workspace details