@widgetic/api-sdk 1.0.16 → 1.0.17

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 (226) hide show
  1. package/dist/apis/ABTestingApi.js +90 -30
  2. package/dist/apis/AdminApi.js +12 -4
  3. package/dist/apis/AuthenticationApi.d.ts +3 -3
  4. package/dist/apis/AuthenticationApi.js +31 -11
  5. package/dist/apis/BatchApi.js +6 -2
  6. package/dist/apis/BillingApi.d.ts +13 -13
  7. package/dist/apis/BillingApi.js +8 -8
  8. package/dist/apis/CanvasesApi.js +30 -10
  9. package/dist/apis/ComponentsApi.d.ts +3 -3
  10. package/dist/apis/ComponentsApi.js +43 -15
  11. package/dist/apis/CompositionsApi.js +132 -44
  12. package/dist/apis/ContentsApi.js +36 -12
  13. package/dist/apis/ConversationsApi.js +30 -10
  14. package/dist/apis/CreditsApi.js +30 -10
  15. package/dist/apis/DemoContentsApi.js +30 -10
  16. package/dist/apis/EntitlementsApi.js +30 -10
  17. package/dist/apis/FoldersApi.js +30 -10
  18. package/dist/apis/HealthApi.js +12 -4
  19. package/dist/apis/IntegrationsApi.js +42 -14
  20. package/dist/apis/InvitationsApi.js +12 -4
  21. package/dist/apis/InvoicesApi.js +36 -12
  22. package/dist/apis/ManagedUsersApi.js +36 -12
  23. package/dist/apis/MessagesApi.js +36 -12
  24. package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
  25. package/dist/apis/OrganizationActivitiesApi.js +221 -0
  26. package/dist/apis/OrganizationsApi.d.ts +31 -106
  27. package/dist/apis/OrganizationsApi.js +324 -292
  28. package/dist/apis/PartnerCustomizationsApi.js +30 -10
  29. package/dist/apis/PartnersApi.js +30 -10
  30. package/dist/apis/PromptsApi.js +30 -10
  31. package/dist/apis/SubscriptionPlansApi.js +12 -4
  32. package/dist/apis/SubscriptionsApi.js +48 -16
  33. package/dist/apis/TranslationsApi.d.ts +5 -5
  34. package/dist/apis/TranslationsApi.js +2 -2
  35. package/dist/apis/UIComponentsApi.js +24 -8
  36. package/dist/apis/UsageApi.js +42 -14
  37. package/dist/apis/UsersApi.d.ts +3 -3
  38. package/dist/apis/UsersApi.js +1 -1
  39. package/dist/apis/WorkspacesApi.js +78 -26
  40. package/dist/apis/index.d.ts +1 -0
  41. package/dist/apis/index.js +1 -0
  42. package/dist/esm/apis/ABTestingApi.js +90 -30
  43. package/dist/esm/apis/AdminApi.js +12 -4
  44. package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
  45. package/dist/esm/apis/AuthenticationApi.js +32 -12
  46. package/dist/esm/apis/BatchApi.js +6 -2
  47. package/dist/esm/apis/BillingApi.d.ts +13 -13
  48. package/dist/esm/apis/BillingApi.js +9 -9
  49. package/dist/esm/apis/CanvasesApi.js +30 -10
  50. package/dist/esm/apis/ComponentsApi.d.ts +3 -3
  51. package/dist/esm/apis/ComponentsApi.js +44 -16
  52. package/dist/esm/apis/CompositionsApi.js +132 -44
  53. package/dist/esm/apis/ContentsApi.js +36 -12
  54. package/dist/esm/apis/ConversationsApi.js +30 -10
  55. package/dist/esm/apis/CreditsApi.js +30 -10
  56. package/dist/esm/apis/DemoContentsApi.js +30 -10
  57. package/dist/esm/apis/EntitlementsApi.js +30 -10
  58. package/dist/esm/apis/FoldersApi.js +30 -10
  59. package/dist/esm/apis/HealthApi.js +12 -4
  60. package/dist/esm/apis/IntegrationsApi.js +42 -14
  61. package/dist/esm/apis/InvitationsApi.js +12 -4
  62. package/dist/esm/apis/InvoicesApi.js +36 -12
  63. package/dist/esm/apis/ManagedUsersApi.js +36 -12
  64. package/dist/esm/apis/MessagesApi.js +36 -12
  65. package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
  66. package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
  67. package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
  68. package/dist/esm/apis/OrganizationsApi.js +324 -292
  69. package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
  70. package/dist/esm/apis/PartnersApi.js +30 -10
  71. package/dist/esm/apis/PromptsApi.js +30 -10
  72. package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
  73. package/dist/esm/apis/SubscriptionsApi.js +48 -16
  74. package/dist/esm/apis/TranslationsApi.d.ts +5 -5
  75. package/dist/esm/apis/TranslationsApi.js +3 -3
  76. package/dist/esm/apis/UIComponentsApi.js +24 -8
  77. package/dist/esm/apis/UsageApi.js +42 -14
  78. package/dist/esm/apis/UsersApi.d.ts +3 -3
  79. package/dist/esm/apis/UsersApi.js +2 -2
  80. package/dist/esm/apis/WorkspacesApi.js +78 -26
  81. package/dist/esm/apis/index.d.ts +1 -0
  82. package/dist/esm/apis/index.js +1 -0
  83. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  84. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  85. package/dist/esm/models/Canvas.d.ts +6 -0
  86. package/dist/esm/models/Canvas.js +2 -0
  87. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  88. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  89. package/dist/esm/models/ErrorResponse.d.ts +12 -12
  90. package/dist/esm/models/ErrorResponse.js +4 -4
  91. package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
  92. package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
  93. package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
  94. package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
  95. package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  96. package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
  97. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  98. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
  99. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  100. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
  101. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  102. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
  103. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  104. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
  105. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  106. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
  107. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  108. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
  109. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  110. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
  111. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  112. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
  113. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  114. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
  115. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  116. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
  117. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  118. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
  119. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  120. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
  121. package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
  122. package/dist/esm/models/UpdateCanvasRequest.js +2 -0
  123. package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
  124. package/dist/esm/models/UpdateWidgetRequest.js +5 -0
  125. package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  126. package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
  127. package/dist/esm/models/index.d.ts +24 -24
  128. package/dist/esm/models/index.js +24 -24
  129. package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  130. package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  131. package/dist/models/Canvas.d.ts +6 -0
  132. package/dist/models/Canvas.js +2 -0
  133. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  134. package/dist/models/CreateCanvasRequest.js +2 -0
  135. package/dist/models/ErrorResponse.d.ts +12 -12
  136. package/dist/models/ErrorResponse.js +4 -4
  137. package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
  138. package/dist/models/GetCompositionsBatch200Response.js +3 -3
  139. package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
  140. package/dist/models/GetWidgetsBatch200Response.js +3 -3
  141. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  142. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
  143. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  144. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
  145. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  146. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
  147. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  148. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  149. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  150. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
  151. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  152. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
  153. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  154. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
  155. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  156. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
  157. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  158. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  159. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  160. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
  161. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  162. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
  163. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  164. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
  165. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  166. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
  167. package/dist/models/UpdateCanvasRequest.d.ts +6 -0
  168. package/dist/models/UpdateCanvasRequest.js +2 -0
  169. package/dist/models/UpdateWidgetRequest.d.ts +12 -0
  170. package/dist/models/UpdateWidgetRequest.js +5 -0
  171. package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  172. package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
  173. package/dist/models/index.d.ts +24 -24
  174. package/dist/models/index.js +24 -24
  175. package/package.json +1 -1
  176. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  177. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  178. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  179. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  180. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  181. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  182. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  183. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  184. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  185. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  186. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  187. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  188. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  189. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  190. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  191. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  192. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  193. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  194. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  195. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  196. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  197. package/dist/esm/models/LoginUser200Response.js +0 -43
  198. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  199. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  200. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  201. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  202. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  203. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  204. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  205. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  206. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  207. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  208. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  209. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  210. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  211. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  212. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  213. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  214. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  215. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  216. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  217. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  218. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  219. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  220. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  221. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  222. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  223. package/dist/models/LoginUser200Response.d.ts +0 -38
  224. package/dist/models/LoginUser200Response.js +0 -50
  225. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  226. package/dist/models/RollbackComponent200Response.js +0 -50
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ListOrganizationTranslationsStatusEnum = exports.GetOrganizationActivitiesCategoryEnum = exports.OrganizationsApi = void 0;
25
+ exports.ListOrganizationTranslationsStatusEnum = exports.OrganizationsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -43,8 +43,12 @@ class OrganizationsApi extends runtime.BaseAPI {
43
43
  }
