@widgetic/api-sdk-ts 1.11.111 → 1.11.151

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 (274) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +42 -42
  3. package/dist/apis/BrandKitApi.js +42 -42
  4. package/dist/apis/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +257 -155
  6. package/dist/apis/CompositionsApi.js +338 -134
  7. package/dist/apis/CreditsApi.d.ts +11 -11
  8. package/dist/apis/CreditsApi.js +5 -5
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/OrganizationsApi.d.ts +74 -0
  17. package/dist/apis/OrganizationsApi.js +205 -0
  18. package/dist/apis/PartnersApi.d.ts +133 -133
  19. package/dist/apis/PartnersApi.js +19 -19
  20. package/dist/apis/PublicEmbedApi.d.ts +57 -42
  21. package/dist/apis/PublicEmbedApi.js +64 -29
  22. package/dist/apis/TokensApi.d.ts +2 -0
  23. package/dist/apis/TokensApi.js +2 -0
  24. package/dist/apis/UploadsApi.d.ts +40 -40
  25. package/dist/apis/UploadsApi.js +60 -60
  26. package/dist/apis/UsersApi.d.ts +30 -86
  27. package/dist/apis/UsersApi.js +6 -154
  28. package/dist/apis/WidgetsApi.d.ts +25 -25
  29. package/dist/apis/WidgetsApi.js +38 -38
  30. package/dist/apis/WorkflowsApi.d.ts +115 -157
  31. package/dist/apis/WorkflowsApi.js +111 -221
  32. package/dist/apis/index.d.ts +1 -2
  33. package/dist/apis/index.js +1 -2
  34. package/dist/esm/apis/BrandKitApi.js +41 -41
  35. package/dist/esm/apis/CompositionsApi.js +338 -134
  36. package/dist/esm/apis/CreditsApi.js +6 -6
  37. package/dist/esm/apis/InvoicesApi.js +1 -1
  38. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  39. package/dist/esm/apis/OperationsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.js +168 -0
  41. package/dist/esm/apis/PartnersApi.js +20 -20
  42. package/dist/esm/apis/PublicEmbedApi.js +65 -30
  43. package/dist/esm/apis/TokensApi.js +2 -0
  44. package/dist/esm/apis/UploadsApi.js +60 -60
  45. package/dist/esm/apis/UsersApi.js +7 -155
  46. package/dist/esm/apis/WidgetsApi.js +39 -39
  47. package/dist/esm/apis/WorkflowsApi.js +111 -221
  48. package/dist/esm/apis/index.js +1 -2
  49. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  50. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  51. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  52. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  53. package/dist/esm/models/AddOrganizationDomainResponse.js +51 -0
  54. package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
  55. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  56. package/dist/esm/models/BrandKitTokens.js +3 -0
  57. package/dist/esm/models/BrandTextStyle.js +65 -0
  58. package/dist/esm/models/Canvas.js +3 -0
  59. package/dist/esm/models/CanvasActiveOperation.js +66 -0
  60. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  61. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  62. package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
  63. package/dist/esm/models/{CreateCompositionFromWidget201Response.js → DeleteOrganizationDomainResponse.js} +11 -11
  64. package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
  65. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  66. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  67. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  68. package/dist/esm/models/EditorSession.js +4 -0
  69. package/dist/esm/models/GetOperationResponse.js +51 -0
  70. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
  71. package/dist/esm/models/GetOperationResponseDataMetadata.js +69 -0
  72. package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
  73. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  74. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  75. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  76. package/dist/esm/models/NewWidget.js +0 -1
  77. package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
  78. package/dist/esm/models/PatchBrandKitRequest.js +3 -0
  79. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  80. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  81. package/dist/esm/models/UpdateOrganizationDomainResponse.js +51 -0
  82. package/dist/esm/models/Upload.js +2 -0
  83. package/dist/esm/models/UserApiKey.js +2 -0
  84. package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
  85. package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
  86. package/dist/esm/models/Widget.js +6 -0
  87. package/dist/esm/models/WidgetClarification.js +52 -0
  88. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  89. package/dist/esm/models/WidgetClarificationQuestion.js +64 -0
  90. package/dist/esm/models/WidgetCodeChange.js +68 -0
  91. package/dist/esm/models/WidgetCodeChanges.js +48 -0
  92. package/dist/esm/models/WidgetNextStep.js +71 -0
  93. package/dist/esm/models/WidgetPlan.js +61 -0
  94. package/dist/esm/models/WidgetPlanDecisions.js +72 -0
  95. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  96. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  97. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  98. package/dist/esm/models/WidgetPlanTask.js +80 -0
  99. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  100. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  101. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  102. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  103. package/dist/esm/models/WorkflowStats.js +3 -0
  104. package/dist/esm/models/index.js +43 -25
  105. package/dist/esm/runtime.js +1 -1
  106. package/dist/models/AccountCreditBalance.d.ts +2 -2
  107. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  108. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  109. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  110. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  111. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  112. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  113. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  114. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  115. package/dist/models/AddOrganizationDomainResponse.d.ts +46 -0
  116. package/dist/models/AddOrganizationDomainResponse.js +58 -0
  117. package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
  118. package/dist/models/AddOrganizationDomainResponseData.js +51 -0
  119. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  120. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  121. package/dist/models/BrandKitTokens.d.ts +8 -1
  122. package/dist/models/BrandKitTokens.js +3 -0
  123. package/dist/models/BrandKitView.d.ts +1 -1
  124. package/dist/models/BrandTextStyle.d.ts +59 -0
  125. package/dist/models/BrandTextStyle.js +73 -0
  126. package/dist/models/Canvas.d.ts +7 -0
  127. package/dist/models/Canvas.js +3 -0
  128. package/dist/models/CanvasActiveOperation.d.ts +65 -0
  129. package/dist/models/CanvasActiveOperation.js +74 -0
  130. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  131. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  132. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  133. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  134. package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
  135. package/dist/models/CreateWidget201ResponseData.js +6 -0
  136. package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
  137. package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
  138. package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
  139. package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
  140. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  141. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  142. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  143. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  144. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  145. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  146. package/dist/models/EditorSession.d.ts +7 -0
  147. package/dist/models/EditorSession.js +4 -0
  148. package/dist/models/GetOperationResponse.d.ts +46 -0
  149. package/dist/models/GetOperationResponse.js +58 -0
  150. package/dist/models/GetOperationResponseData.d.ts +86 -0
  151. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
  152. package/dist/models/GetOperationResponseDataMetadata.d.ts +87 -0
  153. package/dist/models/GetOperationResponseDataMetadata.js +77 -0
  154. package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
  155. package/dist/models/GetOrganizationDomains200Response.js +58 -0
  156. package/dist/models/ListUploads200Response.d.ts +46 -0
  157. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  158. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  159. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  160. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  161. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  162. package/dist/models/NewEditorSession.d.ts +1 -1
  163. package/dist/models/NewWidget.d.ts +2 -3
  164. package/dist/models/NewWidget.js +0 -1
  165. package/dist/models/OrganizationDomain.d.ts +56 -0
  166. package/dist/models/OrganizationDomain.js +56 -0
  167. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
  168. package/dist/models/PatchBrandKitRequest.d.ts +7 -0
  169. package/dist/models/PatchBrandKitRequest.js +3 -0
  170. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  171. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  172. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  173. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  174. package/dist/models/UpdateOrganizationDomainResponse.d.ts +46 -0
  175. package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
  176. package/dist/models/Upload.d.ts +7 -1
  177. package/dist/models/Upload.js +2 -0
  178. package/dist/models/UploadLimits.d.ts +3 -3
  179. package/dist/models/UserApiKey.d.ts +6 -0
  180. package/dist/models/UserApiKey.js +2 -0
  181. package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
  182. package/dist/models/ValidateToken200ResponseData.js +3 -0
  183. package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
  184. package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
  185. package/dist/models/Widget.d.ts +18 -0
  186. package/dist/models/Widget.js +6 -0
  187. package/dist/models/WidgetClarification.d.ts +45 -0
  188. package/dist/models/WidgetClarification.js +59 -0
  189. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  190. package/dist/models/WidgetClarificationOption.js +58 -0
  191. package/dist/models/WidgetClarificationQuestion.d.ts +63 -0
  192. package/dist/models/WidgetClarificationQuestion.js +71 -0
  193. package/dist/models/WidgetCodeChange.d.ts +70 -0
  194. package/dist/models/WidgetCodeChange.js +76 -0
  195. package/dist/models/WidgetCodeChanges.d.ts +39 -0
  196. package/dist/models/WidgetCodeChanges.js +55 -0
  197. package/dist/models/WidgetNextStep.d.ts +69 -0
  198. package/dist/models/WidgetNextStep.js +79 -0
  199. package/dist/models/WidgetPlan.d.ts +58 -0
  200. package/dist/models/WidgetPlan.js +68 -0
  201. package/dist/models/WidgetPlanDecisions.d.ts +77 -0
  202. package/dist/models/WidgetPlanDecisions.js +79 -0
  203. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  204. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  205. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  206. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  207. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  208. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  209. package/dist/models/WidgetPlanTask.d.ts +77 -0
  210. package/dist/models/WidgetPlanTask.js +88 -0
  211. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
  212. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  213. package/dist/models/WorkflowDetailResponse.js +58 -0
  214. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  215. package/dist/models/WorkflowFailureReason.js +57 -0
  216. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  217. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  218. package/dist/models/WorkflowResponse.d.ts +46 -0
  219. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  220. package/dist/models/WorkflowStats.d.ts +16 -1
  221. package/dist/models/WorkflowStats.js +3 -0
  222. package/dist/models/index.d.ts +43 -25
  223. package/dist/models/index.js +43 -25
  224. package/dist/runtime.d.ts +2 -2
  225. package/dist/runtime.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/apis/PartnerApi.d.ts +0 -2707
  228. package/dist/apis/PartnerApi.js +0 -7073
  229. package/dist/apis/WorkspacesApi.d.ts +0 -352
  230. package/dist/apis/WorkspacesApi.js +0 -946
  231. package/dist/esm/apis/PartnerApi.js +0 -7036
  232. package/dist/esm/apis/WorkspacesApi.js +0 -909
  233. package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +0 -51
  234. package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
  235. package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +0 -51
  236. package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
  237. package/dist/esm/models/PersonalWorkspaceDomainResultResponse.js +0 -51
  238. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  239. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  240. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  241. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  242. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  243. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  244. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  245. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  246. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  247. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  248. package/dist/models/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
  249. package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
  250. package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
  251. package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
  252. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  253. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  254. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  255. package/dist/models/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
  256. package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
  257. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  258. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  259. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  260. package/dist/models/OperationsIdGetResponseData.d.ts +0 -88
  261. package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
  262. package/dist/models/PersonalWorkspaceDomain.js +0 -62
  263. package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
  264. package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
  265. package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
  266. package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
  267. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  268. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  269. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  270. package/dist/models/UploadsGet200Response.d.ts +0 -46
  271. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  272. package/dist/models/UploadsIdDelete200Response.js +0 -58
  273. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  274. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountCreditBalanceResponse, GetPartnerCreditTransactions200Response } from '../models/index';
