@widgetic/api-sdk 1.0.31 → 1.0.33

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 (308) hide show
  1. package/README.md +4 -0
  2. package/dist/apis/AdminApi.d.ts +30 -46
  3. package/dist/apis/AdminApi.js +53 -102
  4. package/dist/apis/AdminBillingApi.d.ts +2 -2
  5. package/dist/apis/AdminBillingApi.js +2 -2
  6. package/dist/apis/BillingApi.d.ts +44 -1
  7. package/dist/apis/BillingApi.js +127 -0
  8. package/dist/apis/CompositionsApi.d.ts +19 -15
  9. package/dist/apis/CompositionsApi.js +21 -14
  10. package/dist/apis/CreditsApi.d.ts +7 -7
  11. package/dist/apis/CreditsApi.js +5 -5
  12. package/dist/apis/OrganizationsApi.d.ts +35 -7
  13. package/dist/apis/OrganizationsApi.js +86 -6
  14. package/dist/apis/PartnerApi.d.ts +141 -36
  15. package/dist/apis/PartnerApi.js +333 -31
  16. package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
  17. package/dist/apis/PartnerCustomizationsApi.js +4 -4
  18. package/dist/apis/PartnersApi.d.ts +85 -67
  19. package/dist/apis/PartnersApi.js +198 -119
  20. package/dist/apis/PublicEmbedApi.d.ts +42 -3
  21. package/dist/apis/PublicEmbedApi.js +99 -2
  22. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  23. package/dist/apis/SubscriptionsApi.js +2 -2
  24. package/dist/apis/UploadsApi.d.ts +4 -4
  25. package/dist/apis/UploadsApi.js +4 -4
  26. package/dist/apis/UsersApi.d.ts +4 -4
  27. package/dist/apis/UsersApi.js +4 -4
  28. package/dist/apis/index.d.ts +0 -4
  29. package/dist/apis/index.js +0 -4
  30. package/dist/esm/apis/AdminApi.d.ts +30 -46
  31. package/dist/esm/apis/AdminApi.js +54 -103
  32. package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
  33. package/dist/esm/apis/AdminBillingApi.js +2 -2
  34. package/dist/esm/apis/BillingApi.d.ts +44 -1
  35. package/dist/esm/apis/BillingApi.js +128 -1
  36. package/dist/esm/apis/CompositionsApi.d.ts +19 -15
  37. package/dist/esm/apis/CompositionsApi.js +22 -15
  38. package/dist/esm/apis/CreditsApi.d.ts +7 -7
  39. package/dist/esm/apis/CreditsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
  41. package/dist/esm/apis/OrganizationsApi.js +87 -7
  42. package/dist/esm/apis/PartnerApi.d.ts +141 -36
  43. package/dist/esm/apis/PartnerApi.js +334 -32
  44. package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
  45. package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
  46. package/dist/esm/apis/PartnersApi.d.ts +85 -67
  47. package/dist/esm/apis/PartnersApi.js +198 -119
  48. package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
  49. package/dist/esm/apis/PublicEmbedApi.js +100 -3
  50. package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
  51. package/dist/esm/apis/SubscriptionsApi.js +2 -2
  52. package/dist/esm/apis/UploadsApi.d.ts +4 -4
  53. package/dist/esm/apis/UploadsApi.js +4 -4
  54. package/dist/esm/apis/UsersApi.d.ts +4 -4
  55. package/dist/esm/apis/UsersApi.js +4 -4
  56. package/dist/esm/apis/index.d.ts +0 -4
  57. package/dist/esm/apis/index.js +0 -4
  58. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  59. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
  60. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  61. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
  62. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  63. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
  64. package/dist/esm/models/Composition.d.ts +12 -0
  65. package/dist/esm/models/Composition.js +2 -0
  66. package/dist/esm/models/CompositionDataSource.d.ts +41 -0
  67. package/dist/esm/models/CompositionDataSource.js +47 -0
  68. package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
  69. package/dist/esm/models/CompositionEntriesReading.js +3 -0
  70. package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
  71. package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  72. package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
  73. package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
  74. package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
  75. package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
  76. package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
  77. package/dist/esm/models/CreatePartnerRequest.js +2 -0
  78. package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  79. package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
  80. package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
  81. package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  82. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  83. package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  84. package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
  85. package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  86. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
  87. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  88. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
  89. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  90. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
  91. package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  92. package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
  93. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  94. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
  95. package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  96. package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
  97. package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  98. package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
  99. package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  100. package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
  101. package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
  102. package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
  103. package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
  104. package/dist/esm/models/MyPartner.d.ts +7 -0
  105. package/dist/esm/models/MyPartner.js +4 -0
  106. package/dist/esm/models/MyPartners.d.ts +9 -1
  107. package/dist/esm/models/MyPartners.js +6 -1
  108. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  109. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
  110. package/dist/esm/models/Partner.d.ts +7 -0
  111. package/dist/esm/models/Partner.js +2 -0
  112. package/dist/esm/models/PartnerActivation.d.ts +1 -1
  113. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  114. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  115. package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
  116. package/dist/esm/models/PartnerContract.d.ts +15 -3
  117. package/dist/esm/models/PartnerContract.js +6 -2
  118. package/dist/esm/models/PartnerCustomization.d.ts +15 -3
  119. package/dist/esm/models/PartnerCustomization.js +6 -2
  120. package/dist/esm/models/PartnerDetails.d.ts +7 -0
  121. package/dist/esm/models/PartnerDetails.js +2 -0
  122. package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
  123. package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
  124. package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
  125. package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
  126. package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  127. package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
  128. package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
  129. package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
  130. package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  131. package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
  132. package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  133. package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
  134. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  135. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
  136. package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  137. package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
  138. package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  139. package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
  140. package/dist/esm/models/PartnerNotification.d.ts +1 -1
  141. package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
  142. package/dist/esm/models/PartnerNotificationEventType.js +2 -0
  143. package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  144. package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
  145. package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
  146. package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
  147. package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
  148. package/dist/esm/models/PartnerUpdateResult.js +2 -5
  149. package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
  150. package/dist/esm/models/PartnerWithWarnings.js +2 -0
  151. package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
  152. package/dist/esm/models/PersonalExtraStorage.js +83 -0
  153. package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
  154. package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
  155. package/dist/esm/models/PersonalStorage.d.ts +80 -0
  156. package/dist/esm/models/PersonalStorage.js +73 -0
  157. package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
  158. package/dist/esm/models/PersonalStoragePack.js +84 -0
  159. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  160. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
  161. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  162. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
  163. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  164. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
  165. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  166. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
  167. package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
  168. package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
  169. package/dist/esm/models/RequestExtraCredits.js +43 -0
  170. package/dist/esm/models/StorageChange.d.ts +4 -3
  171. package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
  172. package/dist/esm/models/SurfaceConversionResult.js +76 -0
  173. package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
  174. package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
  175. package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  176. package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
  177. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  178. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
  179. package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
  180. package/dist/esm/models/UpdatePartnerRequest.js +2 -8
  181. package/dist/esm/models/index.d.ts +37 -86
  182. package/dist/esm/models/index.js +37 -86
  183. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  184. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
  185. package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  186. package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
  187. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  188. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
  189. package/dist/models/Composition.d.ts +12 -0
  190. package/dist/models/Composition.js +2 -0
  191. package/dist/models/CompositionDataSource.d.ts +41 -0
  192. package/dist/models/CompositionDataSource.js +54 -0
  193. package/dist/models/CompositionEntriesReading.d.ts +20 -4
  194. package/dist/models/CompositionEntriesReading.js +3 -0
  195. package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
  196. package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  197. package/dist/models/CompositionEntryItem.d.ts +4 -1
  198. package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
  199. package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
  200. package/dist/models/ConvertSoloToTeams200Response.js +51 -0
  201. package/dist/models/CreatePartnerRequest.d.ts +7 -0
  202. package/dist/models/CreatePartnerRequest.js +2 -0
  203. package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  204. package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
  205. package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
  206. package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  207. package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  208. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  209. package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
  210. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  211. package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
  212. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  213. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
  214. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  215. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
  216. package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  217. package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
  218. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  219. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
  220. package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  221. package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
  222. package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  223. package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
  224. package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  225. package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
  226. package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
  227. package/dist/models/IssuedPartnerInvoice.js +4 -0
  228. package/dist/models/ManagedUserEntryItem.d.ts +4 -1
  229. package/dist/models/MyPartner.d.ts +7 -0
  230. package/dist/models/MyPartner.js +4 -0
  231. package/dist/models/MyPartners.d.ts +9 -1
  232. package/dist/models/MyPartners.js +6 -1
  233. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  234. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
  235. package/dist/models/Partner.d.ts +7 -0
  236. package/dist/models/Partner.js +2 -0
  237. package/dist/models/PartnerActivation.d.ts +1 -1
  238. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  239. package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  240. package/dist/models/PartnerBillingProfile.d.ts +1 -1
  241. package/dist/models/PartnerContract.d.ts +15 -3
  242. package/dist/models/PartnerContract.js +6 -2
  243. package/dist/models/PartnerCustomization.d.ts +15 -3
  244. package/dist/models/PartnerCustomization.js +6 -2
  245. package/dist/models/PartnerDetails.d.ts +7 -0
  246. package/dist/models/PartnerDetails.js +2 -0
  247. package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
  248. package/dist/models/PartnerEntryContextSecret.js +55 -0
  249. package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
  250. package/dist/models/PartnerEntryContextSigning.js +70 -0
  251. package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  252. package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
  253. package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
  254. package/dist/models/PartnerInvoiceSchedule.js +74 -0
  255. package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  256. package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
  257. package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  258. package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
  259. package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  260. package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
  261. package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  262. package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
  263. package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  264. package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
  265. package/dist/models/PartnerNotification.d.ts +1 -1
  266. package/dist/models/PartnerNotificationEventType.d.ts +2 -0
  267. package/dist/models/PartnerNotificationEventType.js +2 -0
  268. package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  269. package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
  270. package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
  271. package/dist/models/PartnerNotificationTestEventResult.js +60 -0
  272. package/dist/models/PartnerUpdateResult.d.ts +8 -16
  273. package/dist/models/PartnerUpdateResult.js +2 -5
  274. package/dist/models/PartnerWithWarnings.d.ts +7 -0
  275. package/dist/models/PartnerWithWarnings.js +2 -0
  276. package/dist/models/PersonalExtraStorage.d.ts +92 -0
  277. package/dist/models/PersonalExtraStorage.js +91 -0
  278. package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
  279. package/dist/models/PersonalExtraStorageBlock.js +65 -0
  280. package/dist/models/PersonalStorage.d.ts +80 -0
  281. package/dist/models/PersonalStorage.js +80 -0
  282. package/dist/models/PersonalStoragePack.d.ts +100 -0
  283. package/dist/models/PersonalStoragePack.js +92 -0
  284. package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  285. package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
  286. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  287. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
  288. package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  289. package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
  290. package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  291. package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
  292. package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
  293. package/dist/models/RequestExtraCredits.d.ts +33 -0
  294. package/dist/models/RequestExtraCredits.js +50 -0
  295. package/dist/models/StorageChange.d.ts +4 -3
  296. package/dist/models/SurfaceConversionResult.d.ts +85 -0
  297. package/dist/models/SurfaceConversionResult.js +84 -0
  298. package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
  299. package/dist/models/SurfaceConversionResultSubscription.js +70 -0
  300. package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  301. package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
  302. package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  303. package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
  304. package/dist/models/UpdatePartnerRequest.d.ts +7 -24
  305. package/dist/models/UpdatePartnerRequest.js +2 -8
  306. package/dist/models/index.d.ts +37 -86
  307. package/dist/models/index.js +37 -86
  308. package/package.json +3 -2
