featurebase-node 0.15.1 → 0.15.3

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 (173) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +18 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +18 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/away-reasons.d.mts +37 -0
  12. package/resources/away-reasons.d.mts.map +1 -0
  13. package/resources/away-reasons.d.ts +37 -0
  14. package/resources/away-reasons.d.ts.map +1 -0
  15. package/resources/away-reasons.js +31 -0
  16. package/resources/away-reasons.js.map +1 -0
  17. package/resources/away-reasons.mjs +27 -0
  18. package/resources/away-reasons.mjs.map +1 -0
  19. package/resources/changelogs/changelogs.d.mts +1166 -6
  20. package/resources/changelogs/changelogs.d.mts.map +1 -1
  21. package/resources/changelogs/changelogs.d.ts +1166 -6
  22. package/resources/changelogs/changelogs.d.ts.map +1 -1
  23. package/resources/changelogs/changelogs.js +53 -3
  24. package/resources/changelogs/changelogs.js.map +1 -1
  25. package/resources/changelogs/changelogs.mjs +53 -3
  26. package/resources/changelogs/changelogs.mjs.map +1 -1
  27. package/resources/changelogs/index.d.mts +1 -1
  28. package/resources/changelogs/index.d.mts.map +1 -1
  29. package/resources/changelogs/index.d.ts +1 -1
  30. package/resources/changelogs/index.d.ts.map +1 -1
  31. package/resources/changelogs/index.js.map +1 -1
  32. package/resources/changelogs/index.mjs.map +1 -1
  33. package/resources/feedback/comments.d.mts +4 -2
  34. package/resources/feedback/comments.d.mts.map +1 -1
  35. package/resources/feedback/comments.d.ts +4 -2
  36. package/resources/feedback/comments.d.ts.map +1 -1
  37. package/resources/feedback/custom-fields.d.mts +12 -0
  38. package/resources/feedback/custom-fields.d.mts.map +1 -1
  39. package/resources/feedback/custom-fields.d.ts +12 -0
  40. package/resources/feedback/custom-fields.d.ts.map +1 -1
  41. package/resources/feedback/feedback.d.mts +2 -2
  42. package/resources/feedback/feedback.d.mts.map +1 -1
  43. package/resources/feedback/feedback.d.ts +2 -2
  44. package/resources/feedback/feedback.d.ts.map +1 -1
  45. package/resources/feedback/feedback.js.map +1 -1
  46. package/resources/feedback/feedback.mjs.map +1 -1
  47. package/resources/feedback/index.d.mts +1 -1
  48. package/resources/feedback/index.d.mts.map +1 -1
  49. package/resources/feedback/index.d.ts +1 -1
  50. package/resources/feedback/index.d.ts.map +1 -1
  51. package/resources/feedback/index.js.map +1 -1
  52. package/resources/feedback/index.mjs.map +1 -1
  53. package/resources/feedback/posts/index.d.mts +2 -1
  54. package/resources/feedback/posts/index.d.mts.map +1 -1
  55. package/resources/feedback/posts/index.d.ts +2 -1
  56. package/resources/feedback/posts/index.d.ts.map +1 -1
  57. package/resources/feedback/posts/index.js +3 -1
  58. package/resources/feedback/posts/index.js.map +1 -1
  59. package/resources/feedback/posts/index.mjs +1 -0
  60. package/resources/feedback/posts/index.mjs.map +1 -1
  61. package/resources/feedback/posts/insights.d.mts +254 -0
  62. package/resources/feedback/posts/insights.d.mts.map +1 -0
  63. package/resources/feedback/posts/insights.d.ts +254 -0
  64. package/resources/feedback/posts/insights.d.ts.map +1 -0
  65. package/resources/feedback/posts/insights.js +269 -0
  66. package/resources/feedback/posts/insights.js.map +1 -0
  67. package/resources/feedback/posts/insights.mjs +265 -0
  68. package/resources/feedback/posts/insights.mjs.map +1 -0
  69. package/resources/feedback/posts/posts.d.mts +610 -21
  70. package/resources/feedback/posts/posts.d.mts.map +1 -1
  71. package/resources/feedback/posts/posts.d.ts +610 -21
  72. package/resources/feedback/posts/posts.d.ts.map +1 -1
  73. package/resources/feedback/posts/posts.js +199 -7
  74. package/resources/feedback/posts/posts.js.map +1 -1
  75. package/resources/feedback/posts/posts.mjs +199 -7
  76. package/resources/feedback/posts/posts.mjs.map +1 -1
  77. package/resources/index.d.mts +5 -3
  78. package/resources/index.d.mts.map +1 -1
  79. package/resources/index.d.ts +5 -3
  80. package/resources/index.d.ts.map +1 -1
  81. package/resources/index.js +5 -1
  82. package/resources/index.js.map +1 -1
  83. package/resources/index.mjs +2 -0
  84. package/resources/index.mjs.map +1 -1
  85. package/resources/organization/admins.d.mts +151 -4
  86. package/resources/organization/admins.d.mts.map +1 -1
  87. package/resources/organization/admins.d.ts +151 -4
  88. package/resources/organization/admins.d.ts.map +1 -1
  89. package/resources/organization/admins.js +58 -3
  90. package/resources/organization/admins.js.map +1 -1
  91. package/resources/organization/admins.mjs +58 -3
  92. package/resources/organization/admins.mjs.map +1 -1
  93. package/resources/organization/index.d.mts +2 -2
  94. package/resources/organization/index.d.mts.map +1 -1
  95. package/resources/organization/index.d.ts +2 -2
  96. package/resources/organization/index.d.ts.map +1 -1
  97. package/resources/organization/index.js.map +1 -1
  98. package/resources/organization/index.mjs.map +1 -1
  99. package/resources/organization/organization.d.mts +4 -4
  100. package/resources/organization/organization.d.mts.map +1 -1
  101. package/resources/organization/organization.d.ts +4 -4
  102. package/resources/organization/organization.d.ts.map +1 -1
  103. package/resources/organization/organization.js.map +1 -1
  104. package/resources/organization/organization.mjs +1 -1
  105. package/resources/organization/organization.mjs.map +1 -1
  106. package/resources/organization/teams.d.mts +34 -4
  107. package/resources/organization/teams.d.mts.map +1 -1
  108. package/resources/organization/teams.d.ts +34 -4
  109. package/resources/organization/teams.d.ts.map +1 -1
  110. package/resources/organization/teams.js +18 -3
  111. package/resources/organization/teams.js.map +1 -1
  112. package/resources/organization/teams.mjs +18 -3
  113. package/resources/organization/teams.mjs.map +1 -1
  114. package/resources/reports.d.mts +45 -1
  115. package/resources/reports.d.mts.map +1 -1
  116. package/resources/reports.d.ts +45 -1
  117. package/resources/reports.d.ts.map +1 -1
  118. package/resources/reports.js +35 -0
  119. package/resources/reports.js.map +1 -1
  120. package/resources/reports.mjs +35 -0
  121. package/resources/reports.mjs.map +1 -1
  122. package/resources/support/tickets/tickets.d.mts +9 -5
  123. package/resources/support/tickets/tickets.d.mts.map +1 -1
  124. package/resources/support/tickets/tickets.d.ts +9 -5
  125. package/resources/support/tickets/tickets.d.ts.map +1 -1
  126. package/resources/support/tickets/tickets.js.map +1 -1
  127. package/resources/support/tickets/tickets.mjs.map +1 -1
  128. package/resources/training-data/index.d.mts +1 -1
  129. package/resources/training-data/index.d.mts.map +1 -1
  130. package/resources/training-data/index.d.ts +1 -1
  131. package/resources/training-data/index.d.ts.map +1 -1
  132. package/resources/training-data/index.js.map +1 -1
  133. package/resources/training-data/index.mjs.map +1 -1
  134. package/resources/training-data/training-data.d.mts +66 -161
  135. package/resources/training-data/training-data.d.mts.map +1 -1
  136. package/resources/training-data/training-data.d.ts +66 -161
  137. package/resources/training-data/training-data.d.ts.map +1 -1
  138. package/resources/training-data/training-data.js.map +1 -1
  139. package/resources/training-data/training-data.mjs.map +1 -1
  140. package/resources/workload.d.mts +103 -0
  141. package/resources/workload.d.mts.map +1 -0
  142. package/resources/workload.d.ts +103 -0
  143. package/resources/workload.d.ts.map +1 -0
  144. package/resources/workload.js +32 -0
  145. package/resources/workload.js.map +1 -0
  146. package/resources/workload.mjs +28 -0
  147. package/resources/workload.mjs.map +1 -0
  148. package/src/client.ts +36 -0
  149. package/src/resources/away-reasons.ts +68 -0
  150. package/src/resources/changelogs/changelogs.ts +2003 -51
  151. package/src/resources/changelogs/index.ts +1 -0
  152. package/src/resources/feedback/comments.ts +4 -2
  153. package/src/resources/feedback/custom-fields.ts +15 -0
  154. package/src/resources/feedback/feedback.ts +4 -0
  155. package/src/resources/feedback/index.ts +2 -0
  156. package/src/resources/feedback/posts/index.ts +9 -0
  157. package/src/resources/feedback/posts/insights.ts +340 -0
  158. package/src/resources/feedback/posts/posts.ts +714 -20
  159. package/src/resources/index.ts +10 -0
  160. package/src/resources/organization/admins.ts +254 -3
  161. package/src/resources/organization/index.ts +8 -0
  162. package/src/resources/organization/organization.ts +23 -1
  163. package/src/resources/organization/teams.ts +69 -3
  164. package/src/resources/reports.ts +70 -0
  165. package/src/resources/support/tickets/tickets.ts +9 -5
  166. package/src/resources/training-data/index.ts +1 -0
  167. package/src/resources/training-data/training-data.ts +77 -193
  168. package/src/resources/workload.ts +179 -0
  169. package/src/version.ts +1 -1
  170. package/version.d.mts +1 -1
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
  173. package/version.mjs +1 -1
