@linqapp/sdk 0.23.0 → 0.24.1

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 (146) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/request-options.d.mts.map +1 -1
  38. package/internal/request-options.d.ts.map +1 -1
  39. package/internal/shims.d.mts +6 -0
  40. package/internal/shims.d.mts.map +1 -1
  41. package/internal/shims.d.ts +6 -0
  42. package/internal/shims.d.ts.map +1 -1
  43. package/internal/to-file.d.mts.map +1 -1
  44. package/internal/to-file.d.ts.map +1 -1
  45. package/internal/to-file.mjs.map +1 -1
  46. package/internal/types.d.mts +4 -4
  47. package/internal/types.d.mts.map +1 -1
  48. package/internal/types.d.ts +4 -4
  49. package/internal/types.d.ts.map +1 -1
  50. package/internal/uploads.d.mts.map +1 -1
  51. package/internal/uploads.d.ts.map +1 -1
  52. package/internal/uploads.mjs.map +1 -1
  53. package/internal/utils/base64.mjs.map +1 -1
  54. package/internal/utils/log.d.mts.map +1 -1
  55. package/internal/utils/log.d.ts.map +1 -1
  56. package/internal/utils/log.mjs.map +1 -1
  57. package/internal/utils/path.mjs.map +1 -1
  58. package/internal/utils/query.mjs.map +1 -1
  59. package/internal/utils/values.mjs.map +1 -1
  60. package/internal/utils.d.mts.map +1 -1
  61. package/internal/utils.d.ts.map +1 -1
  62. package/internal/utils.mjs.map +1 -1
  63. package/package.json +1 -1
  64. package/pagination.d.mts +1 -0
  65. package/pagination.d.mts.map +1 -1
  66. package/pagination.d.ts +1 -0
  67. package/pagination.d.ts.map +1 -1
  68. package/pagination.mjs +1 -0
  69. package/pagination.mjs.map +1 -1
  70. package/resource.d.mts +1 -0
  71. package/resource.d.mts.map +1 -1
  72. package/resource.d.ts +1 -0
  73. package/resource.d.ts.map +1 -1
  74. package/resource.mjs +1 -0
  75. package/resource.mjs.map +1 -1
  76. package/resources/attachments.d.mts.map +1 -1
  77. package/resources/attachments.d.ts.map +1 -1
  78. package/resources/attachments.mjs.map +1 -1
  79. package/resources/capability.d.mts.map +1 -1
  80. package/resources/capability.d.ts.map +1 -1
  81. package/resources/capability.mjs.map +1 -1
  82. package/resources/chats/chats.d.mts +10 -10
  83. package/resources/chats/chats.d.mts.map +1 -1
  84. package/resources/chats/chats.d.ts +10 -10
  85. package/resources/chats/chats.d.ts.map +1 -1
  86. package/resources/chats/chats.mjs.map +1 -1
  87. package/resources/chats/index.d.mts.map +1 -1
  88. package/resources/chats/index.d.ts.map +1 -1
  89. package/resources/chats/index.mjs.map +1 -1
  90. package/resources/chats/messages.d.mts.map +1 -1
  91. package/resources/chats/messages.d.ts.map +1 -1
  92. package/resources/chats/messages.mjs.map +1 -1
  93. package/resources/chats/participants.d.mts.map +1 -1
  94. package/resources/chats/participants.d.ts.map +1 -1
  95. package/resources/chats/participants.mjs.map +1 -1
  96. package/resources/chats/typing.d.mts.map +1 -1
  97. package/resources/chats/typing.d.ts.map +1 -1
  98. package/resources/chats/typing.mjs.map +1 -1
  99. package/resources/chats.d.mts.map +1 -1
  100. package/resources/chats.d.ts.map +1 -1
  101. package/resources/chats.mjs.map +1 -1
  102. package/resources/contact-card.d.mts.map +1 -1
  103. package/resources/contact-card.d.ts.map +1 -1
  104. package/resources/contact-card.mjs.map +1 -1
  105. package/resources/index.d.mts.map +1 -1
  106. package/resources/index.d.ts.map +1 -1
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/messages.d.mts.map +1 -1
  109. package/resources/messages.d.ts.map +1 -1
  110. package/resources/messages.mjs.map +1 -1
  111. package/resources/phone-numbers.d.mts +43 -0
  112. package/resources/phone-numbers.d.mts.map +1 -1
  113. package/resources/phone-numbers.d.ts +43 -0
  114. package/resources/phone-numbers.d.ts.map +1 -1
  115. package/resources/phone-numbers.mjs.map +1 -1
  116. package/resources/phonenumbers.d.mts.map +1 -1
  117. package/resources/phonenumbers.d.ts.map +1 -1
  118. package/resources/phonenumbers.mjs.map +1 -1
  119. package/resources/webhook-events.d.mts.map +1 -1
  120. package/resources/webhook-events.d.ts.map +1 -1
  121. package/resources/webhook-events.mjs.map +1 -1
  122. package/resources/webhook-subscriptions.d.mts.map +1 -1
  123. package/resources/webhook-subscriptions.d.ts.map +1 -1
  124. package/resources/webhook-subscriptions.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +23 -15
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +23 -15
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/webhooks.mjs.map +1 -1
  130. package/resources.d.mts.map +1 -1
  131. package/resources.d.ts.map +1 -1
  132. package/resources.mjs.map +1 -1
  133. package/src/resources/chats/chats.ts +10 -10
  134. package/src/resources/phone-numbers.ts +46 -0
  135. package/src/resources/webhooks.ts +25 -15
  136. package/src/version.ts +1 -1
  137. package/uploads.d.mts +1 -0
  138. package/uploads.d.mts.map +1 -1
  139. package/uploads.d.ts +1 -0
  140. package/uploads.d.ts.map +1 -1
  141. package/uploads.mjs +1 -0
  142. package/uploads.mjs.map +1 -1
  143. package/version.d.mts +1 -1
  144. package/version.d.ts +1 -1
  145. package/version.js +1 -1
  146. package/version.mjs +1 -1