@@ -12,6 +12,13 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInnerFromJSON, OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInnerToJSON, } from './OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInner.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum = {
19
+ Month: 'month',
20
+ Year: 'year'
21
+ };
15
22
  /**
16
23
  * Check if a given object implements the OrganizationsOrgIdBillingGet200ResponseData interface.
17
24
  */
@@ -29,6 +36,7 @@ export function OrganizationsOrgIdBillingGet200ResponseDataFromJSONTyped(json, i
29
36
  'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
30
37
  'subscription': json['subscription'] == null ? undefined : json['subscription'],
31
38
  'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
39
+ 'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
32
40
  'pricePerMember': json['pricePerMember'] == null ? undefined : json['pricePerMember'],
33
41
  'monthlySubtotal': json['monthlySubtotal'] == null ? undefined : json['monthlySubtotal'],
34
42
  'storagePacksGb': json['storagePacksGb'] == null ? undefined : json['storagePacksGb'],
@@ -49,6 +57,7 @@ export function OrganizationsOrgIdBillingGet200ResponseDataToJSONTyped(value, ig
49
57
  'organizationId': value['organizationId'],
50
58
  'subscription': value['subscription'],
51
59
  'memberCount': value['memberCount'],
60
+ 'billingInterval': value['billingInterval'],
52
61
  'pricePerMember': value['pricePerMember'],
53
62
  'monthlySubtotal': value['monthlySubtotal'],
54
63
  'storagePacksGb': value['storagePacksGb'],
@@ -90,6 +90,13 @@ export interface Partner {
90
90
  * @memberof Partner
91
91
  */
92
92
  allowedDomains?: Array<string> | null;
93
+ /**
94
+ * The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
95
+ *
96
+ * @type {string}
97
+ * @memberof Partner
98
+ */
99
+ platformDomain?: string | null;
93
100
  /**
94
101
  *
95
102
  * @type {Array<string>}
@@ -53,6 +53,7 @@ export function PartnerFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
54
54
  'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
55
55
  'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
56
+ 'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
56
57
  'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
57
58
  'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
58
59
  'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
@@ -80,6 +81,7 @@ export function PartnerToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  'monthlyMinimumSpend': value['monthlyMinimumSpend'],
81
82
  'webhookUrl': value['webhookUrl'],
82
83
  'allowedDomains': value['allowedDomains'],
84
+ 'platformDomain': value['platformDomain'],
83
85
  'featuresEnabled': value['featuresEnabled'],
84
86
  'billingSettings': value['billingSettings'],
85
87
  'whiteLabelConfig': value['whiteLabelConfig'],
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { PartnerActivationRequirementsInner } from './PartnerActivationRequirementsInner';
13
13
  /**
14
- * What a partner needs before it can be activated, and whether each part is in place. Nothing a partner pays (an invoice) is a requirement: an overdue invoice never switches a partner off by itself.
14
+ * What a partner needs before it can be activated, and whether each part is in place. Nothing a partner pays (an invoice) is a requirement: the first invoice goes out on the contract's start date and is paid after the partner is active. Once it is active, a contract invoice that stays unpaid past its due day stops it by itself (`payment_arrears`) until the invoice is paid; that is not part of the activation.
15
15
  *
16
16
  * @export
17
17
  * @interface PartnerActivation
@@ -27,20 +27,6 @@ export interface PartnerBillingOverviewOperationalCredits {
27
27
  * @memberof PartnerBillingOverviewOperationalCredits
28
28
  */
29
29
  availableBalance?: number;
30
- /**
31
- * The auto-reload settings; null until someone configures them
32
- * @type {{ [key: string]: any; }}
33
- * @memberof PartnerBillingOverviewOperationalCredits
34
- */
35
- autoReload?: {
36
- [key: string]: any;
37
- } | null;
38
- /**
39
- *
40
- * @type {boolean}
41
- * @memberof PartnerBillingOverviewOperationalCredits
42
- */
43
- autoReloadEnabled?: boolean;
44
30
  /**
45
31
  * The ten newest ledger rows
46
32
  * @type {Array<{ [key: string]: any; }>}
@@ -27,8 +27,6 @@ export function PartnerBillingOverviewOperationalCreditsFromJSONTyped(json, igno
27
27
  return {
28
28
  'balance': json['balance'] == null ? undefined : json['balance'],
29
29
  'availableBalance': json['availableBalance'] == null ? undefined : json['availableBalance'],
30
- 'autoReload': json['autoReload'] == null ? undefined : json['autoReload'],
31
- 'autoReloadEnabled': json['autoReloadEnabled'] == null ? undefined : json['autoReloadEnabled'],
32
30
  'recentTransactions': json['recentTransactions'] == null ? undefined : json['recentTransactions'],
33
31
  };
34
32
  }
@@ -42,8 +40,6 @@ export function PartnerBillingOverviewOperationalCreditsToJSONTyped(value, ignor
42
40
  return {
43
41
  'balance': value['balance'],
44
42
  'availableBalance': value['availableBalance'],
45
- 'autoReload': value['autoReload'],
46
- 'autoReloadEnabled': value['autoReloadEnabled'],
47
43
  'recentTransactions': value['recentTransactions'],
48
44
  };
49
45
  }
@@ -48,7 +48,7 @@ export interface PartnerBillingProfile {
48
48
  */
49
49
  taxId: PartnerBillingProfileTaxId | null;
50
50
  /**
51
- * Days from issuing to the due date. 30 by default.
51
+ * Days from issuing to the due date. 7 by default.
52
52
  * @type {number}
53
53
  * @memberof PartnerBillingProfile
54
54
  */
@@ -35,17 +35,29 @@ export interface PartnerContract {
35
35
  */
36
36
  customPrice?: number | null;
37
37
  /**
38
- * Credits included per cycle; null when the standard allowance applies
38
+ * Credits received each billing period (`billingCycle`); null when the standard allowance applies
39
39
  * @type {number}
40
40
  * @memberof PartnerContract
41
41
  */
42
42
  customCredits?: number | null;
43
43
  /**
44
- * Storage included, in gigabytes; null when the standard allowance applies
44
+ * The agreed price of one credit, in dollars; null when the list price applies
45
45
  * @type {number}
46
46
  * @memberof PartnerContract
47
47
  */
48
- customStorageGb?: number | null;
48
+ creditPriceUsd?: number | null;
49
+ /**
50
+ * What one credit costs you, in dollars. The agreed price, or the list price when none was agreed
51
+ * @type {number}
52
+ * @memberof PartnerContract
53
+ */
54
+ effectiveCreditPriceUsd?: number;
55
+ /**
56
+ * What one billing period costs, in dollars before tax, `customCredits` times `effectiveCreditPriceUsd`. Null while no credits were agreed
57
+ * @type {number}
58
+ * @memberof PartnerContract
59
+ */
60
+ periodTotalUsd?: number | null;
49
61
  /**
50
62
  * Features included beyond the standard partner plan
51
63
  * @type {Array<string>}
@@ -37,7 +37,9 @@ export function PartnerContractFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
38
38
  'customPrice': json['customPrice'] == null ? undefined : json['customPrice'],
39
39
  'customCredits': json['customCredits'] == null ? undefined : json['customCredits'],
40
- 'customStorageGb': json['customStorageGb'] == null ? undefined : json['customStorageGb'],
40
+ 'creditPriceUsd': json['creditPriceUsd'] == null ? undefined : json['creditPriceUsd'],
41
+ 'effectiveCreditPriceUsd': json['effectiveCreditPriceUsd'] == null ? undefined : json['effectiveCreditPriceUsd'],
42
+ 'periodTotalUsd': json['periodTotalUsd'] == null ? undefined : json['periodTotalUsd'],
41
43
  'additionalFeatures': json['additionalFeatures'] == null ? undefined : json['additionalFeatures'],
42
44
  'billingCycle': json['billingCycle'] == null ? undefined : json['billingCycle'],
43
45
  'minimumCommitmentMonths': json['minimumCommitmentMonths'] == null ? undefined : json['minimumCommitmentMonths'],
@@ -61,7 +63,9 @@ export function PartnerContractToJSONTyped(value, ignoreDiscriminator = false) {
61
63
  'partnerId': value['partnerId'],
62
64
  'customPrice': value['customPrice'],
63
65
  'customCredits': value['customCredits'],
64
- 'customStorageGb': value['customStorageGb'],
66
+ 'creditPriceUsd': value['creditPriceUsd'],
67
+ 'effectiveCreditPriceUsd': value['effectiveCreditPriceUsd'],
68
+ 'periodTotalUsd': value['periodTotalUsd'],
65
69
  'additionalFeatures': value['additionalFeatures'],
66
70
  'billingCycle': value['billingCycle'],
67
71
  'minimumCommitmentMonths': value['minimumCommitmentMonths'],
@@ -34,17 +34,29 @@ export interface PartnerCustomization {
34
34
  */
35
35
  customPrice?: number;
36
36
  /**
37
- * Custom credit allocation override
37
+ * Credits the partner receives each billing period (`billingCycle`). What a period costs is derived from it, see `periodTotalUsd`
38
38
  * @type {number}
39
39
  * @memberof PartnerCustomization
40
40
  */
41
41
  customCredits?: number;
42
42
  /**
43
- * Custom storage allocation override
43
+ * What the partner pays for one credit, in dollars (up to four decimals). Null means the list price
44
44
  * @type {number}
45
45
  * @memberof PartnerCustomization
46
46
  */
47
- customStorageGb?: number;
47
+ creditPriceUsd?: number | null;
48
+ /**
49
+ * What one credit costs the partner, in dollars. `creditPriceUsd` when the contract names one, the list price otherwise
50
+ * @type {number}
51
+ * @memberof PartnerCustomization
52
+ */
53
+ effectiveCreditPriceUsd?: number;
54
+ /**
55
+ * What one billing period costs, in dollars before tax. `customCredits` times `effectiveCreditPriceUsd`; null while the contract names no credits
56
+ * @type {number}
57
+ * @memberof PartnerCustomization
58
+ */
59
+ periodTotalUsd?: number | null;
48
60
  /**
49
61
  * Additional features beyond base partner plan
50
62
  * @type {Array<string>}
@@ -37,7 +37,9 @@ export function PartnerCustomizationFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
38
38
  'customPrice': json['customPrice'] == null ? undefined : json['customPrice'],
39
39
  'customCredits': json['customCredits'] == null ? undefined : json['customCredits'],
40
- 'customStorageGb': json['customStorageGb'] == null ? undefined : json['customStorageGb'],
40
+ 'creditPriceUsd': json['creditPriceUsd'] == null ? undefined : json['creditPriceUsd'],
41
+ 'effectiveCreditPriceUsd': json['effectiveCreditPriceUsd'] == null ? undefined : json['effectiveCreditPriceUsd'],
42
+ 'periodTotalUsd': json['periodTotalUsd'] == null ? undefined : json['periodTotalUsd'],
41
43
  'additionalFeatures': json['additionalFeatures'] == null ? undefined : json['additionalFeatures'],
42
44
  'billingCycle': json['billingCycle'] == null ? undefined : json['billingCycle'],
43
45
  'minimumCommitmentMonths': json['minimumCommitmentMonths'] == null ? undefined : json['minimumCommitmentMonths'],
@@ -62,7 +64,9 @@ export function PartnerCustomizationToJSONTyped(value, ignoreDiscriminator = fal
62
64
  'partnerId': value['partnerId'],
63
65
  'customPrice': value['customPrice'],
64
66
  'customCredits': value['customCredits'],
65
- 'customStorageGb': value['customStorageGb'],
67
+ 'creditPriceUsd': value['creditPriceUsd'],
68
+ 'effectiveCreditPriceUsd': value['effectiveCreditPriceUsd'],
69
+ 'periodTotalUsd': value['periodTotalUsd'],
66
70
  'additionalFeatures': value['additionalFeatures'],
67
71
  'billingCycle': value['billingCycle'],
68
72
  'minimumCommitmentMonths': value['minimumCommitmentMonths'],
@@ -92,6 +92,13 @@ export interface PartnerDetails {
92
92
  * @memberof PartnerDetails
93
93
  */
94
94
  allowedDomains?: Array<string> | null;
95
+ /**
96
+ * The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
97
+ *
98
+ * @type {string}
99
+ * @memberof PartnerDetails
100
+ */
101
+ platformDomain?: string | null;
95
102
  /**
96
103
  *
97
104
  * @type {Array<string>}
@@ -56,6 +56,7 @@ export function PartnerDetailsFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
57
57
  'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
58
58
  'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
59
+ 'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
59
60
  'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
60
61
  'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
61
62
  'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
@@ -86,6 +87,7 @@ export function PartnerDetailsToJSONTyped(value, ignoreDiscriminator = false) {
86
87
  'monthlyMinimumSpend': value['monthlyMinimumSpend'],
87
88
  'webhookUrl': value['webhookUrl'],
88
89
  'allowedDomains': value['allowedDomains'],
90
+ 'platformDomain': value['platformDomain'],
89
91
  'featuresEnabled': value['featuresEnabled'],
90
92
  'billingSettings': value['billingSettings'],
91
93
  'whiteLabelConfig': value['whiteLabelConfig'],
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PartnerEntryContextSigning } from './PartnerEntryContextSigning';
13
+ /**
14
+ * A new signing secret, and how your signing stands now.
15
+ * @export
16
+ * @interface PartnerEntryContextSecret
17
+ */
18
+ export interface PartnerEntryContextSecret {
19
+ /**
20
+ *
21
+ * @type {PartnerEntryContextSigning}
22
+ * @memberof PartnerEntryContextSecret
23
+ */
24
+ signing: PartnerEntryContextSigning;
25
+ /**
26
+ * The secret: `ctxsec_` followed by the base64 of 32 random bytes. It is shown here, once, and cannot be read again.
27
+ * @type {string}
28
+ * @memberof PartnerEntryContextSecret
29
+ */
30
+ secret: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PartnerEntryContextSecret interface.
34
+ */
35
+ export declare function instanceOfPartnerEntryContextSecret(value: object): value is PartnerEntryContextSecret;
36
+ export declare function PartnerEntryContextSecretFromJSON(json: any): PartnerEntryContextSecret;
37
+ export declare function PartnerEntryContextSecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerEntryContextSecret;
38
+ export declare function PartnerEntryContextSecretToJSON(json: any): PartnerEntryContextSecret;
39
+ export declare function PartnerEntryContextSecretToJSONTyped(value?: PartnerEntryContextSecret | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PartnerEntryContextSigningFromJSON, PartnerEntryContextSigningToJSON, } from './PartnerEntryContextSigning.js';
15
+ /**
16
+ * Check if a given object implements the PartnerEntryContextSecret interface.
17
+ */
18
+ export function instanceOfPartnerEntryContextSecret(value) {
19
+ if (!('signing' in value) || value['signing'] === undefined)
20
+ return false;
21
+ if (!('secret' in value) || value['secret'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PartnerEntryContextSecretFromJSON(json) {
26
+ return PartnerEntryContextSecretFromJSONTyped(json, false);
27
+ }
28
+ export function PartnerEntryContextSecretFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'signing': PartnerEntryContextSigningFromJSON(json['signing']),
34
+ 'secret': json['secret'],
35
+ };
36
+ }
37
+ export function PartnerEntryContextSecretToJSON(json) {
38
+ return PartnerEntryContextSecretToJSONTyped(json, false);
39
+ }
40
+ export function PartnerEntryContextSecretToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'signing': PartnerEntryContextSigningToJSON(value['signing']),
46
+ 'secret': value['secret'],
47
+ };
48
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * How the context of your embeds is signed. The secret that signs it is never part of this: it is shown once, when it is made.
14
+ * @export
15
+ * @interface PartnerEntryContextSigning
16
+ */
17
+ export interface PartnerEntryContextSigning {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PartnerEntryContextSigning
22
+ */
23
+ partnerId: string;
24
+ /**
25
+ * True: an entry whose context carries no valid signature is refused (403 `CONTEXT_SIGNATURE_REQUIRED`). False: an entry that carries a signature is checked, and one that carries none is accepted as before.
26
+ * @type {boolean}
27
+ * @memberof PartnerEntryContextSigning
28
+ */
29
+ required: boolean;
30
+ /**
31
+ * Whether you have a signing secret. Until you have, no signature is checked and none can be required.
32
+ * @type {boolean}
33
+ * @memberof PartnerEntryContextSigning
34
+ */
35
+ secretSet: boolean;
36
+ /**
37
+ * When the current secret was made. Null while there is none.
38
+ * @type {Date}
39
+ * @memberof PartnerEntryContextSigning
40
+ */
41
+ secretRotatedAt: Date | null;
42
+ /**
43
+ * While you switch to a new secret, when the secret it replaced stops being accepted. Null when there is none to wait for.
44
+ * @type {Date}
45
+ * @memberof PartnerEntryContextSigning
46
+ */
47
+ previousSecretValidUntil: Date | null;
48
+ /**
49
+ * False when this server cannot keep secrets, in which case none can be made yet.
50
+ * @type {boolean}
51
+ * @memberof PartnerEntryContextSigning
52
+ */
53
+ signingAvailable: boolean;
54
+ }
55
+ /**
56
+ * Check if a given object implements the PartnerEntryContextSigning interface.
57
+ */
58
+ export declare function instanceOfPartnerEntryContextSigning(value: object): value is PartnerEntryContextSigning;
59
+ export declare function PartnerEntryContextSigningFromJSON(json: any): PartnerEntryContextSigning;
60
+ export declare function PartnerEntryContextSigningFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerEntryContextSigning;
61
+ export declare function PartnerEntryContextSigningToJSON(json: any): PartnerEntryContextSigning;
62
+ export declare function PartnerEntryContextSigningToJSONTyped(value?: PartnerEntryContextSigning | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PartnerEntryContextSigning interface.
16
+ */
17
+ export function instanceOfPartnerEntryContextSigning(value) {
18
+ if (!('partnerId' in value) || value['partnerId'] === undefined)
19
+ return false;
20
+ if (!('required' in value) || value['required'] === undefined)
21
+ return false;
22
+ if (!('secretSet' in value) || value['secretSet'] === undefined)
23
+ return false;
24
+ if (!('secretRotatedAt' in value) || value['secretRotatedAt'] === undefined)
25
+ return false;
26
+ if (!('previousSecretValidUntil' in value) || value['previousSecretValidUntil'] === undefined)
27
+ return false;
28
+ if (!('signingAvailable' in value) || value['signingAvailable'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function PartnerEntryContextSigningFromJSON(json) {
33
+ return PartnerEntryContextSigningFromJSONTyped(json, false);
34
+ }
35
+ export function PartnerEntryContextSigningFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'partnerId': json['partnerId'],
41
+ 'required': json['required'],
42
+ 'secretSet': json['secretSet'],
43
+ 'secretRotatedAt': (json['secretRotatedAt'] == null ? null : new Date(json['secretRotatedAt'])),
44
+ 'previousSecretValidUntil': (json['previousSecretValidUntil'] == null ? null : new Date(json['previousSecretValidUntil'])),
45
+ 'signingAvailable': json['signingAvailable'],
46
+ };
47
+ }
48
+ export function PartnerEntryContextSigningToJSON(json) {
49
+ return PartnerEntryContextSigningToJSONTyped(json, false);
50
+ }
51
+ export function PartnerEntryContextSigningToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'partnerId': value['partnerId'],
57
+ 'required': value['required'],
58
+ 'secretSet': value['secretSet'],
59
+ 'secretRotatedAt': (value['secretRotatedAt'] == null ? null : value['secretRotatedAt'].toISOString()),
60
+ 'previousSecretValidUntil': (value['previousSecretValidUntil'] == null ? null : value['previousSecretValidUntil'].toISOString()),
61
+ 'signingAvailable': value['signingAvailable'],
62
+ };
63
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The invoice for extra credits that was issued, and what paying it adds.
14
+ * @export
15
+ * @interface PartnerExtraCreditsInvoice
16
+ */
17
+ export interface PartnerExtraCreditsInvoice {
18
+ /**
19
+ * Stripe's id for the invoice.
20
+ * @type {string}
21
+ * @memberof PartnerExtraCreditsInvoice
22
+ */
23
+ invoiceId: string;
24
+ /**
25
+ * The number printed on the invoice, once Stripe has numbered it.
26
+ * @type {string}
27
+ * @memberof PartnerExtraCreditsInvoice
28
+ */
29
+ number: string | null;
30
+ /**
31
+ * The page where the invoice is viewed and paid.
32
+ * @type {string}
33
+ * @memberof PartnerExtraCreditsInvoice
34
+ */
35
+ hostedInvoiceUrl: string | null;
36
+ /**
37
+ * A PDF of the invoice.
38
+ * @type {string}
39
+ * @memberof PartnerExtraCreditsInvoice
40
+ */
41
+ pdfUrl: string | null;
42
+ /**
43
+ * The credits paying the invoice adds, once and for good. They do not expire.
44
+ * @type {number}
45
+ * @memberof PartnerExtraCreditsInvoice
46
+ */
47
+ credits: number;
48
+ /**
49
+ * What one credit costs, in dollars. It is the list price, not the price of the contract.
50
+ * @type {number}
51
+ * @memberof PartnerExtraCreditsInvoice
52
+ */
53
+ creditPriceUsd: number;
54
+ /**
55
+ * The price of those credits, in dollars, before tax. Never more than `usd` of the request.
56
+ * @type {number}
57
+ * @memberof PartnerExtraCreditsInvoice
58
+ */
59
+ amountUsd: number;
60
+ /**
61
+ * The tax added to the invoice, in dollars (0 when there is none).
62
+ * @type {number}
63
+ * @memberof PartnerExtraCreditsInvoice
64
+ */
65
+ taxUsd: number;
66
+ /**
67
+ * What is paid, in dollars. The price plus the tax.
68
+ * @type {number}
69
+ * @memberof PartnerExtraCreditsInvoice
70
+ */
71
+ totalUsd: number;
72
+ /**
73
+ * The currency of the invoice, in upper case (USD).
74
+ * @type {string}
75
+ * @memberof PartnerExtraCreditsInvoice
76
+ */
77
+ currency: string;
78
+ /**
79
+ * When payment is due, as printed on the invoice.
80
+ * @type {Date}
81
+ * @memberof PartnerExtraCreditsInvoice
82
+ */
83
+ dueDate: Date | null;
84
+ /**
85
+ * How many days there are to pay.
86
+ * @type {number}
87
+ * @memberof PartnerExtraCreditsInvoice
88
+ */
89
+ dueDays: number;
90
+ }
91
+ /**
92
+ * Check if a given object implements the PartnerExtraCreditsInvoice interface.
93
+ */
94
+ export declare function instanceOfPartnerExtraCreditsInvoice(value: object): value is PartnerExtraCreditsInvoice;
95
+ export declare function PartnerExtraCreditsInvoiceFromJSON(json: any): PartnerExtraCreditsInvoice;
96
+ export declare function PartnerExtraCreditsInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerExtraCreditsInvoice;
97
+ export declare function PartnerExtraCreditsInvoiceToJSON(json: any): PartnerExtraCreditsInvoice;
98
+ export declare function PartnerExtraCreditsInvoiceToJSONTyped(value?: PartnerExtraCreditsInvoice | null, ignoreDiscriminator?: boolean): any;