@flexprice/mcp-server 2.1.11 → 2.1.18

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 (275) hide show
  1. package/bin/mcp-server.js +604 -213
  2. package/bin/mcp-server.js.map +66 -53
  3. package/bun.lock +25 -23
  4. package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
  5. package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +1 -1
  6. package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +1 -1
  7. package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +1 -1
  8. package/esm/lib/config.d.ts +3 -3
  9. package/esm/lib/config.js +3 -3
  10. package/esm/lib/encodings.js +1 -1
  11. package/esm/lib/encodings.js.map +1 -1
  12. package/esm/lib/primitives.d.ts +1 -0
  13. package/esm/lib/primitives.d.ts.map +1 -1
  14. package/esm/lib/primitives.js +17 -0
  15. package/esm/lib/primitives.js.map +1 -1
  16. package/esm/mcp-server/mcp-server.js +1 -1
  17. package/esm/mcp-server/server.js +1 -1
  18. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +1 -1
  19. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
  20. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +1 -1
  21. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -1
  22. package/esm/models/attributedtocustomerresult.d.ts +11 -0
  23. package/esm/models/attributedtocustomerresult.d.ts.map +1 -0
  24. package/esm/models/attributedtocustomerresult.js +13 -0
  25. package/esm/models/attributedtocustomerresult.js.map +1 -0
  26. package/esm/models/bucket.d.ts +7 -0
  27. package/esm/models/bucket.d.ts.map +1 -0
  28. package/esm/models/bucket.js +9 -0
  29. package/esm/models/bucket.js.map +1 -0
  30. package/esm/models/bucketsummary.d.ts +18 -0
  31. package/esm/models/bucketsummary.d.ts.map +1 -0
  32. package/esm/models/bucketsummary.js +20 -0
  33. package/esm/models/bucketsummary.js.map +1 -0
  34. package/esm/models/cancelsubscriptionrequest.d.ts.map +1 -1
  35. package/esm/models/cancelsubscriptionrequest.js +1 -1
  36. package/esm/models/cancelsubscriptionrequest.js.map +1 -1
  37. package/esm/models/changedsubscription.d.ts +2 -0
  38. package/esm/models/changedsubscription.d.ts.map +1 -1
  39. package/esm/models/changedsubscription.js +2 -0
  40. package/esm/models/changedsubscription.js.map +1 -1
  41. package/esm/models/commitmentbucketrequest.d.ts +16 -0
  42. package/esm/models/commitmentbucketrequest.d.ts.map +1 -0
  43. package/esm/models/commitmentbucketrequest.js +18 -0
  44. package/esm/models/commitmentbucketrequest.js.map +1 -0
  45. package/esm/models/coupon.d.ts +1 -0
  46. package/esm/models/coupon.d.ts.map +1 -1
  47. package/esm/models/coupon.js +1 -0
  48. package/esm/models/coupon.js.map +1 -1
  49. package/esm/models/createinvoicelineitemrequest.d.ts +3 -0
  50. package/esm/models/createinvoicelineitemrequest.d.ts.map +1 -1
  51. package/esm/models/createinvoicelineitemrequest.js +3 -0
  52. package/esm/models/createinvoicelineitemrequest.js.map +1 -1
  53. package/esm/models/createsubscriptionlineitemrequest.d.ts +2 -0
  54. package/esm/models/createsubscriptionlineitemrequest.d.ts.map +1 -1
  55. package/esm/models/createsubscriptionlineitemrequest.js +3 -0
  56. package/esm/models/createsubscriptionlineitemrequest.js.map +1 -1
  57. package/esm/models/createsubscriptionrequest.d.ts +2 -0
  58. package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
  59. package/esm/models/createsubscriptionrequest.js +6 -2
  60. package/esm/models/createsubscriptionrequest.js.map +1 -1
  61. package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
  62. package/esm/models/debugtracker.d.ts +2 -0
  63. package/esm/models/debugtracker.d.ts.map +1 -1
  64. package/esm/models/debugtracker.js +2 -0
  65. package/esm/models/debugtracker.js.map +1 -1
  66. package/esm/models/debugtrackerstatus.d.ts +4 -0
  67. package/esm/models/debugtrackerstatus.d.ts.map +1 -1
  68. package/esm/models/debugtrackerstatus.js +4 -0
  69. package/esm/models/debugtrackerstatus.js.map +1 -1
  70. package/esm/models/entityintegrationmappingresponse.d.ts +3 -0
  71. package/esm/models/entityintegrationmappingresponse.d.ts.map +1 -1
  72. package/esm/models/entityintegrationmappingresponse.js +1 -0
  73. package/esm/models/entityintegrationmappingresponse.js.map +1 -1
  74. package/esm/models/eventprocessingstatustype.d.ts +1 -1
  75. package/esm/models/executesubscriptionmodifyrequest.d.ts +6 -0
  76. package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
  77. package/esm/models/executesubscriptionmodifyrequest.js +6 -0
  78. package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
  79. package/esm/models/failurepointtype.d.ts +2 -0
  80. package/esm/models/failurepointtype.d.ts.map +1 -1
  81. package/esm/models/failurepointtype.js +2 -0
  82. package/esm/models/failurepointtype.js.map +1 -1
  83. package/esm/models/getusageanalyticsrequest.d.ts +1 -0
  84. package/esm/models/getusageanalyticsrequest.d.ts.map +1 -1
  85. package/esm/models/getusageanalyticsrequest.js +1 -0
  86. package/esm/models/getusageanalyticsrequest.js.map +1 -1
  87. package/esm/models/inheritanceaction.d.ts +12 -0
  88. package/esm/models/inheritanceaction.d.ts.map +1 -0
  89. package/esm/models/inheritanceaction.js +13 -0
  90. package/esm/models/inheritanceaction.js.map +1 -0
  91. package/esm/models/invoicebillingreason.d.ts +2 -0
  92. package/esm/models/invoicebillingreason.d.ts.map +1 -1
  93. package/esm/models/invoicebillingreason.js +2 -0
  94. package/esm/models/invoicebillingreason.js.map +1 -1
  95. package/esm/models/invoicefilter.d.ts +3 -0
  96. package/esm/models/invoicefilter.d.ts.map +1 -1
  97. package/esm/models/invoicefilter.js +3 -0
  98. package/esm/models/invoicefilter.js.map +1 -1
  99. package/esm/models/invoicelineitemresponse.d.ts +2 -0
  100. package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
  101. package/esm/models/invoicelineitemresponse.js +2 -0
  102. package/esm/models/invoicelineitemresponse.js.map +1 -1
  103. package/esm/models/lineitemcommitmentconfig.d.ts +2 -0
  104. package/esm/models/lineitemcommitmentconfig.d.ts.map +1 -1
  105. package/esm/models/lineitemcommitmentconfig.js +3 -0
  106. package/esm/models/lineitemcommitmentconfig.js.map +1 -1
  107. package/esm/models/meterusageattribution.d.ts +8 -0
  108. package/esm/models/meterusageattribution.d.ts.map +1 -0
  109. package/esm/models/meterusageattribution.js +10 -0
  110. package/esm/models/meterusageattribution.js.map +1 -0
  111. package/esm/models/pricefilter.d.ts +2 -0
  112. package/esm/models/pricefilter.d.ts.map +1 -1
  113. package/esm/models/pricefilter.js +2 -0
  114. package/esm/models/pricefilter.js.map +1 -1
  115. package/esm/models/priceprice.d.ts +1 -0
  116. package/esm/models/priceprice.d.ts.map +1 -1
  117. package/esm/models/priceprice.js +1 -0
  118. package/esm/models/priceprice.js.map +1 -1
  119. package/esm/models/priceresponse.d.ts +1 -0
  120. package/esm/models/priceresponse.d.ts.map +1 -1
  121. package/esm/models/priceresponse.js +1 -0
  122. package/esm/models/priceresponse.js.map +1 -1
  123. package/esm/models/submodifycouponaction.d.ts +12 -0
  124. package/esm/models/submodifycouponaction.d.ts.map +1 -0
  125. package/esm/models/submodifycouponaction.js +13 -0
  126. package/esm/models/submodifycouponaction.js.map +1 -0
  127. package/esm/models/submodifycouponparams.d.ts +14 -0
  128. package/esm/models/submodifycouponparams.d.ts.map +1 -0
  129. package/esm/models/submodifycouponparams.js +16 -0
  130. package/esm/models/submodifycouponparams.js.map +1 -0
  131. package/esm/models/submodifyinheritancerequest.d.ts +3 -0
  132. package/esm/models/submodifyinheritancerequest.d.ts.map +1 -1
  133. package/esm/models/submodifyinheritancerequest.js +5 -1
  134. package/esm/models/submodifyinheritancerequest.js.map +1 -1
  135. package/esm/models/submodifytaxaction.d.ts +12 -0
  136. package/esm/models/submodifytaxaction.d.ts.map +1 -0
  137. package/esm/models/submodifytaxaction.js +13 -0
  138. package/esm/models/submodifytaxaction.js.map +1 -0
  139. package/esm/models/submodifytaxparams.d.ts +10 -0
  140. package/esm/models/submodifytaxparams.d.ts.map +1 -0
  141. package/esm/models/submodifytaxparams.js +13 -0
  142. package/esm/models/submodifytaxparams.js.map +1 -0
  143. package/esm/models/submodifytrialendrequest.d.ts +8 -0
  144. package/esm/models/submodifytrialendrequest.d.ts.map +1 -0
  145. package/esm/models/submodifytrialendrequest.js +10 -0
  146. package/esm/models/submodifytrialendrequest.js.map +1 -0
  147. package/esm/models/subscriptioncouponinput.d.ts +9 -0
  148. package/esm/models/subscriptioncouponinput.d.ts.map +1 -0
  149. package/esm/models/subscriptioncouponinput.js +11 -0
  150. package/esm/models/subscriptioncouponinput.js.map +1 -0
  151. package/esm/models/subscriptionlineitemresponse.d.ts +2 -0
  152. package/esm/models/subscriptionlineitemresponse.d.ts.map +1 -1
  153. package/esm/models/subscriptionlineitemresponse.js +2 -0
  154. package/esm/models/subscriptionlineitemresponse.js.map +1 -1
  155. package/esm/models/subscriptionmodifytype.d.ts +6 -0
  156. package/esm/models/subscriptionmodifytype.d.ts.map +1 -1
  157. package/esm/models/subscriptionmodifytype.js +6 -0
  158. package/esm/models/subscriptionmodifytype.js.map +1 -1
  159. package/esm/models/subscriptionphasecreaterequest.d.ts +2 -0
  160. package/esm/models/subscriptionphasecreaterequest.d.ts.map +1 -1
  161. package/esm/models/subscriptionphasecreaterequest.js +5 -2
  162. package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
  163. package/esm/models/subscriptionresponse.d.ts +1 -0
  164. package/esm/models/subscriptionresponse.d.ts.map +1 -1
  165. package/esm/models/subscriptionresponse.js +1 -0
  166. package/esm/models/subscriptionresponse.js.map +1 -1
  167. package/esm/models/subscriptionresponsev2.d.ts +2 -0
  168. package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
  169. package/esm/models/subscriptionresponsev2.js +2 -0
  170. package/esm/models/subscriptionresponsev2.js.map +1 -1
  171. package/esm/models/subscriptionsubscriptionlineitem.d.ts +2 -0
  172. package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
  173. package/esm/models/subscriptionsubscriptionlineitem.js +2 -0
  174. package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
  175. package/esm/models/timeofdaybucket.d.ts +15 -0
  176. package/esm/models/timeofdaybucket.d.ts.map +1 -0
  177. package/esm/models/timeofdaybucket.js +17 -0
  178. package/esm/models/timeofdaybucket.js.map +1 -0
  179. package/esm/models/trialendaction.d.ts +12 -0
  180. package/esm/models/trialendaction.d.ts.map +1 -0
  181. package/esm/models/trialendaction.js +13 -0
  182. package/esm/models/trialendaction.js.map +1 -0
  183. package/esm/models/updatesubscriptionlineitemrequest.d.ts +2 -0
  184. package/esm/models/updatesubscriptionlineitemrequest.d.ts.map +1 -1
  185. package/esm/models/updatesubscriptionlineitemrequest.js +3 -0
  186. package/esm/models/updatesubscriptionlineitemrequest.js.map +1 -1
  187. package/esm/models/usageanalyticitem.d.ts +2 -0
  188. package/esm/models/usageanalyticitem.d.ts.map +1 -1
  189. package/esm/models/usageanalyticitem.js +2 -0
  190. package/esm/models/usageanalyticitem.js.map +1 -1
  191. package/esm/models/usageanalyticpoint.d.ts +2 -0
  192. package/esm/models/usageanalyticpoint.d.ts.map +1 -1
  193. package/esm/models/usageanalyticpoint.js +2 -0
  194. package/esm/models/usageanalyticpoint.js.map +1 -1
  195. package/esm/models/userresponse.d.ts +4 -0
  196. package/esm/models/userresponse.d.ts.map +1 -1
  197. package/esm/models/userresponse.js +2 -0
  198. package/esm/models/userresponse.js.map +1 -1
  199. package/esm/models/windowsize.d.ts +2 -2
  200. package/esm/models/windowsize.js +2 -2
  201. package/esm/models/windowsize.js.map +1 -1
  202. package/esm/tool-names.js +2 -2
  203. package/esm/tool-names.js.map +1 -1
  204. package/esm/tsconfig.tsbuildinfo +1 -1
  205. package/esm/types/async.d.ts.map +1 -1
  206. package/esm/types/async.js +6 -6
  207. package/esm/types/async.js.map +1 -1
  208. package/manifest.json +3 -3
  209. package/package.json +1 -1
  210. package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +1 -1
  211. package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +1 -1
  212. package/src/lib/config.ts +3 -3
  213. package/src/lib/encodings.ts +1 -1
  214. package/src/lib/primitives.ts +16 -0
  215. package/src/mcp-server/mcp-server.ts +1 -1
  216. package/src/mcp-server/server.ts +1 -1
  217. package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +1 -1
  218. package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +1 -1
  219. package/src/models/attributedtocustomerresult.ts +28 -0
  220. package/src/models/bucket.ts +12 -0
  221. package/src/models/bucketsummary.ts +40 -0
  222. package/src/models/cancelsubscriptionrequest.ts +3 -1
  223. package/src/models/changedsubscription.ts +4 -0
  224. package/src/models/commitmentbucketrequest.ts +35 -0
  225. package/src/models/coupon.ts +2 -0
  226. package/src/models/createinvoicelineitemrequest.ts +12 -0
  227. package/src/models/createsubscriptionlineitemrequest.ts +7 -0
  228. package/src/models/createsubscriptionrequest.ts +14 -2
  229. package/src/models/debugtracker.ts +6 -0
  230. package/src/models/debugtrackerstatus.ts +4 -0
  231. package/src/models/entityintegrationmappingresponse.ts +2 -0
  232. package/src/models/executesubscriptionmodifyrequest.ts +18 -0
  233. package/src/models/failurepointtype.ts +2 -0
  234. package/src/models/getusageanalyticsrequest.ts +4 -0
  235. package/src/models/inheritanceaction.ts +17 -0
  236. package/src/models/invoicebillingreason.ts +2 -0
  237. package/src/models/invoicefilter.ts +10 -0
  238. package/src/models/invoicelineitemresponse.ts +8 -0
  239. package/src/models/lineitemcommitmentconfig.ts +9 -0
  240. package/src/models/meterusageattribution.ts +18 -0
  241. package/src/models/pricefilter.ts +3 -0
  242. package/src/models/priceprice.ts +4 -0
  243. package/src/models/priceresponse.ts +4 -0
  244. package/src/models/submodifycouponaction.ts +17 -0
  245. package/src/models/submodifycouponparams.ts +46 -0
  246. package/src/models/submodifyinheritancerequest.ts +14 -1
  247. package/src/models/submodifytaxaction.ts +17 -0
  248. package/src/models/submodifytaxparams.ts +30 -0
  249. package/src/models/submodifytrialendrequest.ts +20 -0
  250. package/src/models/subscriptioncouponinput.ts +29 -0
  251. package/src/models/subscriptionlineitemresponse.ts +6 -0
  252. package/src/models/subscriptionmodifytype.ts +6 -0
  253. package/src/models/subscriptionphasecreaterequest.ts +11 -4
  254. package/src/models/subscriptionresponse.ts +4 -0
  255. package/src/models/subscriptionresponsev2.ts +8 -0
  256. package/src/models/subscriptionsubscriptionlineitem.ts +6 -0
  257. package/src/models/timeofdaybucket.ts +33 -0
  258. package/src/models/trialendaction.ts +17 -0
  259. package/src/models/updatesubscriptionlineitemrequest.ts +9 -0
  260. package/src/models/usageanalyticitem.ts +5 -0
  261. package/src/models/usageanalyticpoint.ts +6 -0
  262. package/src/models/userresponse.ts +4 -0
  263. package/src/models/windowsize.ts +2 -2
  264. package/src/tool-names.ts +2 -2
  265. package/src/types/async.ts +8 -7
  266. package/esm/lib/dlv.d.ts +0 -14
  267. package/esm/lib/dlv.d.ts.map +0 -1
  268. package/esm/lib/dlv.js +0 -46
  269. package/esm/lib/dlv.js.map +0 -1
  270. package/esm/lib/is-plain-object.d.ts +0 -2
  271. package/esm/lib/is-plain-object.d.ts.map +0 -1
  272. package/esm/lib/is-plain-object.js +0 -38
  273. package/esm/lib/is-plain-object.js.map +0 -1
  274. package/src/lib/dlv.ts +0 -53
  275. package/src/lib/is-plain-object.ts +0 -43
