@instabrain-sdks/api-client 2.4.0 → 2.6.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 (34) hide show
  1. package/LICENSE.md +31 -0
  2. package/README.md +820 -81
  3. package/dist/client/instabrain-client.d.ts +170 -9
  4. package/dist/client/instabrain-client.js +189 -8
  5. package/dist/services/application.service.d.ts +29 -2
  6. package/dist/services/application.service.js +29 -2
  7. package/dist/services/finalexpense.service.d.ts +23 -5
  8. package/dist/services/finalexpense.service.js +23 -5
  9. package/dist/services/gigdb.service.d.ts +25 -3
  10. package/dist/services/gigdb.service.js +25 -3
  11. package/dist/services/payment.service.d.ts +94 -0
  12. package/dist/services/payment.service.js +161 -0
  13. package/dist/services/pivot.service.d.ts +104 -0
  14. package/dist/services/pivot.service.js +116 -0
  15. package/dist/services/pureterm.service.d.ts +96 -10
  16. package/dist/services/pureterm.service.js +100 -8
  17. package/dist/services/secure-sign.service.d.ts +19 -3
  18. package/dist/services/secure-sign.service.js +19 -3
  19. package/dist/types/enums.d.ts +112 -3
  20. package/dist/types/enums.js +134 -4
  21. package/dist/types/errors.js +31 -2
  22. package/dist/types/gigdb.types.d.ts +32 -0
  23. package/dist/types/ibterm.types.d.ts +5 -2
  24. package/dist/types/index.d.ts +2 -0
  25. package/dist/types/index.js +2 -0
  26. package/dist/types/payment.types.d.ts +52 -0
  27. package/dist/types/payment.types.js +3 -0
  28. package/dist/types/pivot.types.d.ts +122 -0
  29. package/dist/types/pivot.types.js +2 -0
  30. package/dist/types/pureterm.types.d.ts +186 -31
  31. package/dist/utils/error-utils.d.ts +9 -1
  32. package/dist/utils/error-utils.js +18 -3
  33. package/dist/utils/http-client.js +11 -2
  34. package/package.json +9 -4