14
- export interface GetUserCreditBalance0Request {
13
+ import type { AccountCreditBalanceResponse, AccountCreditTransactionListResponse } from '../models/index';
14
+ export interface GetUserCreditBalanceRequest {
15
15
  userId: string;
16
16
  }
17
- export interface GetUserCreditTransactions0Request {
17
+ export interface GetUserCreditTransactionsRequest {
18
18
  userId: string;
19
19
  transactionType?: string;
20
20
  limit?: number;
@@ -25,23 +25,23 @@ export interface GetUserCreditTransactions0Request {
25
25
  */
26
26
  export declare class CreditsApi extends runtime.BaseAPI {
27
27
  /**
28
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
28
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
29
29
  * Get an account\'s credit balance
30
30
  */
31
- getUserCreditBalanceRaw(requestParameters: GetUserCreditBalance0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
31
+ getUserCreditBalanceRaw(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalanceResponse>>;
32
32
  /**
33
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
33
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
34
34
  * Get an account\'s credit balance
35
35
  */
36
- getUserCreditBalance(requestParameters: GetUserCreditBalance0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
36
+ getUserCreditBalance(requestParameters: GetUserCreditBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalanceResponse>;
37
37
  /**
38
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
38
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
39
39
  * List an account\'s credit ledger
40
40
  */
41
- getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
41
+ getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditTransactionListResponse>>;
42
42
  /**
43
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
43
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
44
44
  * List an account\'s credit ledger
45
45
  */
46
- getUserCreditTransactions(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
46
+ getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditTransactionListResponse>;
47
47
  }
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class CreditsApi extends runtime.BaseAPI {
56
56
  /**
57
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
57
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
58
58
  * Get an account\'s credit balance
59
59
  */
60
60
  async getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -79,7 +79,7 @@ class CreditsApi extends runtime.BaseAPI {
79
79
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditBalanceResponseFromJSON)(jsonValue));
80
80
  }
81
81
  /**
82
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
82
+ * Returns the credits an account holds in the workspace the request acts in: the balance, and how much of it is reserved by operations that are still running. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s default workspace (the oldest workspace they own, and for the person who administers a partner, the partner\'s own workspace). An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the credits of every workspace of that account together). An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads the balance of the partner\'s workspace by partner id.
83
83
  * Get an account\'s credit balance
84
84
  */
85
85
  async getUserCreditBalance(requestParameters, initOverrides) {
@@ -87,7 +87,7 @@ class CreditsApi extends runtime.BaseAPI {
87
87
  return await response.value();
88
88
  }
89
89
  /**
90
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
90
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
91
91
  * List an account\'s credit ledger
92
92
  */
93
93
  async getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -118,10 +118,10 @@ class CreditsApi extends runtime.BaseAPI {
118
118
  headers: headerParameters,
119
119
  query: queryParameters,
120
120
  }, initOverrides);
121
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPartnerCreditTransactions200ResponseFromJSON)(jsonValue));
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountCreditTransactionListResponseFromJSON)(jsonValue));
122
122
  }
123
123
  /**
124
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
124
+ * Lists the entries of an account\'s credit ledger in the workspace the request acts in, newest first: the entries a team\'s allowance and spending wrote when it is a team\'s workspace, the rest when it is the person\'s own. A credential that belongs to a team acts in that team, a person signed in on widgetic.com acts in the workspace they last switched to, and any other credential acts in the person\'s own workspace. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it in that workspace, and the other types give what was added to it. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s, and read all of it (the entries of every workspace of that account together). `getPartnerCreditTransactions` reads the whole ledger of that account by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
125
125
  * List an account\'s credit ledger
126
126
  */
127
127
  async getUserCreditTransactions(requestParameters, initOverrides) {
@@ -11,13 +11,13 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { GetManagedUserEntitlementsResponse, GetPartnerEntitlementsResponse } from '../models/index';
14
- export interface GetManagedUserEntitlements0Request {
14
+ export interface GetManagedUserEntitlementsRequest {
15
15
  managedUserId: string;
16
16
  includeExpired?: boolean;
17
17
  feature?: string;
18
18
  source?: string;
19
19
  }
20
- export interface GetPartnerEntitlements0Request {
20
+ export interface GetPartnerEntitlementsRequest {
21
21
  partnerId: string;
22
22
  includeExpired?: boolean;
23
23
  feature?: string;
@@ -31,20 +31,20 @@ export declare class EntitlementsApi extends runtime.BaseAPI {
31
31
  * Retrieves all entitlements for a managed user (admin or partner access).
32
32
  * Get managed user entitlements
33
33
  */
34
- getManagedUserEntitlementsRaw(requestParameters: GetManagedUserEntitlements0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserEntitlementsResponse>>;
34
+ getManagedUserEntitlementsRaw(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetManagedUserEntitlementsResponse>>;
35
35
  /**
36
36
  * Retrieves all entitlements for a managed user (admin or partner access).
37
37
  * Get managed user entitlements
38
38
  */
39
- getManagedUserEntitlements(requestParameters: GetManagedUserEntitlements0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserEntitlementsResponse>;
39
+ getManagedUserEntitlements(requestParameters: GetManagedUserEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetManagedUserEntitlementsResponse>;
40
40
  /**
41
41
  * Retrieves all entitlements for a partner (admin or partner access).
42
42
  * Get partner entitlements
43
43
  */
44
- getPartnerEntitlementsRaw(requestParameters: GetPartnerEntitlements0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerEntitlementsResponse>>;
44
+ getPartnerEntitlementsRaw(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerEntitlementsResponse>>;
45
45
  /**
46
46
  * Retrieves all entitlements for a partner (admin or partner access).
47
47
  * Get partner entitlements
48
48
  */
49
- getPartnerEntitlements(requestParameters: GetPartnerEntitlements0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerEntitlementsResponse>;
49
+ getPartnerEntitlements(requestParameters: GetPartnerEntitlementsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerEntitlementsResponse>;
50
50
  }
@@ -11,9 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { GetInvoicesByPartnerId200Response } from '../models/index';
14
- export interface GetInvoicesByPartnerId0Request {
14
+ export interface GetInvoicesByPartnerIdRequest {
15
15
  partnerId: string;
16
- status?: GetInvoicesByPartnerId0StatusEnum;
16
+ status?: GetInvoicesByPartnerIdStatusEnum;
17
17
  limit?: number;
18
18
  offset?: number;
19
19
  }
@@ -25,17 +25,17 @@ export declare class InvoicesApi extends runtime.BaseAPI {
25
25
  * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
26
26
  * List a partner\'s invoices
27
27
  */
28
- getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerId0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
28
+ getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
29
29
  /**
30
30
  * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
31
31
  * List a partner\'s invoices
32
32
  */
33
- getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerId0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
33
+ getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
34
34
  }
35
35
  /**
36
36
  * @export
37
37
  */
38
- export declare const GetInvoicesByPartnerId0StatusEnum: {
38
+ export declare const GetInvoicesByPartnerIdStatusEnum: {
39
39
  readonly Draft: 'draft';
40
40
  readonly Open: 'open';
41
41
  readonly Pending: 'pending';
@@ -46,4 +46,4 @@ export declare const GetInvoicesByPartnerId0StatusEnum: {
46
46
  readonly Refunded: 'refunded';
47
47
  readonly Canceled: 'canceled';
48
48
  };
49
- export type GetInvoicesByPartnerId0StatusEnum = typeof GetInvoicesByPartnerId0StatusEnum[keyof typeof GetInvoicesByPartnerId0StatusEnum];
49
+ export type GetInvoicesByPartnerIdStatusEnum = typeof GetInvoicesByPartnerIdStatusEnum[keyof typeof GetInvoicesByPartnerIdStatusEnum];
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.GetInvoicesByPartnerId0StatusEnum = exports.InvoicesApi = void 0;
49
+ exports.GetInvoicesByPartnerIdStatusEnum = exports.InvoicesApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
@@ -100,7 +100,7 @@ exports.InvoicesApi = InvoicesApi;
100
100
  /**
101
101
  * @export
102
102
  */
103
- exports.GetInvoicesByPartnerId0StatusEnum = {
103
+ exports.GetInvoicesByPartnerIdStatusEnum = {
104
104
  Draft: 'draft',
105
105
  Open: 'open',
106
106
  Pending: 'pending',