44
44
  const queryParameters = {};
45
45
  const headerParameters = {};
46
- if (this.configuration && this.configuration.apiKey) {
47
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = yield token("apiKeyAuth", []);
49
+ if (tokenString) {
50
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
+ }
48
52
  }
49
53
  const response = yield this.request({
50
54
  path: `/organizations/{orgId}/invitations/{invitationId}/accept`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId']))),
@@ -80,8 +84,12 @@ class OrganizationsApi extends runtime.BaseAPI {
80
84
  const queryParameters = {};
81
85
  const headerParameters = {};
82
86
  headerParameters['Content-Type'] = 'application/json';
83
- if (this.configuration && this.configuration.apiKey) {
84
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
87
+ if (this.configuration && this.configuration.accessToken) {
88
+ const token = this.configuration.accessToken;
89
+ const tokenString = yield token("apiKeyAuth", []);
90
+ if (tokenString) {
91
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
92
+ }
85
93
  }
86
94
  const response = yield this.request({
87
95
  path: `/organizations/{orgId}/domains`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -117,8 +125,12 @@ class OrganizationsApi extends runtime.BaseAPI {
117
125
  }
118
126
  const queryParameters = {};
119
127
  const headerParameters = {};
120
- if (this.configuration && this.configuration.apiKey) {
121
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
128
+ if (this.configuration && this.configuration.accessToken) {
129
+ const token = this.configuration.accessToken;
130
+ const tokenString = yield token("apiKeyAuth", []);
131
+ if (tokenString) {
132
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
133
+ }
122
134
  }
123
135
  const response = yield this.request({
124
136
  path: `/organizations/{orgId}/invitations/{invitationId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId']))),
@@ -126,7 +138,7 @@ class OrganizationsApi extends runtime.BaseAPI {
126
138
  headers: headerParameters,
127
139
  query: queryParameters,
128
140
  }, initOverrides);
129
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
141
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
130
142
  });
131
143
  }
132
144
  /**
@@ -148,8 +160,12 @@ class OrganizationsApi extends runtime.BaseAPI {
148
160
  const queryParameters = {};
149
161
  const headerParameters = {};
150
162
  headerParameters['Content-Type'] = 'application/json';
151
- if (this.configuration && this.configuration.apiKey) {
152
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
163
+ if (this.configuration && this.configuration.accessToken) {
164
+ const token = this.configuration.accessToken;
165
+ const tokenString = yield token("apiKeyAuth", []);
166
+ if (tokenString) {
167
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
168
+ }
153
169
  }
154
170
  const response = yield this.request({
155
171
  path: `/organizations/admin/cleanup-orphaned-invitations`,
@@ -183,8 +199,12 @@ class OrganizationsApi extends runtime.BaseAPI {
183
199
  const queryParameters = {};
184
200
  const headerParameters = {};
185
201
  headerParameters['Content-Type'] = 'application/json';
186
- if (this.configuration && this.configuration.apiKey) {
187
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
188
208
  }
189
209
  const response = yield this.request({
190
210
  path: `/organizations`,
@@ -221,8 +241,12 @@ class OrganizationsApi extends runtime.BaseAPI {
221
241
  const queryParameters = {};
222
242
  const headerParameters = {};
223
243
  headerParameters['Content-Type'] = 'application/json';
224
- if (this.configuration && this.configuration.apiKey) {
225
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
244
+ if (this.configuration && this.configuration.accessToken) {
245
+ const token = this.configuration.accessToken;
246
+ const tokenString = yield token("apiKeyAuth", []);
247
+ if (tokenString) {
248
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
249
+ }
226
250
  }
227
251
  const response = yield this.request({
228
252
  path: `/organizations/{orgId}/api-keys`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -259,8 +283,12 @@ class OrganizationsApi extends runtime.BaseAPI {
259
283
  const queryParameters = {};
260
284
  const headerParameters = {};
261
285
  headerParameters['Content-Type'] = 'application/json';
262
- if (this.configuration && this.configuration.apiKey) {
263
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
286
+ if (this.configuration && this.configuration.accessToken) {
287
+ const token = this.configuration.accessToken;
288
+ const tokenString = yield token("apiKeyAuth", []);
289
+ if (tokenString) {
290
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
291
+ }
264
292
  }
265
293
  const response = yield this.request({
266
294
  path: `/organizations/{orgId}/translations`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -293,8 +321,12 @@ class OrganizationsApi extends runtime.BaseAPI {
293
321
  }
294
322
  const queryParameters = {};
295
323
  const headerParameters = {};
296
- if (this.configuration && this.configuration.apiKey) {
297
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
324
+ if (this.configuration && this.configuration.accessToken) {
325
+ const token = this.configuration.accessToken;
326
+ const tokenString = yield token("apiKeyAuth", []);
327
+ if (tokenString) {
328
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
329
+ }
298
330
  }
299
331
  const response = yield this.request({
300
332
  path: `/organizations/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -302,7 +334,7 @@ class OrganizationsApi extends runtime.BaseAPI {
302
334
  headers: headerParameters,
303
335
  query: queryParameters,
304
336
  }, initOverrides);
305
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
337
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
306
338
  });
307
339
  }
308
340
  /**
@@ -315,42 +347,6 @@ class OrganizationsApi extends runtime.BaseAPI {
315
347
  return yield response.value();
316
348
  });
317
349
  }
318
- /**
319
- * Deletes an activity from the organization history. Only organization owners can delete activities.
320
- * Delete Organization Activity
321
- */
322
- deleteOrganizationActivityRaw(requestParameters, initOverrides) {
323
- return __awaiter(this, void 0, void 0, function* () {
324
- if (requestParameters['orgId'] == null) {
325
- throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling deleteOrganizationActivity().');
326
- }
327
- if (requestParameters['activityId'] == null) {
328
- throw new runtime.RequiredError('activityId', 'Required parameter "activityId" was null or undefined when calling deleteOrganizationActivity().');
329
- }
330
- const queryParameters = {};
331
- const headerParameters = {};
332
- if (this.configuration && this.configuration.apiKey) {
333
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
334
- }
335
- const response = yield this.request({
336
- path: `/organizations/{orgId}/activities/{activityId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters['activityId']))),
337
- method: 'DELETE',
338
- headers: headerParameters,
339
- query: queryParameters,
340
- }, initOverrides);
341
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
342
- });
343
- }
344
- /**
345
- * Deletes an activity from the organization history. Only organization owners can delete activities.
346
- * Delete Organization Activity
347
- */
348
- deleteOrganizationActivity(requestParameters, initOverrides) {
349
- return __awaiter(this, void 0, void 0, function* () {
350
- const response = yield this.deleteOrganizationActivityRaw(requestParameters, initOverrides);
351
- return yield response.value();
352
- });
353
- }
354
350
  /**
355
351
  * Delete an organization API key permanently. Only accessible by organization owners and admins with MANAGE_API_KEYS permission.
356
352
  * Delete Organization API Key
@@ -365,8 +361,12 @@ class OrganizationsApi extends runtime.BaseAPI {
365
361
  }
366
362
  const queryParameters = {};
367
363
  const headerParameters = {};
368
- if (this.configuration && this.configuration.apiKey) {
369
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
364
+ if (this.configuration && this.configuration.accessToken) {
365
+ const token = this.configuration.accessToken;
366
+ const tokenString = yield token("apiKeyAuth", []);
367
+ if (tokenString) {
368
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
369
+ }
370
370
  }
371
371
  const response = yield this.request({
372
372
  path: `/organizations/{orgId}/api-keys/{keyId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
@@ -374,7 +374,7 @@ class OrganizationsApi extends runtime.BaseAPI {
374
374
  headers: headerParameters,
375
375
  query: queryParameters,
376
376
  }, initOverrides);
377
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
377
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
378
378
  });
379
379
  }
380
380
  /**
@@ -401,8 +401,12 @@ class OrganizationsApi extends runtime.BaseAPI {
401
401
  }
402
402
  const queryParameters = {};
403
403
  const headerParameters = {};
404
- if (this.configuration && this.configuration.apiKey) {
405
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
404
+ if (this.configuration && this.configuration.accessToken) {
405
+ const token = this.configuration.accessToken;
406
+ const tokenString = yield token("apiKeyAuth", []);
407
+ if (tokenString) {
408
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
409
+ }
406
410
  }
407
411
  const response = yield this.request({
408
412
  path: `/organizations/{orgId}/domains/{domainId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
@@ -437,8 +441,12 @@ class OrganizationsApi extends runtime.BaseAPI {
437
441
  }
438
442
  const queryParameters = {};
439
443
  const headerParameters = {};
440
- if (this.configuration && this.configuration.apiKey) {
441
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
444
+ if (this.configuration && this.configuration.accessToken) {
445
+ const token = this.configuration.accessToken;
446
+ const tokenString = yield token("apiKeyAuth", []);
447
+ if (tokenString) {
448
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
449
+ }
442
450
  }
443
451
  const response = yield this.request({
444
452
  path: `/organizations/{orgId}/translations/{translationId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"translationId"}}`, encodeURIComponent(String(requestParameters['translationId']))),
@@ -482,8 +490,12 @@ class OrganizationsApi extends runtime.BaseAPI {
482
490
  queryParameters['endDate'] = requestParameters['endDate'].toISOString().substring(0, 10);
483
491
  }
484
492
  const headerParameters = {};
485
- if (this.configuration && this.configuration.apiKey) {
486
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
493
+ if (this.configuration && this.configuration.accessToken) {
494
+ const token = this.configuration.accessToken;
495
+ const tokenString = yield token("apiKeyAuth", []);
496
+ if (tokenString) {
497
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
498
+ }
487
499
  }
488
500
  const response = yield this.request({
489
501
  path: `/organizations/{orgId}/reports/billing-impact`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -521,8 +533,12 @@ class OrganizationsApi extends runtime.BaseAPI {
521
533
  queryParameters['endDate'] = requestParameters['endDate'].toISOString().substring(0, 10);
522
534
  }
523
535
  const headerParameters = {};
524
- if (this.configuration && this.configuration.apiKey) {
525
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
536
+ if (this.configuration && this.configuration.accessToken) {
537
+ const token = this.configuration.accessToken;
538
+ const tokenString = yield token("apiKeyAuth", []);
539
+ if (tokenString) {
540
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
541
+ }
526
542
  }
527
543
  const response = yield this.request({
528
544
  path: `/organizations/{orgId}/reports/comprehensive`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -551,8 +567,12 @@ class OrganizationsApi extends runtime.BaseAPI {
551
567
  return __awaiter(this, void 0, void 0, function* () {
552
568
  const queryParameters = {};
553
569
  const headerParameters = {};
554
- if (this.configuration && this.configuration.apiKey) {
555
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
570
+ if (this.configuration && this.configuration.accessToken) {
571
+ const token = this.configuration.accessToken;
572
+ const tokenString = yield token("apiKeyAuth", []);
573
+ if (tokenString) {
574
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
575
+ }
556
576
  }
557
577
  const response = yield this.request({
558
578
  path: `/organizations/workspace/context`,
@@ -584,8 +604,12 @@ class OrganizationsApi extends runtime.BaseAPI {
584
604
  }
585
605
  const queryParameters = {};
586
606
  const headerParameters = {};
587
- if (this.configuration && this.configuration.apiKey) {
588
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
607
+ if (this.configuration && this.configuration.accessToken) {
608
+ const token = this.configuration.accessToken;
609
+ const tokenString = yield token("apiKeyAuth", []);
610
+ if (tokenString) {
611
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
612
+ }
589
613
  }
590
614
  const response = yield this.request({
591
615
  path: `/organizations/{orgId}/reports/member-status`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -629,8 +653,12 @@ class OrganizationsApi extends runtime.BaseAPI {
629
653
  queryParameters['endDate'] = requestParameters['endDate'].toISOString().substring(0, 10);
630
654
  }
631
655
  const headerParameters = {};
632
- if (this.configuration && this.configuration.apiKey) {
633
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
656
+ if (this.configuration && this.configuration.accessToken) {
657
+ const token = this.configuration.accessToken;
658
+ const tokenString = yield token("apiKeyAuth", []);
659
+ if (tokenString) {
660
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
661
+ }
634
662
  }
635
663
  const response = yield this.request({
636
664
  path: `/organizations/{orgId}/reports/member-trends`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -662,8 +690,12 @@ class OrganizationsApi extends runtime.BaseAPI {
662
690
  }
663
691
  const queryParameters = {};
664
692
  const headerParameters = {};
665
- if (this.configuration && this.configuration.apiKey) {
666
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
693
+ if (this.configuration && this.configuration.accessToken) {
694
+ const token = this.configuration.accessToken;
695
+ const tokenString = yield token("apiKeyAuth", []);
696
+ if (tokenString) {
697
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
698
+ }
667
699
  }
668
700
  const response = yield this.request({
669
701
  path: `/organizations/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -684,90 +716,6 @@ class OrganizationsApi extends runtime.BaseAPI {
684
716
  return yield response.value();
685
717
  });
686
718
  }
687
- /**
688
- * Retrieves the activity history for an organization. Shows public activities visible to all organization members.
689
- * Get Organization Activities
690
- */
691
- getOrganizationActivitiesRaw(requestParameters, initOverrides) {
692
- return __awaiter(this, void 0, void 0, function* () {
693
- if (requestParameters['orgId'] == null) {
694
- throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling getOrganizationActivities().');
695
- }
696
- const queryParameters = {};
697
- if (requestParameters['limit'] != null) {
698
- queryParameters['limit'] = requestParameters['limit'];
699
- }
700
- if (requestParameters['offset'] != null) {
701
- queryParameters['offset'] = requestParameters['offset'];
702
- }
703
- if (requestParameters['category'] != null) {
704
- queryParameters['category'] = requestParameters['category'];
705
- }
706
- if (requestParameters['userId'] != null) {
707
- queryParameters['userId'] = requestParameters['userId'];
708
- }
709
- if (requestParameters['daysBack'] != null) {
710
- queryParameters['daysBack'] = requestParameters['daysBack'];
711
- }
712
- const headerParameters = {};
713
- if (this.configuration && this.configuration.apiKey) {
714
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
715
- }
716
- const response = yield this.request({
717
- path: `/organizations/{orgId}/activities`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
718
- method: 'GET',
719
- headers: headerParameters,
720
- query: queryParameters,
721
- }, initOverrides);
722
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetOrganizationActivities200ResponseFromJSON)(jsonValue));
723
- });
724
- }
725
- /**
726
- * Retrieves the activity history for an organization. Shows public activities visible to all organization members.
727
- * Get Organization Activities
728
- */
729
- getOrganizationActivities(requestParameters, initOverrides) {
730
- return __awaiter(this, void 0, void 0, function* () {
731
- const response = yield this.getOrganizationActivitiesRaw(requestParameters, initOverrides);
732
- return yield response.value();
733
- });
734
- }
735
- /**
736
- * Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
737
- * Get Organization Activity Statistics
738
- */
739
- getOrganizationActivityStatsRaw(requestParameters, initOverrides) {
740
- return __awaiter(this, void 0, void 0, function* () {
741
- if (requestParameters['orgId'] == null) {
742
- throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling getOrganizationActivityStats().');
743
- }
744
- const queryParameters = {};
745
- if (requestParameters['daysBack'] != null) {
746
- queryParameters['daysBack'] = requestParameters['daysBack'];
747
- }
748
- const headerParameters = {};
749
- if (this.configuration && this.configuration.apiKey) {
750
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
751
- }
752
- const response = yield this.request({
753
- path: `/organizations/{orgId}/activities/stats`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
754
- method: 'GET',
755
- headers: headerParameters,
756
- query: queryParameters,
757
- }, initOverrides);
758
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetOrganizationActivityStats200ResponseFromJSON)(jsonValue));
759
- });
760
- }
761
- /**
762
- * Retrieves activity statistics and trends for an organization. Useful for dashboard displays and analytics.
763
- * Get Organization Activity Statistics
764
- */
765
- getOrganizationActivityStats(requestParameters, initOverrides) {
766
- return __awaiter(this, void 0, void 0, function* () {
767
- const response = yield this.getOrganizationActivityStatsRaw(requestParameters, initOverrides);
768
- return yield response.value();
769
- });
770
- }
771
719
  /**
772
720
  * Retrieves usage logs for a specific organization API key with detailed information about each API call
773
721
  * Get Organization API Key Usage Logs
@@ -785,8 +733,12 @@ class OrganizationsApi extends runtime.BaseAPI {
785
733
  queryParameters['limit'] = requestParameters['limit'];
786
734
  }
787
735
  const headerParameters = {};
788
- if (this.configuration && this.configuration.apiKey) {
789
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
736
+ if (this.configuration && this.configuration.accessToken) {
737
+ const token = this.configuration.accessToken;
738
+ const tokenString = yield token("apiKeyAuth", []);
739
+ if (tokenString) {
740
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
741
+ }
790
742
  }
791
743
  const response = yield this.request({
792
744
  path: `/organizations/{orgId}/api-keys/{keyId}/logs`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
@@ -818,8 +770,12 @@ class OrganizationsApi extends runtime.BaseAPI {
818
770
  }
819
771
  const queryParameters = {};
820
772
  const headerParameters = {};
821
- if (this.configuration && this.configuration.apiKey) {
822
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
773
+ if (this.configuration && this.configuration.accessToken) {
774
+ const token = this.configuration.accessToken;
775
+ const tokenString = yield token("apiKeyAuth", []);
776
+ if (tokenString) {
777
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
778
+ }
823
779
  }
824
780
  const response = yield this.request({
825
781
  path: `/organizations/{orgId}/api-keys`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -860,8 +816,12 @@ class OrganizationsApi extends runtime.BaseAPI {
860
816
  queryParameters['project'] = requestParameters['project'];
861
817
  }
862
818
  const headerParameters = {};
863
- if (this.configuration && this.configuration.apiKey) {
864
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
819
+ if (this.configuration && this.configuration.accessToken) {
820
+ const token = this.configuration.accessToken;
821
+ const tokenString = yield token("apiKeyAuth", []);
822
+ if (tokenString) {
823
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
824
+ }
865
825
  }
866
826
  const response = yield this.request({
867
827
  path: `/organizations/{orgId}/compositions`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -890,8 +850,12 @@ class OrganizationsApi extends runtime.BaseAPI {
890
850
  return __awaiter(this, void 0, void 0, function* () {
891
851
  const queryParameters = {};
892
852
  const headerParameters = {};
893
- if (this.configuration && this.configuration.apiKey) {
894
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
853
+ if (this.configuration && this.configuration.accessToken) {
854
+ const token = this.configuration.accessToken;
855
+ const tokenString = yield token("apiKeyAuth", []);
856
+ if (tokenString) {
857
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
858
+ }
895
859
  }
896
860
  const response = yield this.request({
897
861
  path: `/organizations/config`,
@@ -923,8 +887,12 @@ class OrganizationsApi extends runtime.BaseAPI {
923
887
  }
924
888
  const queryParameters = {};
925
889
  const headerParameters = {};
926
- if (this.configuration && this.configuration.apiKey) {
927
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
890
+ if (this.configuration && this.configuration.accessToken) {
891
+ const token = this.configuration.accessToken;
892
+ const tokenString = yield token("apiKeyAuth", []);
893
+ if (tokenString) {
894
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
895
+ }
928
896
  }
929
897
  const response = yield this.request({
930
898
  path: `/organizations/{orgId}/domains`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -956,8 +924,12 @@ class OrganizationsApi extends runtime.BaseAPI {
956
924
  }
957
925
  const queryParameters = {};
958
926
  const headerParameters = {};
959
- if (this.configuration && this.configuration.apiKey) {
960
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
927
+ if (this.configuration && this.configuration.accessToken) {
928
+ const token = this.configuration.accessToken;
929
+ const tokenString = yield token("apiKeyAuth", []);
930
+ if (tokenString) {
931
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
932
+ }
961
933
  }
962
934
  const response = yield this.request({
963
935
  path: `/organizations/{orgId}/members`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -986,8 +958,12 @@ class OrganizationsApi extends runtime.BaseAPI {
986
958
  return __awaiter(this, void 0, void 0, function* () {
987
959
  const queryParameters = {};
988
960
  const headerParameters = {};
989
- if (this.configuration && this.configuration.apiKey) {
990
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
961
+ if (this.configuration && this.configuration.accessToken) {
962
+ const token = this.configuration.accessToken;
963
+ const tokenString = yield token("apiKeyAuth", []);
964
+ if (tokenString) {
965
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
966
+ }
991
967
  }
992
968
  const response = yield this.request({
993
969
  path: `/organizations/pricing`,
@@ -1028,8 +1004,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1028
1004
  queryParameters['size'] = requestParameters['size'];
1029
1005
  }
1030
1006
  const headerParameters = {};
1031
- if (this.configuration && this.configuration.apiKey) {
1032
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1007
+ if (this.configuration && this.configuration.accessToken) {
1008
+ const token = this.configuration.accessToken;
1009
+ const tokenString = yield token("apiKeyAuth", []);
1010
+ if (tokenString) {
1011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1012
+ }
1033
1013
  }
1034
1014
  const response = yield this.request({
1035
1015
  path: `/organizations/{orgId}/projects/{projectId}/compositions`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
@@ -1070,8 +1050,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1070
1050
  queryParameters['size'] = requestParameters['size'];
1071
1051
  }
1072
1052
  const headerParameters = {};
1073
- if (this.configuration && this.configuration.apiKey) {
1074
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1053
+ if (this.configuration && this.configuration.accessToken) {
1054
+ const token = this.configuration.accessToken;
1055
+ const tokenString = yield token("apiKeyAuth", []);
1056
+ if (tokenString) {
1057
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1058
+ }
1075
1059
  }
1076
1060
  const response = yield this.request({
1077
1061
  path: `/organizations/{orgId}/projects/{projectId}/widgets`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
@@ -1103,8 +1087,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1103
1087
  }
1104
1088
  const queryParameters = {};
1105
1089
  const headerParameters = {};
1106
- if (this.configuration && this.configuration.apiKey) {
1107
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1090
+ if (this.configuration && this.configuration.accessToken) {
1091
+ const token = this.configuration.accessToken;
1092
+ const tokenString = yield token("apiKeyAuth", []);
1093
+ if (tokenString) {
1094
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1095
+ }
1108
1096
  }
1109
1097
  const response = yield this.request({
1110
1098
  path: `/organizations/{orgId}/storage/usage`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1139,8 +1127,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1139
1127
  }
1140
1128
  const queryParameters = {};
1141
1129
  const headerParameters = {};
1142
- if (this.configuration && this.configuration.apiKey) {
1143
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1130
+ if (this.configuration && this.configuration.accessToken) {
1131
+ const token = this.configuration.accessToken;
1132
+ const tokenString = yield token("apiKeyAuth", []);
1133
+ if (tokenString) {
1134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1135
+ }
1144
1136
  }
1145
1137
  const response = yield this.request({
1146
1138
  path: `/organizations/{orgId}/translations/{translationId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"translationId"}}`, encodeURIComponent(String(requestParameters['translationId']))),
@@ -1181,8 +1173,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1181
1173
  queryParameters['project'] = requestParameters['project'];
1182
1174
  }
1183
1175
  const headerParameters = {};
1184
- if (this.configuration && this.configuration.apiKey) {
1185
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1176
+ if (this.configuration && this.configuration.accessToken) {
1177
+ const token = this.configuration.accessToken;
1178
+ const tokenString = yield token("apiKeyAuth", []);
1179
+ if (tokenString) {
1180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1181
+ }
1186
1182
  }
1187
1183
  const response = yield this.request({
1188
1184
  path: `/organizations/{orgId}/widgets`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1214,8 +1210,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1214
1210
  }
1215
1211
  const queryParameters = {};
1216
1212
  const headerParameters = {};
1217
- if (this.configuration && this.configuration.apiKey) {
1218
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1213
+ if (this.configuration && this.configuration.accessToken) {
1214
+ const token = this.configuration.accessToken;
1215
+ const tokenString = yield token("apiKeyAuth", []);
1216
+ if (tokenString) {
1217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1218
+ }
1219
1219
  }
1220
1220
  const response = yield this.request({
1221
1221
  path: `/organizations/{orgId}/storage/packs`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1244,8 +1244,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1244
1244
  return __awaiter(this, void 0, void 0, function* () {
1245
1245
  const queryParameters = {};
1246
1246
  const headerParameters = {};
1247
- if (this.configuration && this.configuration.apiKey) {
1248
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1247
+ if (this.configuration && this.configuration.accessToken) {
1248
+ const token = this.configuration.accessToken;
1249
+ const tokenString = yield token("apiKeyAuth", []);
1250
+ if (tokenString) {
1251
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1252
+ }
1249
1253
  }
1250
1254
  const response = yield this.request({
1251
1255
  path: `/organizations/me`,
@@ -1274,8 +1278,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1274
1278
  return __awaiter(this, void 0, void 0, function* () {
1275
1279
  const queryParameters = {};
1276
1280
  const headerParameters = {};
1277
- if (this.configuration && this.configuration.apiKey) {
1278
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1281
+ if (this.configuration && this.configuration.accessToken) {
1282
+ const token = this.configuration.accessToken;
1283
+ const tokenString = yield token("apiKeyAuth", []);
1284
+ if (tokenString) {
1285
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1286
+ }
1279
1287
  }
1280
1288
  const response = yield this.request({
1281
1289
  path: `/organizations`,
@@ -1311,8 +1319,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1311
1319
  const queryParameters = {};
1312
1320
  const headerParameters = {};
1313
1321
  headerParameters['Content-Type'] = 'application/json';
1314
- if (this.configuration && this.configuration.apiKey) {
1315
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1322
+ if (this.configuration && this.configuration.accessToken) {
1323
+ const token = this.configuration.accessToken;
1324
+ const tokenString = yield token("apiKeyAuth", []);
1325
+ if (tokenString) {
1326
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1327
+ }
1316
1328
  }
1317
1329
  const response = yield this.request({
1318
1330
  path: `/organizations/{orgId}/members/invite`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1345,8 +1357,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1345
1357
  }
1346
1358
  const queryParameters = {};
1347
1359
  const headerParameters = {};
1348
- if (this.configuration && this.configuration.apiKey) {
1349
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1360
+ if (this.configuration && this.configuration.accessToken) {
1361
+ const token = this.configuration.accessToken;
1362
+ const tokenString = yield token("apiKeyAuth", []);
1363
+ if (tokenString) {
1364
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1365
+ }
1350
1366
  }
1351
1367
  const response = yield this.request({
1352
1368
  path: `/organizations/{orgId}/members/leave`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1354,7 +1370,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1354
1370
  headers: headerParameters,
1355
1371
  query: queryParameters,
1356
1372
  }, initOverrides);
1357
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
1373
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
1358
1374
  });
1359
1375
  }
1360
1376
  /**
@@ -1381,8 +1397,12 @@ class OrganizationsApi extends runtime.BaseAPI {
1381
1397
  queryParameters['status'] = requestParameters['status'];
1382
1398
  }
1383
1399
  const headerParameters = {};
1384
- if (this.configuration && this.configuration.apiKey) {
1385
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1400
+ if (this.configuration && this.configuration.accessToken) {
1401
+ const token = this.configuration.accessToken;
1402
+ const tokenString = yield token("apiKeyAuth", []);
1403
+ if (tokenString) {
1404
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1405
+ }
1386
1406
  }
1387
1407
  const response = yield this.request({
1388
1408
  path: `/organizations/{orgId}/translations`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -1403,44 +1423,6 @@ class OrganizationsApi extends runtime.BaseAPI {
1403
1423
  return yield response.value();
1404
1424
  });
1405
1425
  }
1406
- /**
1407
- * Logs a new activity for the organization. Used internally by the system to track user actions.
1408
- * Log Organization Activity
1409
- */
1410
- logOrganizationActivityRaw(requestParameters, initOverrides) {
1411
- return __awaiter(this, void 0, void 0, function* () {
1412
- if (requestParameters['orgId'] == null) {
1413
- throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling logOrganizationActivity().');
1414
- }
1415
- if (requestParameters['logOrganizationActivityRequest'] == null) {
1416
- throw new runtime.RequiredError('logOrganizationActivityRequest', 'Required parameter "logOrganizationActivityRequest" was null or undefined when calling logOrganizationActivity().');
1417
- }
1418
- const queryParameters = {};
1419
- const headerParameters = {};
1420
- headerParameters['Content-Type'] = 'application/json';
1421
- if (this.configuration && this.configuration.apiKey) {
1422
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
1423
- }
1424
- const response = yield this.request({
1425
- path: `/organizations/{orgId}/activities`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
1426
- method: 'POST',
1427
- headers: headerParameters,
1428
- query: queryParameters,
1429
- body: (0, index_1.LogOrganizationActivityRequestToJSON)(requestParameters['logOrganizationActivityRequest']),
1430
- }, initOverrides);
1431
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LogOrganizationActivity201ResponseFromJSON)(jsonValue));
1432
- });
1433
- }
1434
- /**
1435
- * Logs a new activity for the organization. Used internally by the system to track user actions.
1436
- * Log Organization Activity
1437
- */
1438
- logOrganizationActivity(requestParameters, initOverrides) {
1439
- return __awaiter(this, void 0, void 0, function* () {
1440
- const response = yield this.logOrganizationActivityRaw(requestParameters, initOverrides);
1441
- return yield response.value();
1442
- });
1443
- }
1444
1426
  /**
1445
1427
  * Cancel organization subscription
1446
1428
  */
@@ -1609,7 +1591,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1609
1591
  headers: headerParameters,
1610
1592
  query: queryParameters,
1611
1593
  }, initOverrides);