@@ -0,0 +1,103 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as AdminsAPI from "./organization/admins.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ /**
6
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
7
+ */
8
+ export declare class Workload extends APIResource {
9
+ /**
10
+ * Returns live workspace, team, and admin workload. Admin rows use cursor
11
+ * pagination. teamId and adminId filter admin and team rows. The summary stays
12
+ * workspace-wide. The snapshot is cached for five seconds.
13
+ */
14
+ list(params?: WorkloadListParams | null | undefined, options?: RequestOptions): APIPromise<WorkloadListResponse>;
15
+ }
16
+ export interface WorkloadListResponse {
17
+ admins: WorkloadListResponse.Admins;
18
+ generatedAt: string;
19
+ object: 'workload';
20
+ summary: WorkloadListResponse.Summary;
21
+ teams: Array<WorkloadListResponse.Team>;
22
+ }
23
+ export declare namespace WorkloadListResponse {
24
+ interface Admins {
25
+ data: Array<Admins.Data>;
26
+ nextCursor: string | null;
27
+ object: 'list';
28
+ }
29
+ namespace Admins {
30
+ interface Data {
31
+ adminId: string;
32
+ assignmentLimit: AdminsAPI.AssignmentLimit;
33
+ atCapacity: boolean;
34
+ availability: AdminsAPI.AdminAvailability;
35
+ idleCount: number;
36
+ inboxes: Array<Data.Inbox>;
37
+ object: 'workload_admin';
38
+ openCount: number;
39
+ snoozedCount: number;
40
+ waitingCount: number;
41
+ }
42
+ namespace Data {
43
+ interface Inbox {
44
+ assignmentLimit: number | null;
45
+ atCapacity: boolean;
46
+ idleCount: number;
47
+ openCount: number;
48
+ snoozedCount: number;
49
+ teamId: string;
50
+ waitingCount: number;
51
+ }
52
+ }
53
+ }
54
+ interface Summary {
55
+ avgWaitMs: number | null;
56
+ awayReasonBreakdown: Array<Summary.AwayReasonBreakdown>;
57
+ closedToday: number;
58
+ idleConversations: number;
59
+ idleThresholdMinutes: number;
60
+ longestWaitingMs: number | null;
61
+ openConversations: number;
62
+ snoozedConversations: number;
63
+ unassignedConversations: number;
64
+ waitingConversations: number;
65
+ waitingFirstReplyConversations: number;
66
+ }
67
+ namespace Summary {
68
+ interface AwayReasonBreakdown {
69
+ count: number;
70
+ reason: string;
71
+ }
72
+ }
73
+ interface Team {
74
+ assignedCount: number;
75
+ assignmentLimit: number | null;
76
+ atCapacityCount: number;
77
+ avgWaitMs: number | null;
78
+ awayCount: number;
79
+ closedToday: number;
80
+ idleCount: number;
81
+ longestWaitingMs: number | null;
82
+ memberCount: number;
83
+ name: string;
84
+ object: 'workload_team';
85
+ openCount: number;
86
+ queuedCount: number;
87
+ snoozedCount: number;
88
+ teamId: string;
89
+ waitingCount: number;
90
+ waitingFirstReplyCount: number;
91
+ }
92
+ }
93
+ export interface WorkloadListParams {
94
+ /**
95
+ * API version for this request. Defaults to your organization's configured API
96
+ * version if not specified.
97
+ */
98
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
99
+ }
100
+ export declare namespace Workload {
101
+ export { type WorkloadListResponse as WorkloadListResponse, type WorkloadListParams as WorkloadListParams };
102
+ }
103
+ //# sourceMappingURL=workload.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload.d.mts","sourceRoot":"","sources":["../src/resources/workload.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,SAAS,kCAA8B;AACnD,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,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F;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;CACtF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -0,0 +1,103 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as AdminsAPI from "./organization/admins.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ /**
6
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
7
+ */
8
+ export declare class Workload extends APIResource {
9
+ /**
10
+ * Returns live workspace, team, and admin workload. Admin rows use cursor
11
+ * pagination. teamId and adminId filter admin and team rows. The summary stays
12
+ * workspace-wide. The snapshot is cached for five seconds.
13
+ */
14
+ list(params?: WorkloadListParams | null | undefined, options?: RequestOptions): APIPromise<WorkloadListResponse>;
15
+ }
16
+ export interface WorkloadListResponse {
17
+ admins: WorkloadListResponse.Admins;
18
+ generatedAt: string;
19
+ object: 'workload';
20
+ summary: WorkloadListResponse.Summary;
21
+ teams: Array<WorkloadListResponse.Team>;
22
+ }
23
+ export declare namespace WorkloadListResponse {
24
+ interface Admins {
25
+ data: Array<Admins.Data>;
26
+ nextCursor: string | null;
27
+ object: 'list';
28
+ }
29
+ namespace Admins {
30
+ interface Data {
31
+ adminId: string;
32
+ assignmentLimit: AdminsAPI.AssignmentLimit;
33
+ atCapacity: boolean;
34
+ availability: AdminsAPI.AdminAvailability;
35
+ idleCount: number;
36
+ inboxes: Array<Data.Inbox>;
37
+ object: 'workload_admin';
38
+ openCount: number;
39
+ snoozedCount: number;
40
+ waitingCount: number;
41
+ }
42
+ namespace Data {
43
+ interface Inbox {
44
+ assignmentLimit: number | null;
45
+ atCapacity: boolean;
46
+ idleCount: number;
47
+ openCount: number;
48
+ snoozedCount: number;
49
+ teamId: string;
50
+ waitingCount: number;
51
+ }
52
+ }
53
+ }
54
+ interface Summary {
55
+ avgWaitMs: number | null;
56
+ awayReasonBreakdown: Array<Summary.AwayReasonBreakdown>;
57
+ closedToday: number;
58
+ idleConversations: number;
59
+ idleThresholdMinutes: number;
60
+ longestWaitingMs: number | null;
61
+ openConversations: number;
62
+ snoozedConversations: number;
63
+ unassignedConversations: number;
64
+ waitingConversations: number;
65
+ waitingFirstReplyConversations: number;
66
+ }
67
+ namespace Summary {
68
+ interface AwayReasonBreakdown {
69
+ count: number;
70
+ reason: string;
71
+ }
72
+ }
73
+ interface Team {
74
+ assignedCount: number;
75
+ assignmentLimit: number | null;
76
+ atCapacityCount: number;
77
+ avgWaitMs: number | null;
78
+ awayCount: number;
79
+ closedToday: number;
80
+ idleCount: number;
81
+ longestWaitingMs: number | null;
82
+ memberCount: number;
83
+ name: string;
84
+ object: 'workload_team';
85
+ openCount: number;
86
+ queuedCount: number;
87
+ snoozedCount: number;
88
+ teamId: string;
89
+ waitingCount: number;
90
+ waitingFirstReplyCount: number;
91
+ }
92
+ }
93
+ export interface WorkloadListParams {
94
+ /**
95
+ * API version for this request. Defaults to your organization's configured API
96
+ * version if not specified.
97
+ */
98
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
99
+ }
100
+ export declare namespace Workload {
101
+ export { type WorkloadListResponse as WorkloadListResponse, type WorkloadListParams as WorkloadListParams };
102
+ }
103
+ //# sourceMappingURL=workload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload.d.ts","sourceRoot":"","sources":["../src/resources/workload.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,iCAA8B;AACnD,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH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ACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;CACtF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Workload = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ /**
8
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
9
+ */
10
+ class Workload extends resource_1.APIResource {
11
+ /**
12
+ * Returns live workspace, team, and admin workload. Admin rows use cursor
13
+ * pagination. teamId and adminId filter admin and team rows. The summary stays
14
+ * workspace-wide. The snapshot is cached for five seconds.
15
+ */
16
+ list(params = {}, options) {
17
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
18
+ return this._client.get('/v2/workload', {
19
+ ...options,
20
+ headers: (0, headers_1.buildHeaders)([
21
+ {
22
+ ...(featurebaseVersion?.toString() != null ?
23
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
24
+ : undefined),
25
+ },
26
+ options?.headers,
27
+ ]),
28
+ });
29
+ }
30
+ }
31
+ exports.Workload = Workload;
32
+ //# sourceMappingURL=workload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload.js","sourceRoot":"","sources":["../src/resources/workload.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE;YACtC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,4BAuBC"}
@@ -0,0 +1,28 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ /**
5
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
6
+ */
7
+ export class Workload extends APIResource {
8
+ /**
9
+ * Returns live workspace, team, and admin workload. Admin rows use cursor
10
+ * pagination. teamId and adminId filter admin and team rows. The summary stays
11
+ * workspace-wide. The snapshot is cached for five seconds.
12
+ */
13
+ list(params = {}, options) {
14
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
15
+ return this._client.get('/v2/workload', {
16
+ ...options,
17
+ headers: buildHeaders([
18
+ {
19
+ ...(featurebaseVersion?.toString() != null ?
20
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
21
+ : undefined),
22
+ },
23
+ options?.headers,
24
+ ]),
25
+ });
26
+ }
27
+ }
28
+ //# sourceMappingURL=workload.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workload.mjs","sourceRoot":"","sources":["../src/resources/workload.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE;YACtC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -31,6 +31,11 @@ import {
31
31
  AuditLogListResponsesCursorPage,
