@vansite/ts-sharetribe-flex-sdk 1.0.33 → 2.0.0

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 (271) hide show
  1. package/README.md +1 -1
  2. package/dist/endpoints/assets/index.d.ts +47 -0
  3. package/dist/endpoints/auth/index.d.ts +45 -0
  4. package/dist/endpoints/integrationApi/AvailabilityExceptions.d.ts +66 -0
  5. package/dist/endpoints/integrationApi/Events.d.ts +43 -0
  6. package/dist/endpoints/integrationApi/Images.d.ts +36 -0
  7. package/dist/endpoints/integrationApi/Listings.d.ts +87 -0
  8. package/dist/endpoints/integrationApi/Marketplace.d.ts +30 -0
  9. package/dist/endpoints/integrationApi/Stock.d.ts +42 -0
  10. package/dist/endpoints/integrationApi/StockAdjustments.d.ts +64 -0
  11. package/dist/{types/endpoints/integrationApi/StockReservation.d.ts → endpoints/integrationApi/StockReservations.d.ts} +3 -4
  12. package/dist/endpoints/integrationApi/Transactions.d.ts +76 -0
  13. package/dist/endpoints/integrationApi/Users.d.ts +72 -0
  14. package/dist/endpoints/integrationApi/index.d.ts +58 -0
  15. package/dist/endpoints/marketplace/AvailabilityExceptions.d.ts +69 -0
  16. package/dist/endpoints/marketplace/Bookings.d.ts +45 -0
  17. package/dist/endpoints/marketplace/CurrentUser.d.ts +110 -0
  18. package/dist/endpoints/marketplace/Images.d.ts +38 -0
  19. package/dist/endpoints/marketplace/Listings.d.ts +52 -0
  20. package/dist/endpoints/marketplace/Marketplace.d.ts +33 -0
  21. package/dist/endpoints/marketplace/Messages.d.ts +51 -0
  22. package/dist/endpoints/marketplace/OwnListings.d.ts +116 -0
  23. package/dist/endpoints/marketplace/PasswordReset.d.ts +50 -0
  24. package/dist/endpoints/marketplace/ProcessTransitions.d.ts +42 -0
  25. package/dist/endpoints/marketplace/Reviews.d.ts +49 -0
  26. package/dist/endpoints/marketplace/Stock.d.ts +50 -0
  27. package/dist/endpoints/marketplace/StockAdjustments.d.ts +64 -0
  28. package/dist/endpoints/marketplace/StripeAccount.d.ts +56 -0
  29. package/dist/endpoints/marketplace/StripeAccountLinks.d.ts +42 -0
  30. package/dist/endpoints/marketplace/StripeCustomer.d.ts +62 -0
  31. package/dist/endpoints/marketplace/StripePersons.d.ts +37 -0
  32. package/dist/endpoints/marketplace/StripeSetupIntents.d.ts +42 -0
  33. package/dist/endpoints/marketplace/TimeSlots.d.ts +40 -0
  34. package/dist/endpoints/marketplace/Transactions.d.ts +89 -0
  35. package/dist/endpoints/marketplace/Users.d.ts +34 -0
  36. package/dist/endpoints/marketplace/index.d.ts +80 -0
  37. package/dist/index.d.ts +161 -0
  38. package/dist/index.js +3 -0
  39. package/dist/{ts-sharetribe-flex-sdk.cjs.LICENSE.txt → index.js.LICENSE.txt} +53 -41
  40. package/dist/index.js.map +1 -0
  41. package/dist/index.mjs +3 -0
  42. package/dist/{ts-sharetribe-flex-sdk.js.LICENSE.txt → index.mjs.LICENSE.txt} +13 -5
  43. package/dist/index.mjs.map +1 -0
  44. package/dist/index.umd.js +3 -0
  45. package/dist/{ts-sharetribe-flex-sdk.mjs.LICENSE.txt → index.umd.js.LICENSE.txt} +13 -5
  46. package/dist/index.umd.js.map +1 -0
  47. package/dist/integrationSdk.d.ts +119 -0
  48. package/dist/sdk.d.ts +211 -0
  49. package/dist/sdkTypes/BigDecimal.d.ts +30 -0
  50. package/dist/sdkTypes/LatLng.d.ts +34 -0
  51. package/dist/sdkTypes/LatLngBounds.d.ts +51 -0
  52. package/dist/sdkTypes/Money.d.ts +28 -0
  53. package/dist/sdkTypes/UUID.d.ts +38 -0
  54. package/dist/types/apiConfigs.d.ts +104 -0
  55. package/dist/types/assets/index.d.ts +101 -0
  56. package/dist/types/authentication/index.d.ts +152 -0
  57. package/dist/types/axios.d.ts +10 -0
  58. package/dist/types/config.d.ts +99 -0
  59. package/dist/types/endpoints/assets/index.d.ts +22 -36
  60. package/dist/types/endpoints/assets/index.d.ts.map +1 -1
  61. package/dist/types/endpoints/auth/index.d.ts +20 -41
  62. package/dist/types/endpoints/auth/index.d.ts.map +1 -1
  63. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts +30 -49
  64. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts.map +1 -1
  65. package/dist/types/endpoints/integrationApi/Events.d.ts +23 -27
  66. package/dist/types/endpoints/integrationApi/Events.d.ts.map +1 -1
  67. package/dist/types/endpoints/integrationApi/Images.d.ts +17 -28
  68. package/dist/types/endpoints/integrationApi/Images.d.ts.map +1 -1
  69. package/dist/types/endpoints/integrationApi/Listings.d.ts +42 -104
  70. package/dist/types/endpoints/integrationApi/Listings.d.ts.map +1 -1
  71. package/dist/types/endpoints/integrationApi/Marketplace.d.ts +12 -20
  72. package/dist/types/endpoints/integrationApi/Marketplace.d.ts.map +1 -1
  73. package/dist/types/endpoints/integrationApi/Stock.d.ts +22 -28
  74. package/dist/types/endpoints/integrationApi/Stock.d.ts.map +1 -1
  75. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts +35 -35
  76. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts.map +1 -1
  77. package/dist/types/endpoints/integrationApi/StockReservations.d.ts +43 -0
  78. package/dist/types/endpoints/integrationApi/StockReservations.d.ts.map +1 -0
  79. package/dist/types/endpoints/integrationApi/Transactions.d.ts +36 -80
  80. package/dist/types/endpoints/integrationApi/Transactions.d.ts.map +1 -1
  81. package/dist/types/endpoints/integrationApi/Users.d.ts +35 -70
  82. package/dist/types/endpoints/integrationApi/Users.d.ts.map +1 -1
  83. package/dist/types/endpoints/integrationApi/index.d.ts +40 -40
  84. package/dist/types/endpoints/integrationApi/index.d.ts.map +1 -1
  85. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts +34 -48
  86. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts.map +1 -1
  87. package/dist/types/endpoints/marketplace/Bookings.d.ts +24 -23
  88. package/dist/types/endpoints/marketplace/Bookings.d.ts.map +1 -1
  89. package/dist/types/endpoints/marketplace/CurrentUser.d.ts +54 -125
  90. package/dist/types/endpoints/marketplace/CurrentUser.d.ts.map +1 -1
  91. package/dist/types/endpoints/marketplace/Images.d.ts +19 -27
  92. package/dist/types/endpoints/marketplace/Images.d.ts.map +1 -1
  93. package/dist/types/endpoints/marketplace/Listings.d.ts +26 -25
  94. package/dist/types/endpoints/marketplace/Listings.d.ts.map +1 -1
  95. package/dist/types/endpoints/marketplace/Marketplace.d.ts +15 -19
  96. package/dist/types/endpoints/marketplace/Marketplace.d.ts.map +1 -1
  97. package/dist/types/endpoints/marketplace/Messages.d.ts +24 -29
  98. package/dist/types/endpoints/marketplace/Messages.d.ts.map +1 -1
  99. package/dist/types/endpoints/marketplace/OwnListings.d.ts +55 -119
  100. package/dist/types/endpoints/marketplace/OwnListings.d.ts.map +1 -1
  101. package/dist/types/endpoints/marketplace/PasswordReset.d.ts +23 -35
  102. package/dist/types/endpoints/marketplace/PasswordReset.d.ts.map +1 -1
  103. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts +22 -22
  104. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts.map +1 -1
  105. package/dist/types/endpoints/marketplace/Reviews.d.ts +23 -25
  106. package/dist/types/endpoints/marketplace/Reviews.d.ts.map +1 -1
  107. package/dist/types/endpoints/marketplace/Stock.d.ts +30 -26
  108. package/dist/types/endpoints/marketplace/Stock.d.ts.map +1 -1
  109. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts +36 -34
  110. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts.map +1 -1
  111. package/dist/types/endpoints/marketplace/StripeAccount.d.ts +28 -49
  112. package/dist/types/endpoints/marketplace/StripeAccount.d.ts.map +1 -1
  113. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts +22 -31
  114. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts.map +1 -1
  115. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts +32 -46
  116. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts.map +1 -1
  117. package/dist/types/endpoints/marketplace/StripePersons.d.ts +17 -25
  118. package/dist/types/endpoints/marketplace/StripePersons.d.ts.map +1 -1
  119. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts +24 -24
  120. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts.map +1 -1
  121. package/dist/types/endpoints/marketplace/TimeSlots.d.ts +20 -23
  122. package/dist/types/endpoints/marketplace/TimeSlots.d.ts.map +1 -1
  123. package/dist/types/endpoints/marketplace/Transactions.d.ts +45 -81
  124. package/dist/types/endpoints/marketplace/Transactions.d.ts.map +1 -1
  125. package/dist/types/endpoints/marketplace/Users.d.ts +15 -22
  126. package/dist/types/endpoints/marketplace/Users.d.ts.map +1 -1
  127. package/dist/types/endpoints/marketplace/index.d.ts +50 -40
  128. package/dist/types/endpoints/marketplace/index.d.ts.map +1 -1
  129. package/dist/types/index.d.ts +15 -30
  130. package/dist/types/index.d.ts.map +1 -1
  131. package/dist/types/integration/events.d.ts +87 -0
  132. package/dist/types/integrationSdk.d.ts +4 -5
  133. package/dist/types/integrationSdk.d.ts.map +1 -1
  134. package/dist/types/marketplace/availabilityExceptions.d.ts +99 -0
  135. package/dist/types/marketplace/availabilityPlan.d.ts +17 -0
  136. package/dist/types/marketplace/bookings.d.ts +80 -0
  137. package/dist/types/marketplace/currentUser.d.ts +202 -0
  138. package/dist/types/marketplace/images.d.ts +65 -0
  139. package/dist/types/marketplace/listings.d.ts +169 -0
  140. package/dist/types/marketplace/marketplace.d.ts +30 -0
  141. package/dist/types/marketplace/messages.d.ts +87 -0
  142. package/dist/types/marketplace/ownListings.d.ts +155 -0
  143. package/dist/types/marketplace/passwordReset.d.ts +54 -0
  144. package/dist/types/marketplace/processTransitions.d.ts +56 -0
  145. package/dist/types/marketplace/reviews.d.ts +108 -0
  146. package/dist/types/marketplace/stock.d.ts +45 -0
  147. package/dist/types/marketplace/stockAdjustment.d.ts +97 -0
  148. package/dist/types/marketplace/stockReservations.d.ts +89 -0
  149. package/dist/types/marketplace/stripeAccount.d.ts +67 -0
  150. package/dist/types/marketplace/stripeAccountLinks.d.ts +55 -0
  151. package/dist/types/marketplace/stripeCustomer.d.ts +94 -0
  152. package/dist/types/marketplace/stripePaymentMethod.d.ts +21 -0
  153. package/dist/types/marketplace/stripePersons.d.ts +48 -0
  154. package/dist/types/marketplace/stripeSetupIntents.d.ts +48 -0
  155. package/dist/types/marketplace/timeSlots.d.ts +51 -0
  156. package/dist/types/marketplace/transactions.d.ts +200 -0
  157. package/dist/types/marketplace/user.d.ts +200 -0
  158. package/dist/types/sdk-types.d.ts +10 -0
  159. package/dist/types/sdk.d.ts +6 -7
  160. package/dist/types/sdk.d.ts.map +1 -1
  161. package/dist/types/sdkTypes/BigDecimal.d.ts +1 -1
  162. package/dist/types/sdkTypes/BigDecimal.d.ts.map +1 -1
  163. package/dist/types/sdkTypes/LatLng.d.ts +1 -1
  164. package/dist/types/sdkTypes/LatLng.d.ts.map +1 -1
  165. package/dist/types/sdkTypes/LatLngBounds.d.ts +1 -1
  166. package/dist/types/sdkTypes/LatLngBounds.d.ts.map +1 -1
  167. package/dist/types/sdkTypes/Money.d.ts +1 -1
  168. package/dist/types/sdkTypes/Money.d.ts.map +1 -1
  169. package/dist/types/sdkTypes/UUID.d.ts +1 -1
  170. package/dist/types/sdkTypes/UUID.d.ts.map +1 -1
  171. package/dist/types/sharetribe.d.ts +227 -0
  172. package/dist/types/store.d.ts +22 -0
  173. package/dist/types/types/apiConfigs.d.ts.map +1 -1
  174. package/dist/types/types/assets/index.d.ts +74 -36
  175. package/dist/types/types/assets/index.d.ts.map +1 -1
  176. package/dist/types/types/authentication/index.d.ts +111 -60
  177. package/dist/types/types/authentication/index.d.ts.map +1 -1
  178. package/dist/types/types/axios.d.ts.map +1 -1
  179. package/dist/types/types/config.d.ts +1 -39
  180. package/dist/types/types/config.d.ts.map +1 -1
  181. package/dist/types/types/integration/events.d.ts +52 -20
  182. package/dist/types/types/integration/events.d.ts.map +1 -1
  183. package/dist/types/types/marketplace/availabilityExceptions.d.ts +59 -16
  184. package/dist/types/types/marketplace/availabilityExceptions.d.ts.map +1 -1
  185. package/dist/types/types/marketplace/availabilityPlan.d.ts +18 -0
  186. package/dist/types/types/marketplace/availabilityPlan.d.ts.map +1 -0
  187. package/dist/types/types/marketplace/bookings.d.ts +48 -14
  188. package/dist/types/types/marketplace/bookings.d.ts.map +1 -1
  189. package/dist/types/types/marketplace/currentUser.d.ts +99 -55
  190. package/dist/types/types/marketplace/currentUser.d.ts.map +1 -1
  191. package/dist/types/types/marketplace/images.d.ts +40 -14
  192. package/dist/types/types/marketplace/images.d.ts.map +1 -1
  193. package/dist/types/types/marketplace/listings.d.ts +96 -66
  194. package/dist/types/types/marketplace/listings.d.ts.map +1 -1
  195. package/dist/types/types/marketplace/marketplace.d.ts +16 -6
  196. package/dist/types/types/marketplace/marketplace.d.ts.map +1 -1
  197. package/dist/types/types/marketplace/messages.d.ts +53 -15
  198. package/dist/types/types/marketplace/messages.d.ts.map +1 -1
  199. package/dist/types/types/marketplace/ownListings.d.ts +92 -65
  200. package/dist/types/types/marketplace/ownListings.d.ts.map +1 -1
  201. package/dist/types/types/marketplace/passwordReset.d.ts +32 -9
  202. package/dist/types/types/marketplace/passwordReset.d.ts.map +1 -1
  203. package/dist/types/types/marketplace/processTransitions.d.ts +33 -14
  204. package/dist/types/types/marketplace/processTransitions.d.ts.map +1 -1
  205. package/dist/types/types/marketplace/reviews.d.ts +72 -23
  206. package/dist/types/types/marketplace/reviews.d.ts.map +1 -1
  207. package/dist/types/types/marketplace/stock.d.ts +23 -6
  208. package/dist/types/types/marketplace/stock.d.ts.map +1 -1
  209. package/dist/types/types/marketplace/stockAdjustment.d.ts +60 -14
  210. package/dist/types/types/marketplace/stockAdjustment.d.ts.map +1 -1
  211. package/dist/types/types/marketplace/stockReservations.d.ts +59 -14
  212. package/dist/types/types/marketplace/stockReservations.d.ts.map +1 -1
  213. package/dist/types/types/marketplace/stripeAccount.d.ts +28 -5
  214. package/dist/types/types/marketplace/stripeAccount.d.ts.map +1 -1
  215. package/dist/types/types/marketplace/stripeAccountLinks.d.ts +26 -6
  216. package/dist/types/types/marketplace/stripeAccountLinks.d.ts.map +1 -1
  217. package/dist/types/types/marketplace/stripeCustomer.d.ts +60 -13
  218. package/dist/types/types/marketplace/stripeCustomer.d.ts.map +1 -1
  219. package/dist/types/types/marketplace/stripePaymentMethod.d.ts +1 -2
  220. package/dist/types/types/marketplace/stripePaymentMethod.d.ts.map +1 -1
  221. package/dist/types/types/marketplace/stripePersons.d.ts +17 -15
  222. package/dist/types/types/marketplace/stripePersons.d.ts.map +1 -1
  223. package/dist/types/types/marketplace/stripeSetupIntents.d.ts +16 -14
  224. package/dist/types/types/marketplace/stripeSetupIntents.d.ts.map +1 -1
  225. package/dist/types/types/marketplace/timeSlots.d.ts +13 -15
  226. package/dist/types/types/marketplace/timeSlots.d.ts.map +1 -1
  227. package/dist/types/types/marketplace/transactions.d.ts +77 -83
  228. package/dist/types/types/marketplace/transactions.d.ts.map +1 -1
  229. package/dist/types/types/marketplace/user.d.ts +85 -64
  230. package/dist/types/types/marketplace/user.d.ts.map +1 -1
  231. package/dist/types/types/sharetribe.d.ts +130 -92
  232. package/dist/types/types/sharetribe.d.ts.map +1 -1
  233. package/dist/types/types/store.d.ts +3 -14
  234. package/dist/types/types/store.d.ts.map +1 -1
  235. package/dist/types/utils/apis.d.ts +1 -1
  236. package/dist/types/utils/apis.d.ts.map +1 -1
  237. package/dist/types/utils/config.d.ts.map +1 -1
  238. package/dist/types/utils/convert-types.d.ts.map +1 -1
  239. package/dist/types/utils/parameter-serializer.d.ts.map +1 -1
  240. package/dist/types/utils/prepare-axios-instance.d.ts +1 -1
  241. package/dist/types/utils/prepare-axios-instance.d.ts.map +1 -1
  242. package/dist/types/utils/stores/BrowserStore.d.ts +1 -2
  243. package/dist/types/utils/stores/BrowserStore.d.ts.map +1 -1
  244. package/dist/types/utils/stores/ExpressStore.d.ts +6 -7
  245. package/dist/types/utils/stores/ExpressStore.d.ts.map +1 -1
  246. package/dist/types/utils/stores/MemoryStore.d.ts +1 -2
  247. package/dist/types/utils/stores/MemoryStore.d.ts.map +1 -1
  248. package/dist/types/utils/stores/store.d.ts.map +1 -1
  249. package/dist/types/utils/transit.d.ts +1 -1
  250. package/dist/types/utils/transit.d.ts.map +1 -1
  251. package/dist/types/utils/util.d.ts +2 -2
  252. package/dist/types/utils/util.d.ts.map +1 -1
  253. package/dist/utils/apis.d.ts +8 -0
  254. package/dist/utils/config.d.ts +32 -0
  255. package/dist/utils/convert-types.d.ts +13 -0
  256. package/dist/utils/parameter-serializer.d.ts +23 -0
  257. package/dist/utils/prepare-axios-instance.d.ts +14 -0
  258. package/dist/utils/stores/BrowserStore.d.ts +37 -0
  259. package/dist/utils/stores/ExpressStore.d.ts +48 -0
  260. package/dist/utils/stores/MemoryStore.d.ts +23 -0
  261. package/dist/utils/stores/store.d.ts +8 -0
  262. package/dist/utils/transit.d.ts +28 -0
  263. package/dist/utils/util.d.ts +15 -0
  264. package/package.json +18 -17
  265. package/dist/ts-sharetribe-flex-sdk.cjs +0 -3
  266. package/dist/ts-sharetribe-flex-sdk.cjs.map +0 -1
  267. package/dist/ts-sharetribe-flex-sdk.js +0 -3
  268. package/dist/ts-sharetribe-flex-sdk.js.map +0 -1
  269. package/dist/ts-sharetribe-flex-sdk.mjs +0 -3
  270. package/dist/ts-sharetribe-flex-sdk.mjs.map +0 -1
  271. package/dist/types/endpoints/integrationApi/StockReservation.d.ts.map +0 -1