1612
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON)(jsonValue));
1594
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON)(jsonValue));
1613
1595
  });
1614
1596
  }
1615
1597
  /**
@@ -1629,8 +1611,8 @@ class OrganizationsApi extends runtime.BaseAPI {
1629
1611
  if (requestParameters['orgId'] == null) {
1630
1612
  throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling organizationsOrgIdBillingPaymentMethodsPost().');
1631
1613
  }
1632
- if (requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest'] == null) {
1633
- throw new runtime.RequiredError('apiV1BillingUsersUserIdPaymentMethodsPostRequest', 'Required parameter "apiV1BillingUsersUserIdPaymentMethodsPostRequest" was null or undefined when calling organizationsOrgIdBillingPaymentMethodsPost().');
1614
+ if (requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest'] == null) {
1615
+ throw new runtime.RequiredError('organizationsOrgIdBillingPaymentMethodsPostRequest', 'Required parameter "organizationsOrgIdBillingPaymentMethodsPostRequest" was null or undefined when calling organizationsOrgIdBillingPaymentMethodsPost().');
1634
1616
  }
1635
1617
  const queryParameters = {};
1636
1618
  const headerParameters = {};
@@ -1647,9 +1629,9 @@ class OrganizationsApi extends runtime.BaseAPI {
1647
1629
  method: 'POST',
1648
1630
  headers: headerParameters,
1649
1631
  query: queryParameters,
1650
- body: (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON)(requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest']),
1632
+ body: (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest']),
1651
1633
  }, initOverrides);
1652
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON)(jsonValue));
1634
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON)(jsonValue));
1653
1635
  });
1654
1636
  }
1655
1637
  /**
@@ -1684,7 +1666,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1684
1666
  headers: headerParameters,
1685
1667
  query: queryParameters,
1686
1668
  }, initOverrides);
1687
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseFromJSON)(jsonValue));
1669
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON)(jsonValue));
1688
1670
  });
1689
1671
  }
1690
1672
  /**
@@ -1719,9 +1701,9 @@ class OrganizationsApi extends runtime.BaseAPI {
1719
1701
  method: 'POST',
1720
1702
  headers: headerParameters,
1721
1703
  query: queryParameters,
1722
- body: (0, index_1.ApiV1BillingUsersUserIdPortalPostRequestToJSON)(requestParameters['apiV1BillingUsersUserIdPortalPostRequest']),
1704
+ body: (0, index_1.OrganizationsOrgIdBillingPortalPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPortalPostRequest']),
1723
1705
  }, initOverrides);
1724
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPortalPost200ResponseFromJSON)(jsonValue));
1706
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPortalPost200ResponseFromJSON)(jsonValue));
1725
1707
  });
1726
1708
  }
1727
1709
  /**
@@ -1797,7 +1779,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1797
1779
  headers: headerParameters,
1798
1780
  query: queryParameters,
1799
1781
  }, initOverrides);
1800
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoginUser200ResponseFromJSON)(jsonValue));
1782
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON)(jsonValue));
1801
1783
  });
1802
1784
  }
1803
1785
  /**
@@ -1998,7 +1980,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1998
1980
  headers: headerParameters,
1999
1981
  query: queryParameters,
2000
1982
  }, initOverrides);
2001
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoginUser200ResponseFromJSON)(jsonValue));
1983
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON)(jsonValue));
2002
1984
  });
2003
1985
  }
2004
1986
  /**
@@ -2068,8 +2050,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2068
2050
  const queryParameters = {};
2069
2051
  const headerParameters = {};
2070
2052
  headerParameters['Content-Type'] = 'application/json';
2071
- if (this.configuration && this.configuration.apiKey) {
2072
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2053
+ if (this.configuration && this.configuration.accessToken) {
2054
+ const token = this.configuration.accessToken;
2055
+ const tokenString = yield token("apiKeyAuth", []);
2056
+ if (tokenString) {
2057
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2058
+ }
2073
2059
  }
2074
2060
  const response = yield this.request({
2075
2061
  path: `/organizations/{orgId}/storage/purchase-pack`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -2106,8 +2092,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2106
2092
  const queryParameters = {};
2107
2093
  const headerParameters = {};
2108
2094
  headerParameters['Content-Type'] = 'application/json';
2109
- if (this.configuration && this.configuration.apiKey) {
2110
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2095
+ if (this.configuration && this.configuration.accessToken) {
2096
+ const token = this.configuration.accessToken;
2097
+ const tokenString = yield token("apiKeyAuth", []);
2098
+ if (tokenString) {
2099
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2100
+ }
2111
2101
  }
2112
2102
  const response = yield this.request({
2113
2103
  path: `/organizations/{orgId}/members/{userId}/reactivate`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -2143,8 +2133,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2143
2133
  }
2144
2134
  const queryParameters = {};
2145
2135
  const headerParameters = {};
2146
- if (this.configuration && this.configuration.apiKey) {
2147
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2136
+ if (this.configuration && this.configuration.accessToken) {
2137
+ const token = this.configuration.accessToken;
2138
+ const tokenString = yield token("apiKeyAuth", []);
2139
+ if (tokenString) {
2140
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2141
+ }
2148
2142
  }
2149
2143
  const response = yield this.request({
2150
2144
  path: `/organizations/{orgId}/members/{userId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -2152,7 +2146,7 @@ class OrganizationsApi extends runtime.BaseAPI {
2152
2146
  headers: headerParameters,
2153
2147
  query: queryParameters,
2154
2148
  }, initOverrides);
2155
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
2149
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
2156
2150
  });
2157
2151
  }
2158
2152
  /**
@@ -2179,8 +2173,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2179
2173
  }
2180
2174
  const queryParameters = {};
2181
2175
  const headerParameters = {};
2182
- if (this.configuration && this.configuration.apiKey) {
2183
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2176
+ if (this.configuration && this.configuration.accessToken) {
2177
+ const token = this.configuration.accessToken;
2178
+ const tokenString = yield token("apiKeyAuth", []);
2179
+ if (tokenString) {
2180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2181
+ }
2184
2182
  }
2185
2183
  const response = yield this.request({
2186
2184
  path: `/organizations/{orgId}/invitations/{email}/resend`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"email"}}`, encodeURIComponent(String(requestParameters['email']))),
@@ -2188,7 +2186,7 @@ class OrganizationsApi extends runtime.BaseAPI {
2188
2186
  headers: headerParameters,
2189
2187
  query: queryParameters,
2190
2188
  }, initOverrides);
2191
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
2189
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
2192
2190
  });
2193
2191
  }
2194
2192
  /**
@@ -2216,8 +2214,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2216
2214
  const queryParameters = {};
2217
2215
  const headerParameters = {};
2218
2216
  headerParameters['Content-Type'] = 'application/json';
2219
- if (this.configuration && this.configuration.apiKey) {
2220
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2217
+ if (this.configuration && this.configuration.accessToken) {
2218
+ const token = this.configuration.accessToken;
2219
+ const tokenString = yield token("apiKeyAuth", []);
2220
+ if (tokenString) {
2221
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2222
+ }
2221
2223
  }
2222
2224
  const response = yield this.request({
2223
2225
  path: `/organizations/{orgId}/members/{userId}/suspend`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -2248,8 +2250,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2248
2250
  const queryParameters = {};
2249
2251
  const headerParameters = {};
2250
2252
  headerParameters['Content-Type'] = 'application/json';
2251
- if (this.configuration && this.configuration.apiKey) {
2252
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2253
+ if (this.configuration && this.configuration.accessToken) {
2254
+ const token = this.configuration.accessToken;
2255
+ const tokenString = yield token("apiKeyAuth", []);
2256
+ if (tokenString) {
2257
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2258
+ }
2253
2259
  }
2254
2260
  const response = yield this.request({
2255
2261
  path: `/organizations/workspace/switch-to-organization`,
@@ -2279,8 +2285,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2279
2285
  return __awaiter(this, void 0, void 0, function* () {
2280
2286
  const queryParameters = {};
2281
2287
  const headerParameters = {};
2282
- if (this.configuration && this.configuration.apiKey) {
2283
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2288
+ if (this.configuration && this.configuration.accessToken) {
2289
+ const token = this.configuration.accessToken;
2290
+ const tokenString = yield token("apiKeyAuth", []);
2291
+ if (tokenString) {
2292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2293
+ }
2284
2294
  }
2285
2295
  const response = yield this.request({
2286
2296
  path: `/organizations/workspace/switch-to-personal`,
@@ -2313,8 +2323,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2313
2323
  const queryParameters = {};
2314
2324
  const headerParameters = {};
2315
2325
  headerParameters['Content-Type'] = 'application/json';
2316
- if (this.configuration && this.configuration.apiKey) {
2317
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2326
+ if (this.configuration && this.configuration.accessToken) {
2327
+ const token = this.configuration.accessToken;
2328
+ const tokenString = yield token("apiKeyAuth", []);
2329
+ if (tokenString) {
2330
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2331
+ }
2318
2332
  }
2319
2333
  const response = yield this.request({
2320
2334
  path: `/organizations/test-email`,
@@ -2350,8 +2364,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2350
2364
  const queryParameters = {};
2351
2365
  const headerParameters = {};
2352
2366
  headerParameters['Content-Type'] = 'application/json';
2353
- if (this.configuration && this.configuration.apiKey) {
2354
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2367
+ if (this.configuration && this.configuration.accessToken) {
2368
+ const token = this.configuration.accessToken;
2369
+ const tokenString = yield token("apiKeyAuth", []);
2370
+ if (tokenString) {
2371
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2372
+ }
2355
2373
  }
2356
2374
  const response = yield this.request({
2357
2375
  path: `/organizations/{orgId}/transfer-ownership`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -2360,7 +2378,7 @@ class OrganizationsApi extends runtime.BaseAPI {
2360
2378
  query: queryParameters,
2361
2379
  body: (0, index_1.TransferOrganizationOwnershipRequestToJSON)(requestParameters['transferOrganizationOwnershipRequest']),
2362
2380
  }, initOverrides);
2363
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
2381
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
2364
2382
  });
2365
2383
  }
2366
2384
  /**
@@ -2391,8 +2409,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2391
2409
  const queryParameters = {};
2392
2410
  const headerParameters = {};
2393
2411
  headerParameters['Content-Type'] = 'application/json';
2394
- if (this.configuration && this.configuration.apiKey) {
2395
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2412
+ if (this.configuration && this.configuration.accessToken) {
2413
+ const token = this.configuration.accessToken;
2414
+ const tokenString = yield token("apiKeyAuth", []);
2415
+ if (tokenString) {
2416
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2417
+ }
2396
2418
  }
2397
2419
  const response = yield this.request({
2398
2420
  path: `/organizations/{orgId}/members/{userId}/access`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -2432,8 +2454,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2432
2454
  const queryParameters = {};
2433
2455
  const headerParameters = {};
2434
2456
  headerParameters['Content-Type'] = 'application/json';
2435
- if (this.configuration && this.configuration.apiKey) {
2436
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2457
+ if (this.configuration && this.configuration.accessToken) {
2458
+ const token = this.configuration.accessToken;
2459
+ const tokenString = yield token("apiKeyAuth", []);
2460
+ if (tokenString) {
2461
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2462
+ }
2437
2463
  }
2438
2464
  const response = yield this.request({
2439
2465
  path: `/organizations/{orgId}/members/{userId}/role`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -2470,8 +2496,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2470
2496
  const queryParameters = {};
2471
2497
  const headerParameters = {};
2472
2498
  headerParameters['Content-Type'] = 'application/json';
2473
- if (this.configuration && this.configuration.apiKey) {
2474
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2499
+ if (this.configuration && this.configuration.accessToken) {
2500
+ const token = this.configuration.accessToken;
2501
+ const tokenString = yield token("apiKeyAuth", []);
2502
+ if (tokenString) {
2503
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2504
+ }
2475
2505
  }
2476
2506
  const response = yield this.request({
2477
2507
  path: `/organizations/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -2511,8 +2541,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2511
2541
  const queryParameters = {};
2512
2542
  const headerParameters = {};
2513
2543
  headerParameters['Content-Type'] = 'application/json';
2514
- if (this.configuration && this.configuration.apiKey) {
2515
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2544
+ if (this.configuration && this.configuration.accessToken) {
2545
+ const token = this.configuration.accessToken;
2546
+ const tokenString = yield token("apiKeyAuth", []);
2547
+ if (tokenString) {
2548
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2549
+ }
2516
2550
  }
2517
2551
  const response = yield this.request({
2518
2552
  path: `/organizations/{orgId}/api-keys/{keyId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId']))),
@@ -2552,8 +2586,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2552
2586
  const queryParameters = {};
2553
2587
  const headerParameters = {};
2554
2588
  headerParameters['Content-Type'] = 'application/json';
2555
- if (this.configuration && this.configuration.apiKey) {
2556
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2589
+ if (this.configuration && this.configuration.accessToken) {
2590
+ const token = this.configuration.accessToken;
2591
+ const tokenString = yield token("apiKeyAuth", []);
2592
+ if (tokenString) {
2593
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2594
+ }
2557
2595
  }
2558
2596
  const response = yield this.request({
2559
2597
  path: `/organizations/{orgId}/domains/{domainId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
@@ -2593,8 +2631,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2593
2631
  const queryParameters = {};
2594
2632
  const headerParameters = {};
2595
2633
  headerParameters['Content-Type'] = 'application/json';
2596
- if (this.configuration && this.configuration.apiKey) {
2597
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2634
+ if (this.configuration && this.configuration.accessToken) {
2635
+ const token = this.configuration.accessToken;
2636
+ const tokenString = yield token("apiKeyAuth", []);
2637
+ if (tokenString) {
2638
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2639
+ }
2598
2640
  }
2599
2641
  const response = yield this.request({
2600
2642
  path: `/organizations/{orgId}/translations/{translationId}/status`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"translationId"}}`, encodeURIComponent(String(requestParameters['translationId']))),
@@ -2628,8 +2670,12 @@ class OrganizationsApi extends runtime.BaseAPI {
2628
2670
  const queryParameters = {};
2629
2671
  const headerParameters = {};
2630
2672
  headerParameters['Content-Type'] = 'application/json';
2631
- if (this.configuration && this.configuration.apiKey) {
2632
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
2673
+ if (this.configuration && this.configuration.accessToken) {
2674
+ const token = this.configuration.accessToken;
2675
+ const tokenString = yield token("apiKeyAuth", []);
2676
+ if (tokenString) {
2677
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2678
+ }
2633
2679
  }
2634
2680
  const response = yield this.request({
2635
2681
  path: `/organizations/validate`,
@@ -2653,20 +2699,6 @@ class OrganizationsApi extends runtime.BaseAPI {
2653
2699
  }
2654
2700
  }
2655
2701
  exports.OrganizationsApi = OrganizationsApi;
2656
- /**
2657
- * @export
2658
- */
2659
- exports.GetOrganizationActivitiesCategoryEnum = {
2660
- Widget: 'widget',
2661
- Composition: 'composition',
2662
- Project: 'project',
2663
- Organization: 'organization',
2664
- Collaboration: 'collaboration',
2665
- File: 'file',
2666
- Integration: 'integration',
2667
- Publishing: 'publishing',
2668
- Billing: 'billing'
2669
- };
2670
2702
  /**
2671
2703
  * @export
2672
2704
  */