package/LICENSE.md ADDED
@@ -0,0 +1,31 @@
1
+ # InstaBrain SDK - Proprietary Software License
2
+
3
+ Copyright (c) 2026 InstaBrain, Inc. All rights reserved.
4
+ 15169 N Scottsdale Rd, Suite 205, Scottsdale, AZ 85254
5
+
6
+ This software and associated documentation files (the "SDK") are proprietary to InstaBrain, Inc. ("InstaBrain"). The SDK files and documentation that InstaBrain publishes publicly are not confidential merely because they are proprietary, and public availability does not make the SDK open-source software or waive InstaBrain's intellectual-property rights. Use is permitted only under a valid written commercial or partner integration agreement with InstaBrain (the "Agreement") or the evaluation grant below, and only in accordance with this License. If this License and the Agreement conflict, the Agreement controls.
7
+
8
+ 0. Acceptance and Covered Versions. THIS LICENSE IS A LEGAL AGREEMENT. By downloading, installing, copying, accessing, or using the SDK after receiving notice of this License, the person doing so, and any entity on whose behalf that person acts, agrees to this License. That person represents that the person has authority to bind that entity. If these terms are not accepted, the SDK must not be downloaded, installed, copied, accessed, or used. "Licensee" means that person and, where applicable, that entity. "SDK" means only a version of the SDK distributed with this License. This License does not grant rights to any earlier version distributed without this License unless an Agreement expressly provides otherwise.
9
+
10
+ 1. License Grant
11
+ 1.1 Evaluation. Absent an Agreement, InstaBrain grants Licensee a limited, non-exclusive, non-transferable, non-sublicensable license to install and use the SDK in a non-production environment solely to evaluate integration with InstaBrain's authorized APIs during one evaluation period of ninety (90) consecutive days (the "Evaluation Period"). The Evaluation Period begins on the first date Licensee or any person acting on Licensee's behalf downloads, installs, accesses, or uses any version of the SDK distributed with this License. Downloading, installing, accessing, or using another copy or version does not restart or extend the Evaluation Period. InstaBrain may extend the Evaluation Period in writing. Evaluation excludes production, commercial, and end-user-facing use, and all evaluation rights automatically expire at the end of the Evaluation Period.
12
+ 1.2 Production. Subject to compliance with the Agreement and this License, InstaBrain grants a limited, non-exclusive, non-transferable, non-sublicensable license to install and use the SDK to develop and operate Licensee's own applications that integrate with InstaBrain's authorized APIs, for the term of the Agreement. Production/commercial/end-user-facing use requires an executed Agreement.
13
+ 1.3 Permitted users. Licensee's employees, contractors, affiliates, and service providers acting on Licensee's behalf and bound by at-least-as-protective obligations may use the SDK for Licensee's permitted purposes and are not prohibited sublicensees.
14
+
15
+ 2. Restrictions. Except as the Agreement permits, Licensee shall not: (a) redistribute, resell, sublicense, lease, or make the SDK available to a third party as a standalone product (integrating the SDK into Licensee's own delivered application is permitted); (b) reverse engineer non-source components except where law permits or for third-party OSS under Section 3; (c) modify or create derivative works of the SDK except to the limited extent reasonably necessary to integrate the SDK with InstaBrain's authorized APIs, provided that every permitted modification remains subject to this License and does not grant Licensee any rights in the InstaBrain-authored portions beyond those expressly stated here; (d) remove proprietary notices; (e) use Agreement Confidential Information, as defined in Section 5, to develop or improve a product or service that competes with the InstaBrain product or service to which that information relates, except as expressly permitted by the Agreement; or (f) use the SDK unlawfully or contrary to the Agreement.
16
+
17
+ 3. Third-Party Open-Source Components. The SDK may include or depend on third-party open-source components, licensed under their own terms (identified in source/manifest/notices); nothing here limits or supersedes Licensee's rights or obligations under those licenses. This License applies only to the InstaBrain-authored portions.
18
+
19
+ 4. Ownership. The InstaBrain-authored portions are licensed, not sold; InstaBrain retains all right, title, and interest, including IP rights. No rights granted except as stated.
20
+
21
+ 5. Confidentiality. The SDK files and documentation published by InstaBrain through npm or otherwise made publicly available by InstaBrain are not Confidential Information under this License. Non-public materials or information that InstaBrain discloses to Licensee under or in connection with an Agreement, including non-public credentials, technical materials, security information, specifications, and documentation, are "Agreement Confidential Information." Licensee shall use Agreement Confidential Information solely to exercise its rights and perform its obligations under the Agreement, protect it using at least reasonable care, and disclose it only to the persons permitted under Section 1.3 who are bound by confidentiality obligations at least as protective as those applicable to Licensee. Agreement Confidential Information excludes information that Licensee can document: (a) is publicly available through no breach of an obligation; (b) was previously known to Licensee without restriction; (c) was independently developed without use of Agreement Confidential Information; or (d) was rightfully received from a third party without a confidentiality duty. Legally compelled disclosure is permitted if Licensee provides reasonable prior notice to InstaBrain where legally allowed and reasonably cooperates in seeking protective treatment. The Agreement's confidentiality provisions control in the event of any conflict.
22
+
23
+ 6. Term and Termination. The evaluation license under Section 1.1 automatically expires at the end of the Evaluation Period and terminates earlier upon Licensee's material breach of this License. A license under Section 1.2 terminates upon expiration or termination of the Agreement or as otherwise provided in the Agreement. If the Agreement does not address termination for breach, InstaBrain may terminate the license under Section 1.2 by written notice if Licensee fails to cure a material breach within ten (10) days after receiving notice. Upon expiration or termination, Licensee shall cease use of the SDK and, within a reasonable period, delete or destroy its copies, except for archival, backup, or legally required copies retained subject to continuing confidentiality and use restrictions. Deployed applications are handled as provided in the Agreement. Sections 3, 4, 5, 7, 8, and 9 survive expiration or termination.
24
+
25
+ 7. Disclaimer of Warranty. THE SDK IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND (MERCHANTABILITY, FITNESS, TITLE, NON-INFRINGEMENT). Agreement warranty terms, if any, control.
26
+
27
+ 8. Limitation of Liability. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL INSTABRAIN BE LIABLE ARISING OUT OF OR RELATING TO THE SDK OR THIS LICENSE FOR: (A) ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES; (B) ANY LOSS OF PROFITS, REVENUE, DATA, BUSINESS OPPORTUNITY, OR GOODWILL; OR (C) AGGREGATE LIABILITY EXCEEDING THE GREATER OF ONE HUNDRED U.S. DOLLARS (US $100) OR THE AMOUNT LICENSEE PAID INSTABRAIN FOR THE SDK DURING THE TWELVE (12) MONTHS PRECEDING THE EVENT GIVING RISE TO LIABILITY. THESE LIMITATIONS APPLY REGARDLESS OF THE THEORY OF LIABILITY AND EVEN IF INSTABRAIN WAS ADVISED OF THE POSSIBILITY OF THE DAMAGES. If an Agreement applies, its limitation-of-liability terms control in the event of conflict.
28
+
29
+ 9. Governing Law. State of Arizona, USA, without regard to conflict-of-laws. The Agreement controls on conflict.
30
+
31
+ 10. Contact. InstaBrain, Inc. - legal@instabrain.io