@@ -109,9 +109,9 @@ export namespace MessageEventV2 {
109
109
  id: string;
110
110
 
111
111
  /**
112
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
112
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
113
113
  * and may shift based on engagement and delivery signals on the conversation. Many
114
- * `at_risk` or `critical` chats on a single line increase the risk of line
114
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
115
115
  * flagging.
116
116
  *
117
117
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -136,9 +136,9 @@ export namespace MessageEventV2 {
136
136
 
137
137
  export namespace Chat {
138
138
  /**
139
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
139
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
140
140
  * and may shift based on engagement and delivery signals on the conversation. Many
141
- * `at_risk` or `critical` chats on a single line increase the risk of line
141
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
142
142
  * flagging.
143
143
  *
144
144
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -159,7 +159,7 @@ export namespace MessageEventV2 {
159
159
  * [Chat Health guide](/guides/chats/chat-health) for what each value means and how
160
160
  * to react. `doc_url` deep-links to the relevant section.
161
161
  */
162
- status: 'healthy' | 'at_risk' | 'critical' | 'opted_out';
162
+ status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
163
163
 
164
164
  /**
165
165
  * When this status last changed.
@@ -924,9 +924,9 @@ export namespace MessageEditedWebhookEvent {
924
924
  id: string;
925
925
 
926
926
  /**
927
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
927
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
928
928
  * and may shift based on engagement and delivery signals on the conversation. Many
929
- * `at_risk` or `critical` chats on a single line increase the risk of line
929
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
930
930
  * flagging.
931
931
  *
932
932
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -951,9 +951,9 @@ export namespace MessageEditedWebhookEvent {
951
951
 
952
952
  export namespace Chat {
953
953
  /**
954
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
954
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
955
955
  * and may shift based on engagement and delivery signals on the conversation. Many
956
- * `at_risk` or `critical` chats on a single line increase the risk of line
956
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
957
957
  * flagging.
958
958
  *
959
959
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -974,7 +974,7 @@ export namespace MessageEditedWebhookEvent {
974
974
  * [Chat Health guide](/guides/chats/chat-health) for what each value means and how
975
975
  * to react. `doc_url` deep-links to the relevant section.
976
976
  */
977
- status: 'healthy' | 'at_risk' | 'critical' | 'opted_out';
977
+ status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
978
978
 
979
979
  /**
980
980
  * When this status last changed.
@@ -1341,9 +1341,9 @@ export namespace ChatCreatedWebhookEvent {
1341
1341
  handles: Array<Shared.ChatHandle>;
1342
1342
 
1343
1343
  /**
1344
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
1344
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
1345
1345
  * and may shift based on engagement and delivery signals on the conversation. Many
1346
- * `at_risk` or `critical` chats on a single line increase the risk of line
1346
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
1347
1347
  * flagging.
1348
1348
  *
1349
1349
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -1373,9 +1373,9 @@ export namespace ChatCreatedWebhookEvent {
1373
1373
 
1374
1374
  export namespace Data {
1375
1375
  /**
1376
- * **[BETA]** Current health for a chat. Always present — chats start at `healthy`
1376
+ * **[BETA]** Current health for a chat. Always present — chats start at `HEALTHY`
1377
1377
  * and may shift based on engagement and delivery signals on the conversation. Many
1378
- * `at_risk` or `critical` chats on a single line increase the risk of line
1378
+ * `AT_RISK` or `CRITICAL` chats on a single line increase the risk of line
1379
1379
  * flagging.
1380
1380
  *
1381
1381
  * Switch on `status` to gate sends or surface line health in your UI — the enum is
@@ -1396,7 +1396,7 @@ export namespace ChatCreatedWebhookEvent {
1396
1396
  * [Chat Health guide](/guides/chats/chat-health) for what each value means and how
1397
1397
  * to react. `doc_url` deep-links to the relevant section.
1398
1398
  */
1399
- status: 'healthy' | 'at_risk' | 'critical' | 'opted_out';
1399
+ status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL' | 'OPTED_OUT';
1400
1400
 
1401
1401
  /**
1402
1402
  * When this status last changed.
@@ -1934,6 +1934,11 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
1934
1934
  */
1935
1935
  changed_at: string;
1936
1936
 
1937
+ /**
1938
+ * The new line health status
1939
+ */
1940
+ new_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
1941
+
1937
1942
  /**
1938
1943
  * The new service status
1939
1944
  */
@@ -1944,6 +1949,11 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
1944
1949
  */
1945
1950
  phone_number: string;
1946
1951
 
1952
+ /**
1953
+ * The previous line health status
1954
+ */
1955
+ previous_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
1956
+
1947
1957
  /**
1948
1958
  * The previous service status
1949
1959
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.24.1'; // x-release-please-version
package/uploads.d.mts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.d.mts.map
package/uploads.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/uploads.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.js";
2
3
  //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
package/uploads.mjs CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.mjs.map
package/uploads.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.23.0";
1
+ export declare const VERSION = "0.24.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.23.0";
1
+ export declare const VERSION = "0.24.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.23.0'; // x-release-please-version
4
+ exports.VERSION = '0.24.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.24.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map