32
32
  AuditLogs,
33
33
  } from './resources/audit-logs';
34
+ import {
35
+ AwayReasonRetrieveAwayReasonsParams,
36
+ AwayReasonRetrieveAwayReasonsResponse,
37
+ AwayReasons,
38
+ } from './resources/away-reasons';
34
39
  import {
35
40
  ConversationAttribute,
36
41
  ConversationAttributeListParams,
@@ -45,6 +50,8 @@ import {
45
50
  ReportDataset,
46
51
  ReportDrillInParams,
47
52
  ReportDrillInResponse,
53
+ ReportFilterCapabilitiesParams,
54
+ ReportFilterCapabilitiesResponse,
48
55
  ReportFilterExpression,
49
56
  ReportFilterRule,
50
57
  ReportGroupedDatum,
@@ -83,6 +90,7 @@ import {
83
90
  Webhooks,
84
91
  WebhooksCursorPage,
85
92
  } from './resources/webhooks';
93
+ import { Workload, WorkloadListParams, WorkloadListResponse } from './resources/workload';
86
94
  import {
87
95
  Changelog,
88
96
  ChangelogCreateParams,
@@ -91,6 +99,7 @@ import {
91
99
  ChangelogListParams,
92
100
  ChangelogPublishParams,
93
101
  ChangelogRetrieveParams,
102
+ ChangelogRetrieveResponse,
94
103
  ChangelogUnpublishParams,
95
104
  ChangelogUpdateParams,
96
105
  Changelogs,
@@ -102,6 +111,7 @@ import { HelpCenter } from './resources/help-center/help-center';
102
111
  import { Organization } from './resources/organization/organization';
103
112
  import { Support } from './resources/support/support';
104
113
  import {
114
+ KnowledgeMatchCandidate,
105
115
  KnowledgeSearch,
106
116
  Oracle,
107
117
  TrainingData,
@@ -883,6 +893,14 @@ export class Featurebase {
883
893
  * Training data teaches the AI agent about your product beyond your public Help Center: training files (documents, policies, internal notes) and Q&A entries (question variants with the exact answer to give). Use these endpoints to keep that knowledge in sync from your own systems — for example, pushing resolved support conversations, internal runbooks, or SOP documents automatically.
884
894
  */
885
895
  trainingData: API.TrainingData = new API.TrainingData(this);
896
+ /**
897
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
898
+ */
899
+ workload: API.Workload = new API.Workload(this);
900
+ /**
901
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
902
+ */
903
+ awayReasons: API.AwayReasons = new API.AwayReasons(this);
886
904
  }
887
905
 
888
906
  Featurebase.Support = Support;
@@ -897,6 +915,8 @@ Featurebase.ConversationAttributes = ConversationAttributes;
897
915
  Featurebase.AuditLogs = AuditLogs;
898
916
  Featurebase.Reports = Reports;
899
917
  Featurebase.TrainingData = TrainingData;
918
+ Featurebase.Workload = Workload;
919
+ Featurebase.AwayReasons = AwayReasons;
900
920
 
901
921
  export declare namespace Featurebase {
902
922
  export type RequestOptions = Opts.RequestOptions;
@@ -918,6 +938,7 @@ export declare namespace Featurebase {
918
938
  Changelogs as Changelogs,
919
939
  type Changelog as Changelog,
920
940
  type PublishUnpublishSuccess as PublishUnpublishSuccess,
941
+ type ChangelogRetrieveResponse as ChangelogRetrieveResponse,
921
942
  type ChangelogDeleteResponse as ChangelogDeleteResponse,
922
943
  type ChangelogsCursorPage as ChangelogsCursorPage,
923
944
  type ChangelogCreateParams as ChangelogCreateParams,
@@ -989,10 +1010,12 @@ export declare namespace Featurebase {
989
1010
  type ReportSegmentDatum as ReportSegmentDatum,
990
1011
  type ReportTimeSeriesDatum as ReportTimeSeriesDatum,
991
1012
  type ReportDrillInResponse as ReportDrillInResponse,
1013
+ type ReportFilterCapabilitiesResponse as ReportFilterCapabilitiesResponse,
992
1014
  type ReportListDatasetsResponse as ReportListDatasetsResponse,
993
1015
  type ReportLookupFilterValuesResponse as ReportLookupFilterValuesResponse,
994
1016
  type ReportQueryResponse as ReportQueryResponse,
995
1017
  type ReportDrillInParams as ReportDrillInParams,
1018
+ type ReportFilterCapabilitiesParams as ReportFilterCapabilitiesParams,
996
1019
  type ReportListDatasetsParams as ReportListDatasetsParams,
997
1020
  type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams,
998
1021
  type ReportQueryParams as ReportQueryParams,
@@ -1000,9 +1023,22 @@ export declare namespace Featurebase {
1000
1023
 
1001
1024
  export {
1002
1025
  TrainingData as TrainingData,
1026
+ type KnowledgeMatchCandidate as KnowledgeMatchCandidate,
1003
1027
  type KnowledgeSearch as KnowledgeSearch,
1004
1028
  type Oracle as Oracle,
1005
1029
  type TrainingDataOracleParams as TrainingDataOracleParams,
1006
1030
  type TrainingDataSearchParams as TrainingDataSearchParams,
1007
1031
  };
1032
+
1033
+ export {
1034
+ Workload as Workload,
1035
+ type WorkloadListResponse as WorkloadListResponse,
1036
+ type WorkloadListParams as WorkloadListParams,
1037
+ };
1038
+
1039
+ export {
1040
+ AwayReasons as AwayReasons,
1041
+ type AwayReasonRetrieveAwayReasonsResponse as AwayReasonRetrieveAwayReasonsResponse,
1042
+ type AwayReasonRetrieveAwayReasonsParams as AwayReasonRetrieveAwayReasonsParams,
1043
+ };
1008
1044
  }
@@ -0,0 +1,68 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
+ import { RequestOptions } from '../internal/request-options';
7
+
8
+ /**
9
+ * Live conversation workload, teammate availability, capacity limits, and managed away reasons for large support teams.
10
+ */
11
+ export class AwayReasons extends APIResource {
12
+ /**
13
+ * Returns active managed away reasons. Set includeArchived=true to include
14
+ * historical reasons.
15
+ */
16
+ retrieveAwayReasons(
17
+ params: AwayReasonRetrieveAwayReasonsParams | null | undefined = {},
18
+ options?: RequestOptions,
19
+ ): APIPromise<AwayReasonRetrieveAwayReasonsResponse> {
20
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
21
+ return this._client.get('/v2/away-reasons', {
22
+ ...options,
23
+ headers: buildHeaders([
24
+ {
25
+ ...(featurebaseVersion?.toString() != null ?
26
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
27
+ : undefined),
28
+ },
29
+ options?.headers,
30
+ ]),
31
+ });
32
+ }
33
+ }
34
+
35
+ export interface AwayReasonRetrieveAwayReasonsResponse {
36
+ data: Array<AwayReasonRetrieveAwayReasonsResponse.Data>;
37
+
38
+ nextCursor: null;
39
+
40
+ object: 'list';
41
+ }
42
+
43
+ export namespace AwayReasonRetrieveAwayReasonsResponse {
44
+ export interface Data {
45
+ id: string;
46
+
47
+ archived: boolean;
48
+
49
+ label: string;
50
+
51
+ object: 'away_reason';
52
+ }
53
+ }
54
+
55
+ export interface AwayReasonRetrieveAwayReasonsParams {
56
+ /**
57
+ * API version for this request. Defaults to your organization's configured API
58
+ * version if not specified.
59
+ */
60
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
61
+ }
62
+
63
+ export declare namespace AwayReasons {
64
+ export {
65
+ type AwayReasonRetrieveAwayReasonsResponse as AwayReasonRetrieveAwayReasonsResponse,
66
+ type AwayReasonRetrieveAwayReasonsParams as AwayReasonRetrieveAwayReasonsParams,
67
+ };
68
+ }