@@ -5,6 +5,8 @@
5
5
  import * as z from "zod";
6
6
 
7
7
  export type UsageAnalyticPoint = {
8
+ bucket_id?: string | undefined;
9
+ bucket_price_id?: string | undefined;
8
10
  computed_commitment_utilized_amount?: string | undefined;
9
11
  computed_overage_amount?: string | undefined;
10
12
  computed_true_up_amount?: string | undefined;
@@ -16,6 +18,10 @@ export type UsageAnalyticPoint = {
16
18
 
17
19
  export const UsageAnalyticPoint$zodSchema: z.ZodType<UsageAnalyticPoint> = z
18
20
  .object({
21
+ bucket_id: z.string().optional().describe(
22
+ "Bucket identity (only populated when BreakdownBucket=true and the line item\nhas CommitmentTimeBuckets). Empty strings indicate out-of-bucket windows.",
23
+ ),
24
+ bucket_price_id: z.string().optional(),
19
25
  computed_commitment_utilized_amount: z.string().optional().describe(
20
26
  "Commitment breakdown (only populated for windowed commitments)",
21
27
  ),
@@ -9,6 +9,8 @@ import { UserType, UserType$zodSchema } from "./usertype.js";
9
9
  export type UserResponse = {
10
10
  email?: string | undefined;
11
11
  id?: string | undefined;
12
+ metadata?: { [k: string]: string } | undefined;
13
+ name?: string | undefined;
12
14
  roles?: Array<string> | undefined;
13
15
  tenant?: TenantResponse | undefined;
14
16
  type?: UserType | undefined;
@@ -17,6 +19,8 @@ export type UserResponse = {
17
19
  export const UserResponse$zodSchema: z.ZodType<UserResponse> = z.object({
18
20
  email: z.string().optional().describe("Empty for service accounts"),
19
21
  id: z.string().optional(),
22
+ metadata: z.record(z.string(), z.string()).optional(),
23
+ name: z.string().optional(),
20
24
  roles: z.array(z.string()).optional(),
21
25
  tenant: TenantResponse$zodSchema.optional(),
22
26
  type: UserType$zodSchema.optional(),
@@ -6,7 +6,6 @@ import * as z from "zod";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const WindowSize = {
9
- Month: "MONTH",
10
9
  Minute: "MINUTE",
11
10
  FifteenMIN: "15MIN",
12
11
  ThirtyMIN: "30MIN",
@@ -16,11 +15,11 @@ export const WindowSize = {
16
15
  TwelveHOUR: "12HOUR",
17
16
  Day: "DAY",
18
17
  Week: "WEEK",
18
+ Month: "MONTH",
19
19
  } as const;
20
20
  export type WindowSize = ClosedEnum<typeof WindowSize>;
21
21
 
22
22
  export const WindowSize$zodSchema = z.enum([
23
- "MONTH",
24
23
  "MINUTE",
25
24
  "15MIN",
26
25
  "30MIN",
@@ -30,4 +29,5 @@ export const WindowSize$zodSchema = z.enum([
30
29
  "12HOUR",
31
30
  "DAY",
32
31
  "WEEK",
32
+ "MONTH",
33
33
  ]);
package/src/tool-names.ts CHANGED
@@ -254,11 +254,11 @@ export const toolNames: Array<{ name: string; description: string }>= [
254
254
  },
255
255
  {
256
256
  "name": "execute-subscription-modify",
257
- "description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance or quantity change)."
257
+ "description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax)."
258
258
  },
259
259
  {
260
260
  "name": "preview-subscription-modify",
261
- "description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification without committing changes."
261
+ "description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes."
262
262
  },
263
263
  {
264
264
  "name": "get-subscription-v2",
@@ -21,16 +21,17 @@ export type APICall =
21
21
 
22
22
  export class APIPromise<T> implements Promise<T> {
23
23
  readonly #promise: Promise<[T, APICall]>;
24
- readonly #unwrapped: Promise<T>;
24
+ #unwrapped: Promise<T> | null;
25
25
 
26
26
  readonly [Symbol.toStringTag] = "APIPromise";
27
27
 
28
28
  constructor(p: [T, APICall] | Promise<[T, APICall]>) {
29
29
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
30
- this.#unwrapped =
31
- p instanceof Promise
32
- ? this.#promise.then(([value]) => value)
33
- : Promise.resolve(p[0]);
30
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
31
+ }
32
+
33
+ #getUnwrapped(): Promise<T> {
34
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
34
35
  }
35
36
 
36
37
  then<TResult1 = T, TResult2 = never>(
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
55
56
  | null
56
57
  | undefined,
57
58
  ): Promise<T | TResult> {
58
- return this.#unwrapped.catch(onrejected);
59
+ return this.#getUnwrapped().catch(onrejected);
59
60
  }
60
61
 
61
62
  finally(onfinally?: (() => void) | null | undefined): Promise<T> {
62
- return this.#unwrapped.finally(onfinally);
63
+ return this.#getUnwrapped().finally(onfinally);
63
64
  }
64
65
 
65
66
  $inspect(): Promise<[T, APICall]> {
package/esm/lib/dlv.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @param obj The object to walk
3
- * @param key The key path to walk the object with
4
- * @param def A default value to return if the result is undefined
5
- *
6
- * @example
7
- * dlv(obj, "a.b.c.d")
8
- * @example
9
- * dlv(object, ["a", "b", "c", "d"])
10
- * @example
11
- * dlv(object, "foo.bar.baz", "Hello, default value!")
12
- */
13
- export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
14
- //# sourceMappingURL=dlv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
package/esm/lib/dlv.js DELETED
@@ -1,46 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- /**
27
- * @param obj The object to walk
28
- * @param key The key path to walk the object with
29
- * @param def A default value to return if the result is undefined
30
- *
31
- * @example
32
- * dlv(obj, "a.b.c.d")
33
- * @example
34
- * dlv(object, ["a", "b", "c", "d"])
35
- * @example
36
- * dlv(object, "foo.bar.baz", "Hello, default value!")
37
- */
38
- export function dlv(obj, key, def, p, undef) {
39
- key = Array.isArray(key) ? key : key.split(".");
40
- for (p = 0; p < key.length; p++) {
41
- const k = key[p];
42
- obj = k != null && obj ? obj[k] : undef;
43
- }
44
- return obj === undef ? def : obj;
45
- }
46
- //# sourceMappingURL=dlv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.js","sourceRoot":"","sources":["../../src/lib/dlv.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function isPlainObject(value: unknown): value is object;
2
- //# sourceMappingURL=is-plain-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
27
- export function isPlainObject(value) {
28
- if (typeof value !== "object" || value === null) {
29
- return false;
30
- }
31
- const prototype = Object.getPrototypeOf(value);
32
- return ((prototype === null ||
33
- prototype === Object.prototype ||
34
- Object.getPrototypeOf(prototype) === null) &&
35
- !(Symbol.toStringTag in value) &&
36
- !(Symbol.iterator in value));
37
- }
38
- //# sourceMappingURL=is-plain-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
package/src/lib/dlv.ts DELETED
@@ -1,53 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- /*
6
- MIT License
7
-
8
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy of
11
- this software and associated documentation files (the "Software"), to deal in
12
- the Software without restriction, including without limitation the rights to
13
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
- the Software, and to permit persons to whom the Software is furnished to do so,
15
- subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
- */
27
-
28
- /**
29
- * @param obj The object to walk
30
- * @param key The key path to walk the object with
31
- * @param def A default value to return if the result is undefined
32
- *
33
- * @example
34
- * dlv(obj, "a.b.c.d")
35
- * @example
36
- * dlv(object, ["a", "b", "c", "d"])
37
- * @example
38
- * dlv(object, "foo.bar.baz", "Hello, default value!")
39
- */
40
- export function dlv<T = any>(
41
- obj: any,
42
- key: string | string[],
43
- def?: T,
44
- p?: number,
45
- undef?: never,
46
- ): T | undefined {
47
- key = Array.isArray(key) ? key : key.split(".");
48
- for (p = 0; p < key.length; p++) {
49
- const k = key[p];
50
- obj = k != null && obj ? obj[k] : undef;
51
- }
52
- return obj === undef ? def : obj;
53
- }
@@ -1,43 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- /*
6
- MIT License
7
-
8
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy of
11
- this software and associated documentation files (the "Software"), to deal in
12
- the Software without restriction, including without limitation the rights to
13
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
- the Software, and to permit persons to whom the Software is furnished to do so,
15
- subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
- */
27
-
28
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
29
-
30
- export function isPlainObject(value: unknown): value is object {
31
- if (typeof value !== "object" || value === null) {
32
- return false;
33
- }
34
-
35
- const prototype = Object.getPrototypeOf(value);
36
- return (
37
- (prototype === null ||
38
- prototype === Object.prototype ||
39
- Object.getPrototypeOf(prototype) === null) &&
40
- !(Symbol.toStringTag in value) &&
41
- !(Symbol.iterator in value)
42
- );
43
- }