@@ -0,0 +1,227 @@
1
+ import UUIDClass from "../sdkTypes/UUID";
2
+ import { User } from "./marketplace/user";
3
+ import { Booking } from "./marketplace/bookings";
4
+ import { Stock } from "./marketplace/stock";
5
+ import { StripePaymentMethod } from "./marketplace/stripePaymentMethod";
6
+ import { Image } from "./marketplace/images";
7
+ import { Listing } from "./marketplace/listings";
8
+ import { Marketplace } from "./marketplace/marketplace";
9
+ import { Message } from "./marketplace/messages";
10
+ import { OwnListing } from "./marketplace/ownListings";
11
+ import { Review } from "./marketplace/reviews";
12
+ import { StockReservation } from "./marketplace/stockReservations";
13
+ import { StripeAccount } from "./marketplace/stripeAccount";
14
+ import { StripeCustomer } from "./marketplace/stripeCustomer";
15
+ import { Transaction } from "./marketplace/transactions";
16
+ import { CurrentUserPermissionSet } from "./marketplace/currentUser";
17
+ import { StockAdjustment } from "./marketplace/stockAdjustment";
18
+ import { ImageAsset } from "./assets";
19
+ /**
20
+ * A mapping of relationship types to their corresponding entities.
21
+ * The `I` flag controls whether private/protected user data is included.
22
+ */
23
+ export type RelationshipTypeMap<I extends boolean = false> = {
24
+ "author.effectivePermissionSet": CurrentUserPermissionSet;
25
+ "author.marketplace": Marketplace;
26
+ "author.profileImage": Image;
27
+ "author.stripeAccount": StripeAccount;
28
+ "booking.transaction": Transaction;
29
+ "customer.effectivePermissionSet": CurrentUserPermissionSet;
30
+ "customer.marketplace": Marketplace;
31
+ "customer.profileImage": Image;
32
+ "customer.stripeAccount": StripeAccount;
33
+ "effectivePermissionSet": CurrentUserPermissionSet;
34
+ "listing.author": User<I>;
35
+ "listing.currentStock": Stock;
36
+ "listing.images": Image;
37
+ "listing.marketplace": Marketplace;
38
+ "messages.sender": User<I>;
39
+ "messages.transaction": Transaction;
40
+ "ownListing.author": User<I>;
41
+ "ownListing.currentStock": Stock;
42
+ "ownListing.images": Image;
43
+ "ownListing.marketplace": Marketplace;
44
+ "provider.effectivePermissionSet": CurrentUserPermissionSet;
45
+ "provider.marketplace": Marketplace;
46
+ "provider.profileImage": Image;
47
+ "provider.stripeAccount": StripeAccount;
48
+ "reviews.author": User<I>;
49
+ "reviews.author.profileImage": Image;
50
+ "reviews.listing": Listing<I>;
51
+ "reviews.subject": User<I>;
52
+ "sender.effectivePermissionSet": CurrentUserPermissionSet;
53
+ "sender.marketplace": Marketplace;
54
+ "sender.profileImage": Image;
55
+ "sender.stripeAccount": StripeAccount;
56
+ "stockReservation.transaction": Transaction;
57
+ "stripeCustomer.defaultPaymentMethod": StripePaymentMethod;
58
+ "subject.effectivePermissionSet": CurrentUserPermissionSet;
59
+ "subject.marketplace": Marketplace;
60
+ "subject.profileImage": Image;
61
+ "subject.stripeAccount": StripeAccount;
62
+ "transaction.booking": Booking;
63
+ "transaction.customer": User<I>;
64
+ "transaction.listing": Listing<I>;
65
+ "transaction.marketplace": Marketplace;
66
+ "transaction.messages": Message;
67
+ "transaction.provider": User<I>;
68
+ "transaction.reviews": Review;
69
+ "transaction.stockReservation": StockReservation;
70
+ author: User<I>;
71
+ booking: Booking;
72
+ currentStock: Stock;
73
+ customer: User<I>;
74
+ defaultPaymentMethod: StripePaymentMethod;
75
+ imageAsset: ImageAsset;
76
+ images: Image;
77
+ listing: Listing<I>;
78
+ marketplace: Marketplace;
79
+ messages: Message;
80
+ ownListing: OwnListing;
81
+ profileImage: Image;
82
+ provider: User<I>;
83
+ reviews: Review;
84
+ sender: User<I>;
85
+ stockAdjustment: StockAdjustment;
86
+ stockReservation: StockReservation;
87
+ stripeAccount: StripeAccount;
88
+ stripeCustomer: StripeCustomer;
89
+ subject: User<I>;
90
+ transaction: Transaction;
91
+ };
92
+ /**
93
+ * HTTP status codes that can return API errors
94
+ */
95
+ export declare const ApiErrorStatuses: {
96
+ readonly BadRequest: 400;
97
+ readonly Unauthorized: 401;
98
+ readonly PaymentRequired: 402;
99
+ readonly Forbidden: 403;
100
+ readonly NotFound: 404;
101
+ readonly Conflict: 409;
102
+ readonly PayloadTooLarge: 413;
103
+ readonly TooManyRequests: 429;
104
+ readonly ServerError: 500;
105
+ };
106
+ export type ApiErrorStatus = typeof ApiErrorStatuses[keyof typeof ApiErrorStatuses];
107
+ /**
108
+ * Strongly typed error codes per status
109
+ */
110
+ export type ApiErrorCode = "unsupported-content-type" | "bad-request" | "validation-disallowed-key" | "validation-invalid-value" | "validation-invalid-params" | "validation-missing-key" | "auth-invalid-access-token" | "auth-missing-access-token" | "transaction-payment-failed" | "forbidden" | "not-found" | "conflict" | "image-invalid" | "image-invalid-content" | "email-taken" | "email-already-verified" | "email-unverified" | "email-not-found" | "listing-not-found" | "listing-invalid-state" | "stripe-account-not-found" | "stripe-missing-api-key" | "stripe-invalid-payment-intent-status" | "stripe-customer-not-found" | "stripe-multiple-payment-methods-not-supported" | "stripe-payment-method-type-not-supported" | "user-missing-stripe-account" | "user-is-banned" | "user-not-found" | "transaction-locked" | "transaction-not-found" | "transaction-listing-not-found" | "transaction-booking-state-not-pending" | "transaction-booking-state-not-accepted" | "transaction-invalid-transition" | "transaction-invalid-action-sequence" | "transaction-missing-listing-price" | "transaction-missing-stripe-account" | "transaction-same-author-and-customer" | "transaction-stripe-account-disabled-charges" | "transaction-stripe-account-disabled-payouts" | "transaction-charge-zero-payin" | "transaction-charge-zero-payout" | "transaction-zero-payin" | "transaction-unknown-alias" | "transaction-provider-banned-or-deleted" | "transaction-customer-banned-or-deleted" | "request-larger-than-content-length" | "request-upload-over-limit" | "too-many-requests";
111
+ /**
112
+ * Single API error object
113
+ */
114
+ export interface ApiError {
115
+ id: string;
116
+ status: ApiErrorStatus;
117
+ code: ApiErrorCode;
118
+ title: string;
119
+ detail?: string;
120
+ source?: {
121
+ pointer?: string;
122
+ parameter?: string;
123
+ };
124
+ meta?: Record<string, unknown>;
125
+ }
126
+ /**
127
+ * Full error response from Sharetribe API
128
+ */
129
+ export interface ApiErrorResponse {
130
+ errors: ApiError[];
131
+ }
132
+ /**
133
+ *
134
+ */
135
+ export interface SharetribeApiError {
136
+ name: string;
137
+ message: string;
138
+ status?: number;
139
+ statusText?: string;
140
+ data: any;
141
+ }
142
+ /**
143
+ * UUID wrapper instance
144
+ */
145
+ export type UUID = InstanceType<typeof UUIDClass>;
146
+ /**
147
+ * Pagination metadata
148
+ */
149
+ export interface ApiMeta {
150
+ totalItems: number;
151
+ totalPages: number;
152
+ page: number;
153
+ perPage: number;
154
+ paginationLimit?: number;
155
+ }
156
+ /**
157
+ * Relationship object in API responses
158
+ */
159
+ export type Relationship<IsArray extends boolean = false, Type extends keyof RelationshipTypeMap = keyof RelationshipTypeMap> = IsArray extends true ? {
160
+ data: {
161
+ id: UUID;
162
+ type: Type;
163
+ }[];
164
+ } : {
165
+ data: {
166
+ id: UUID;
167
+ type: Type;
168
+ } | null;
169
+ };
170
+ /**
171
+ * Query parameter prefixes
172
+ */
173
+ export type QueryFields = `fields.${string}`;
174
+ export type QueryLimit = `limit.${string}`;
175
+ export type QueryImageVariant = `imageVariant.${string}`;
176
+ /**
177
+ * Public, metadata, private, protected data query keys
178
+ */
179
+ export type QueryPub = `pub_${string}`;
180
+ export type QueryMeta = `meta_${string}`;
181
+ export type QueryPriv = `priv_${string}`;
182
+ export type QueryProt = `prot_${string}`;
183
+ /**
184
+ * Optional expand control
185
+ */
186
+ export interface ExpandParam {
187
+ expand?: boolean;
188
+ }
189
+ export type ExtraParameter = ExpandParam | undefined;
190
+ export type ExtraParameterType = ExtraParameter;
191
+ /**
192
+ * Base API parameter interface (index signatures are now safe)
193
+ */
194
+ export interface ApiParameter {
195
+ /** Select fields: fields.listings=title,description */
196
+ [K: QueryFields]: string | undefined;
197
+ /** Pagination limits per resource type */
198
+ [K: QueryLimit]: number | undefined;
199
+ /** Image variants */
200
+ [K: QueryImageVariant]: string | undefined;
201
+ /** Public custom fields */
202
+ [K: QueryPub]: string | undefined;
203
+ /** Metadata fields */
204
+ [K: QueryMeta]: string | undefined;
205
+ /** Private fields (admin only) */
206
+ [K: QueryPriv]: string | undefined;
207
+ /** Protected fields (trusted user) */
208
+ [K: QueryProt]: string | undefined;
209
+ }
210
+ /**
211
+ * Geographic types
212
+ */
213
+ export interface LatLng {
214
+ lat: number;
215
+ lng: number;
216
+ }
217
+ export interface LatLngBounds {
218
+ ne: LatLng;
219
+ sw: LatLng;
220
+ }
221
+ /**
222
+ * Money amount with currency
223
+ */
224
+ export interface Money {
225
+ amount: number;
226
+ currency: string;
227
+ }
@@ -0,0 +1,22 @@
1
+ import { AuthToken } from "./authentication";
2
+ /**
3
+ * Interface for managing authentication tokens in a store.
4
+ */
5
+ export interface TokenStore {
6
+ token?: AuthToken | null;
7
+ expiration?: number;
8
+ /**
9
+ * Retrieves the current authentication token.
10
+ * @returns A promise resolving to the current token or null if no token exists.
11
+ */
12
+ getToken: (() => AuthToken | null) | (() => Promise<AuthToken | null>);
13
+ /**
14
+ * Sets a new authentication token.
15
+ * @param args - Object containing the token's details.
16
+ */
17
+ setToken: ((args: AuthToken) => void) | ((args: AuthToken) => Promise<void>);
18
+ /**
19
+ * Removes the current authentication token.
20
+ */
21
+ removeToken: (() => void) | (() => Promise<void>);
22
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"apiConfigs.d.ts","sourceRoot":"","sources":["../../../src/types/apiConfigs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,KAAK,IAAI,CAAC,SAAS,KAAK,GAC/D;IACE;;OAEG;IACH,GAAG,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QAC1B,OAAO,EAAE;YACP;;eAEG;YACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;YACvC;;eAEG;YACH,MAAM,EAAE,0BAA0B,CAAC;SACpC,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;OAEG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QAC3B,OAAO,EAAE;YACP;;eAEG;YACH,cAAc,EAAE,mCAAmC,CAAC;YACpD;;eAEG;YACH,MAAM,EAAE,kBAAkB,CAAC;SAC5B,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;OAEG;IACH,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QAC7B,OAAO,EAAE;YACP;;eAEG;YACH,MAAM,EAAE,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AAE,kBAAkB,CAAC;SAC5B,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;OAEG;IACH,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QAC7B,OAAO,EAAE;YACP;;eAEG;YACH,MAAM,EAAE,kBAAkB,CAAC;SAC5B,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,GACC;IACA;;OAEG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QAC3B,OAAO,EAAE;YACP;;eAEG;YACH,cAAc,EAAE,mCAAmC,CAAC;YACpD;;eAEG;YACH,MAAM,EAAE,kBAAkB,CAAC;SAC5B,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF;;OAEG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK;QACrC,OAAO,EAAE;YACP;;eAEG;YACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;YACvC;;eAEG;YACH,MAAM,EAAE,0BAA0B,CAAC;SACpC,CAAC;QACF;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC"}
@@ -1,64 +1,102 @@
1
1
  /**
2
- * @fileoverview Type definitions for managing assets in the Sharetribe Marketplace API.
3
- * These types define the structure and relationships of assets such as JSON data and image assets,
4
- * as well as the request and response formats for the asset-related endpoints.
2
+ * @fileoverview Type definitions for Assets in the Sharetribe Marketplace API.
3
+ */
4
+ import type { ApiParameter, Relationship, RelationshipTypeMap, UUID } from "../sharetribe";
5
+ import type { ImageVariant, ImageVariantName } from "../marketplace/images";
6
+ /**
7
+ * Available endpoints
5
8
  */
6
- import { ImageVariantNames, ImageVariants } from "../marketplace/images";
7
- import { ApiParameter, Relationship, UUID } from "../sharetribe";
8
- type RelationshipTypeMap = {
9
- imageAsset: ImageAsset;
10
- };
11
9
  export type AssetEndpoints = "assetByAlias" | "assetsByAlias" | "assetByVersion" | "assetsByVersion";
10
+ /**
11
+ * Relationship fields
12
+ */
12
13
  export type AssetRelationshipsFields = "imageAsset";
13
- export type JsonAsset = {
14
- [key: string]: any;
15
- };
16
- export type JsonAssetWithRelationships = {
17
- images: Relationship<true, "imageAsset">;
18
- };
19
- export type ImageAsset = {
14
+ /**
15
+ * Image asset resource
16
+ */
17
+ export interface ImageAsset {
20
18
  id: UUID;
21
19
  type: "imageAsset";
22
20
  attributes: {
23
21
  assetPath: string;
24
- variants: {
25
- [key in ImageVariantNames]?: ImageVariants;
26
- };
22
+ variants: Partial<Record<ImageVariantName, ImageVariant>>;
27
23
  };
28
- };
29
- type IsJsonPath<Path> = Path extends `${string}.json` ? true : false;
30
- export type AssetType<P extends AllAssetParameter> = P extends {
31
- path: infer Path;
32
- } ? IsJsonPath<Path> : P extends {
33
- paths: infer Paths;
34
- } ? Paths extends string[] ? IsJsonPath<Paths[number]> extends true ? JsonAsset : ImageAsset : never : never;
24
+ }
25
+ /**
26
+ * Generic JSON asset (e.g. config, translations)
27
+ */
28
+ export type JsonAsset = Record<string, unknown>;
29
+ /**
30
+ * JSON asset with embedded image relationships
31
+ */
32
+ export interface JsonAssetWithRelationships {
33
+ images: Relationship<true, "imageAsset">;
34
+ }
35
+ /**
36
+ * Base request parameters
37
+ */
35
38
  export interface AssetParameter extends ApiParameter {
36
- include?: JsonAssetWithRelationships[];
39
+ include?: AssetRelationshipsFields[];
37
40
  }
41
+ /**
42
+ * Single asset by alias/version
43
+ */
38
44
  export interface AssetByAliasParameter extends AssetParameter {
39
45
  path: string;
40
46
  alias: string;
41
47
  }
42
- export interface AssetsByAliasParameter extends AssetParameter {
43
- paths: string[];
44
- alias: string;
45
- }
46
48
  export interface AssetByVersionParameter extends AssetParameter {
47
49
  path: string;
48
50
  version: string;
49
51
  }
52
+ /**
53
+ * Multiple assets by alias/version
54
+ */
55
+ export interface AssetsByAliasParameter extends AssetParameter {
56
+ paths: string[];
57
+ alias: string;
58
+ }
50
59
  export interface AssetsByVersionParameter extends AssetParameter {
51
60
  paths: string[];
52
61
  version: string;
53
62
  }
63
+ /**
64
+ * All parameter types
65
+ */
54
66
  type AllAssetParameter = AssetByAliasParameter | AssetsByAliasParameter | AssetByVersionParameter | AssetsByVersionParameter;
55
- type AssetWithIncludeType<P extends AllAssetParameter> = "include" extends keyof P ? P["include"] extends AssetRelationshipsFields[] ? true : false : false;
56
- export type IncludedType<P extends AllAssetParameter> = "include" extends keyof P ? P["include"] extends (keyof RelationshipTypeMap)[] ? Array<AssetWithIncludeType<P>>[] : never : never;
57
- type DataType<E extends AssetEndpoints, P extends AllAssetParameter> = E extends "assetByAlias" | "assetsByAlias" | "assetByVersion" | "assetsByVersion" ? AssetType<P> : never;
67
+ /**
68
+ * Detect if path ends with .json
69
+ */
70
+ type IsJsonPath<Path extends string> = Path extends `${string}.json` ? true : false;
71
+ /**
72
+ * Resolve asset data type from path(s)
73
+ */
74
+ type ResolveAssetType<P extends AllAssetParameter> = P extends {
75
+ path: infer Path extends string;
76
+ } ? IsJsonPath<Path> extends true ? JsonAsset : ImageAsset : P extends {
77
+ paths: infer Paths extends string[];
78
+ } ? Paths extends [string] ? IsJsonPath<Paths[0]> extends true ? JsonAsset : ImageAsset : JsonAsset | ImageAsset : never;
79
+ /**
80
+ * Include detection — fixes TS2536
81
+ */
82
+ type HasInclude<P> = P extends {
83
+ include: infer I extends readonly AssetRelationshipsFields[];
84
+ } ? I : never;
85
+ type IncludesRelationships<P> = HasInclude<P> extends never ? false : true;
86
+ type IncludedResources<P> = P extends {
87
+ include: infer I extends readonly AssetRelationshipsFields[];
88
+ } ? RelationshipTypeMap["imageAsset"][] : never;
89
+ /**
90
+ * Response data per endpoint
91
+ */
92
+ type ResponseData<E extends AssetEndpoints, P extends AllAssetParameter> = ResolveAssetType<P>;
93
+ /**
94
+ * Final response type
95
+ */
58
96
  export type AssetResponse<E extends AssetEndpoints, P extends AllAssetParameter> = {
59
- data: DataType<E, P>;
60
- } & ("include" extends keyof P ? {
61
- included: IncludedType<P>;
97
+ data: ResponseData<E, P>;
98
+ } & (IncludesRelationships<P> extends true ? {
99
+ included: IncludedResources<P>;
62
100
  } : {});
63
101
  export {};
64
102
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/assets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGjE,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,iBAAiB,CAAC;AAGtB,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAGpD,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;CAC1C,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE;aAAG,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,aAAa;SAAE,CAAC;KAC1D,CAAC;CACH,CAAC;AAGF,KAAK,UAAU,CAAC,IAAI,IAAI,IAAI,SAAS,GAAG,MAAM,OAAO,GAAG,IAAI,GAAG,KAAK,CAAC;AAGrE,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,iBAAiB,IAAI,CAAC,SAAS;IAC7D,IAAI,EAA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,IAAI,GAAG,SAAS,GAAG,UAAU,GAC1D,SAAS,GAAG,UAAU,GACxB,KAAK,CAAC;AAEd;;GAEG;AACH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAC,SAAS,SAAS,wBAAwB,EAAE,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAC5G,KAAK,qBAAqB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;AAE3E,KAAK,iBAAiB,CAAC,CAAC,IACtB,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAC,SAAS,SAAS,wBAAwB,EAAE,CAAA;CAAE,GACtE,mBAAmB,CAAC,YAAY,CAAC,EAAE,GACnC,KAAK,CAAC;AAEZ;;GAEG;AACH,KAAK,YAAY,CACf,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,iBAAiB,IACzB,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,iBAAiB,IACzB;IACF,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC1B,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,EAAE,CAAC,CAAC"}
@@ -1,97 +1,148 @@
1
1
  /**
2
- * @fileoverview Type definitions for authentication in the Sharetribe Marketplace API.
3
- * These types define the structure of authentication-related parameters, endpoints, and responses.
4
- */
5
- export type TokenTypes = "access_token" | "refresh_token";
6
- export type GrantType = "client_credentials" | "password" | "refresh_token" | "token_exchange" | "authorization_code";
7
- export type Scope = "public-read" | "user" | "trusted:user" | "integ";
8
- export type ScopeType = "public-read" | "user" | "trusted:user" | "integ" | "details" | "refresh-token";
9
- export type IdentityProviderType = "facebook" | "google" | string;
2
+ * @fileoverview Type definitions for Sharetribe Authentication API (OAuth2)
3
+ *
4
+ * @see https://www.sharetribe.com/api-reference/authentication.html
5
+ */
6
+ import type { UUID } from "../sharetribe";
7
+ /**
8
+ * OAuth2 grant types
9
+ */
10
+ export type GrantType = "client_credentials" | "password" | "authorization_code" | "refresh_token" | "token_exchange";
11
+ /**
12
+ * Available scopes
13
+ */
14
+ export type Scope = "public-read" | "user" | "trusted:user" | "integ" | "details" | "refresh-token";
15
+ /**
16
+ * Identity provider ID (built-in + custom)
17
+ */
18
+ export type IdentityProviderId = "facebook" | "google" | string;
10
19
  export type LoginParameterType = "user" | "auth_code";
11
- export type LoginParameter<T extends LoginParameterType> = T extends "user" ? {
12
- username?: string;
13
- password?: string;
14
- } : T extends "auth_code" ? {
15
- code?: string;
16
- redirect_uri?: string;
17
- code_verifier?: string;
18
- } : never;
19
- export type LoginWithIdpParameter = {
20
- idpId: string;
21
- idpClientId: string;
22
- idpToken: string;
23
- };
24
- export type AuthWithIdpParameter = {
25
- client_id: string;
26
- client_secret: string;
27
- } & LoginWithIdpParameter;
28
- export type IdentityProvider<P extends IdentityProviderType> = {
29
- idpId: P;
30
- idpToken: string;
31
- };
32
- type BaseEndpoint = {
20
+ /**
21
+ * Base token request
22
+ */
23
+ interface BaseTokenRequest {
33
24
  client_id: string;
34
- };
35
- export type AnonymousEndpoint = BaseEndpoint & {
25
+ }
26
+ /**
27
+ * Public read access (anonymous)
28
+ */
29
+ export type AnonymousTokenRequest = BaseTokenRequest & {
36
30
  grant_type: "client_credentials";
37
31
  scope: "public-read";
38
32
  };
39
- type UserEndpoint = BaseEndpoint & {
33
+ /**
34
+ * User authentication (password or authorization code)
35
+ */
36
+ export type UserTokenRequest = BaseTokenRequest & {
40
37
  scope: "user";
38
+ grant_type: "password";
39
+ username: string;
40
+ password: string;
41
41
  };
42
- export type UserPasswordEndpoint = UserEndpoint & {
43
- grant_type: "password" | "authorization_code";
44
- username?: string;
45
- password?: string;
46
- code?: string;
47
- redirect_uri?: string;
48
- code_verifier?: string;
42
+ export type UserTokenRequestWithAuthCode = BaseTokenRequest & {
43
+ scope: "user";
44
+ grant_type: "authorization_code";
45
+ code: string;
46
+ redirect_uri: string;
47
+ code_verifier: string;
49
48
  };
50
- export type UserLoginAsEndpoint = UserEndpoint & {
49
+ /**
50
+ * Admin "login as" flow
51
+ */
52
+ export type LoginAsTokenRequest = BaseTokenRequest & {
51
53
  grant_type: "authorization_code";
54
+ scope: "user";
52
55
  code: string;
53
56
  redirect_uri: string;
54
57
  code_verifier: string;
55
58
  };
56
- export type TrustedUserEndpoint = BaseEndpoint & {
59
+ /**
60
+ * Trusted impersonation
61
+ */
62
+ export type TrustedUserTokenRequest = BaseTokenRequest & {
57
63
  client_secret: string;
58
- subject_token: string;
59
64
  grant_type: "token_exchange";
60
65
  scope: "trusted:user";
66
+ subject_token: string;
61
67
  };
62
- type IntegEndpoint = BaseEndpoint & {
63
- scope: "integ";
64
- };
65
- export type IntegClientCredentialsEndpoint = IntegEndpoint & {
66
- grant_type: "client_credentials";
68
+ /**
69
+ * Integration API access
70
+ */
71
+ export type IntegrationTokenRequest = BaseTokenRequest & {
67
72
  client_secret: string;
73
+ grant_type: "client_credentials";
74
+ scope: "integ";
68
75
  };
69
- export type RefreshTokenEndpoint = BaseEndpoint & {
76
+ /**
77
+ * Refresh token
78
+ */
79
+ export type RefreshTokenRequest = BaseTokenRequest & {
70
80
  grant_type: "refresh_token";
71
81
  refresh_token: string;
72
82
  };
73
- export type DetailsEndpoint = void;
74
- export type Endpoint<S extends ScopeType> = S extends "public-read" ? AnonymousEndpoint : S extends "user" ? UserPasswordEndpoint | UserLoginAsEndpoint | UserLoginAsEndpoint : S extends "trusted:user" ? TrustedUserEndpoint : S extends "integ" ? IntegClientCredentialsEndpoint : S extends "details" ? DetailsEndpoint : S extends "refresh-token" ? RefreshTokenEndpoint : never;
75
83
  /**
76
- * Represents an authentication token used for API requests.
84
+ * Token introspection endpoint (no body)
85
+ */
86
+ export type DetailsRequest = void;
87
+ /**
88
+ * All valid token request types
89
+ */
90
+ export type TokenRequest = AnonymousTokenRequest | UserTokenRequest | UserTokenRequestWithAuthCode | LoginAsTokenRequest | TrustedUserTokenRequest | IntegrationTokenRequest | RefreshTokenRequest | DetailsRequest;
91
+ /**
92
+ * Login parameter
93
+ */
94
+ export type LoginParameter<T extends LoginParameterType> = T extends "user" ? {
95
+ username: string;
96
+ password: string;
97
+ } : T extends "auth_code" ? {
98
+ code: string;
99
+ redirect_uri: string;
100
+ code_verifier: string;
101
+ } : never;
102
+ export type LoginWithIdpParameter = {
103
+ idpId: IdentityProviderId;
104
+ idpClientId: string;
105
+ idpToken: string;
106
+ };
107
+ /**
108
+ * Login with external IdP
109
+ */
110
+ export type AuthWithIdpParameter = {
111
+ client_id: string;
112
+ client_secret: string;
113
+ } & LoginWithIdpParameter;
114
+ /**
115
+ * Successful token response
77
116
  */
78
117
  export interface AuthToken {
79
118
  access_token: string;
80
119
  token_type: "bearer";
81
120
  expires_in: number;
82
- scope?: Scope;
121
+ scope?: Scope | Scope[];
83
122
  refresh_token?: string;
84
123
  }
85
- export type TokenDetails = {
124
+ /**
125
+ * Token introspection response
126
+ */
127
+ export interface TokenDetails {
86
128
  "client-id": string;
87
129
  exp: number;
88
- scope: Scope;
89
- isLoggedInAs: boolean;
90
- };
91
- export type TokenResponse<S extends ScopeType> = S extends "public-read" | "user" | "trusted:user" | "integ" | "refresh-token" ? AuthToken : S extends "details" ? TokenDetails : never;
92
- export type RevokeResponse = {
130
+ scope: Scope[];
131
+ isLoggedInAs?: UUID | null;
132
+ }
133
+ /**
134
+ * Token response by endpoint
135
+ */
136
+ export type TokenResponse<T extends TokenRequest> = T extends DetailsRequest ? TokenDetails : AuthToken;
137
+ /**
138
+ * Revoke response
139
+ */
140
+ export interface RevokeResponse {
93
141
  revoked: boolean;
94
- };
142
+ }
143
+ /**
144
+ * Auth info response
145
+ */
95
146
  export type AuthInfoResponse = {
96
147
  scopes?: Scope[];
97
148
  isAnonymous?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/authentication/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,eAAe,CAAC;AAC1D,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,oBAAoB,CAAC;AACzB,MAAM,MAAM,KAAK,GAAG,aAAa,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC;AACtE,MAAM,MAAM,SAAS,GACjB,aAAa,GACb,MAAM,GACN,cAAc,GACd,OAAO,GACP,SAAS,GACT,eAAe,CAAC;AACpB,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,WAAW,CAAC;AAGtD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,kBAAkB,IAAI,CAAC,SAAS,MAAM,GACvE;IACE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACD,CAAC,SAAS,WAAW,GACrB;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GACD,KAAK,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,qBAAqB,CAAC;AAG1B,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,IA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M,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/authentication/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,UAAU,GACV,oBAAoB,GACpB,eAAe,GACf,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,KAAK,GACb,aAAa,GACb,MAAM,GACN,cAAc,GACd,OAAO,GACP,SAAS,GACT,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,WAAW,CAAC;AAEtD;;GAEG;AACH,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG;IACrD,UAAU,EAAE,oBAAoB,CAAC;IACjC,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,oBAAoB,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IACnD,UAAU,EAAE,oBAAoB,CAAC;IACjC,KAAK,EA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,"file":"axios.d.ts","sourceRoot":"","sources":["../../../src/types/axios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,OAAO,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,0BAA0B,GAAG;IAC5E;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}