@rippling/rippling-sdk 0.2.0-alpha.95 → 0.2.0-alpha.97

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 (259) hide show
  1. package/client.d.mts +78 -6
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +78 -6
  4. package/client.d.ts.map +1 -1
  5. package/client.js +73 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +73 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/agents/sessions/index.d.mts +1 -0
  11. package/resources/agents/sessions/index.d.mts.map +1 -1
  12. package/resources/agents/sessions/index.d.ts +1 -0
  13. package/resources/agents/sessions/index.d.ts.map +1 -1
  14. package/resources/agents/sessions/index.js +3 -1
  15. package/resources/agents/sessions/index.js.map +1 -1
  16. package/resources/agents/sessions/index.mjs +1 -0
  17. package/resources/agents/sessions/index.mjs.map +1 -1
  18. package/resources/agents/sessions/messages.d.mts +24 -0
  19. package/resources/agents/sessions/messages.d.mts.map +1 -1
  20. package/resources/agents/sessions/messages.d.ts +24 -0
  21. package/resources/agents/sessions/messages.d.ts.map +1 -1
  22. package/resources/agents/sessions/resume-state.d.mts +25 -0
  23. package/resources/agents/sessions/resume-state.d.mts.map +1 -0
  24. package/resources/agents/sessions/resume-state.d.ts +25 -0
  25. package/resources/agents/sessions/resume-state.d.ts.map +1 -0
  26. package/resources/agents/sessions/resume-state.js +19 -0
  27. package/resources/agents/sessions/resume-state.js.map +1 -0
  28. package/resources/agents/sessions/resume-state.mjs +15 -0
  29. package/resources/agents/sessions/resume-state.mjs.map +1 -0
  30. package/resources/agents/sessions/sessions.d.mts +91 -0
  31. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  32. package/resources/agents/sessions/sessions.d.ts +91 -0
  33. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  34. package/resources/agents/sessions/sessions.js +4 -0
  35. package/resources/agents/sessions/sessions.js.map +1 -1
  36. package/resources/agents/sessions/sessions.mjs +4 -0
  37. package/resources/agents/sessions/sessions.mjs.map +1 -1
  38. package/resources/background-check-candidates.d.mts +337 -0
  39. package/resources/background-check-candidates.d.mts.map +1 -0
  40. package/resources/background-check-candidates.d.ts +337 -0
  41. package/resources/background-check-candidates.d.ts.map +1 -0
  42. package/resources/background-check-candidates.js +52 -0
  43. package/resources/background-check-candidates.js.map +1 -0
  44. package/resources/background-check-candidates.mjs +48 -0
  45. package/resources/background-check-candidates.mjs.map +1 -0
  46. package/resources/business-structure-paths.d.mts +54 -1
  47. package/resources/business-structure-paths.d.mts.map +1 -1
  48. package/resources/business-structure-paths.d.ts +54 -1
  49. package/resources/business-structure-paths.d.ts.map +1 -1
  50. package/resources/business-structure-paths.js +16 -0
  51. package/resources/business-structure-paths.js.map +1 -1
  52. package/resources/business-structure-paths.mjs +16 -0
  53. package/resources/business-structure-paths.mjs.map +1 -1
  54. package/resources/developer-program-application.d.mts +176 -0
  55. package/resources/developer-program-application.d.mts.map +1 -0
  56. package/resources/developer-program-application.d.ts +176 -0
  57. package/resources/developer-program-application.d.ts.map +1 -0
  58. package/resources/developer-program-application.js +27 -0
  59. package/resources/developer-program-application.js.map +1 -0
  60. package/resources/developer-program-application.mjs +23 -0
  61. package/resources/developer-program-application.mjs.map +1 -0
  62. package/resources/developer-users.d.mts +53 -0
  63. package/resources/developer-users.d.mts.map +1 -0
  64. package/resources/developer-users.d.ts +53 -0
  65. package/resources/developer-users.d.ts.map +1 -0
  66. package/resources/developer-users.js +25 -0
  67. package/resources/developer-users.js.map +1 -0
  68. package/resources/developer-users.mjs +21 -0
  69. package/resources/developer-users.mjs.map +1 -0
  70. package/resources/draft-transitions.d.mts +474 -0
  71. package/resources/draft-transitions.d.mts.map +1 -0
  72. package/resources/draft-transitions.d.ts +474 -0
  73. package/resources/draft-transitions.d.ts.map +1 -0
  74. package/resources/draft-transitions.js +25 -0
  75. package/resources/draft-transitions.js.map +1 -0
  76. package/resources/draft-transitions.mjs +21 -0
  77. package/resources/draft-transitions.mjs.map +1 -0
  78. package/resources/earnings-inputs.d.mts +30 -0
  79. package/resources/earnings-inputs.d.mts.map +1 -1
  80. package/resources/earnings-inputs.d.ts +30 -0
  81. package/resources/earnings-inputs.d.ts.map +1 -1
  82. package/resources/hire-requirements.d.mts +112 -0
  83. package/resources/hire-requirements.d.mts.map +1 -0
  84. package/resources/hire-requirements.d.ts +112 -0
  85. package/resources/hire-requirements.d.ts.map +1 -0
  86. package/resources/hire-requirements.js +19 -0
  87. package/resources/hire-requirements.js.map +1 -0
  88. package/resources/hire-requirements.mjs +15 -0
  89. package/resources/hire-requirements.mjs.map +1 -0
  90. package/resources/hires.d.mts +657 -0
  91. package/resources/hires.d.mts.map +1 -0
  92. package/resources/hires.d.ts +657 -0
  93. package/resources/hires.d.ts.map +1 -0
  94. package/resources/hires.js +25 -0
  95. package/resources/hires.js.map +1 -0
  96. package/resources/hires.mjs +21 -0
  97. package/resources/hires.mjs.map +1 -0
  98. package/resources/index.d.mts +15 -3
  99. package/resources/index.d.mts.map +1 -1
  100. package/resources/index.d.ts +15 -3
  101. package/resources/index.d.ts.map +1 -1
  102. package/resources/index.js +27 -3
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs +13 -1
  105. package/resources/index.mjs.map +1 -1
  106. package/resources/listing-submissions.d.mts +86 -0
  107. package/resources/listing-submissions.d.mts.map +1 -0
  108. package/resources/listing-submissions.d.ts +86 -0
  109. package/resources/listing-submissions.d.ts.map +1 -0
  110. package/resources/listing-submissions.js +31 -0
  111. package/resources/listing-submissions.js.map +1 -0
  112. package/resources/listing-submissions.mjs +27 -0
  113. package/resources/listing-submissions.mjs.map +1 -0
  114. package/resources/listing-transitions.d.mts +59 -0
  115. package/resources/listing-transitions.d.mts.map +1 -0
  116. package/resources/listing-transitions.d.ts +59 -0
  117. package/resources/listing-transitions.d.ts.map +1 -0
  118. package/resources/listing-transitions.js +24 -0
  119. package/resources/listing-transitions.js.map +1 -0
  120. package/resources/listing-transitions.mjs +20 -0
  121. package/resources/listing-transitions.mjs.map +1 -0
  122. package/resources/listing.d.mts +1818 -0
  123. package/resources/listing.d.mts.map +1 -0
  124. package/resources/listing.d.ts +1818 -0
  125. package/resources/listing.d.ts.map +1 -0
  126. package/resources/listing.js +70 -0
  127. package/resources/listing.js.map +1 -0
  128. package/resources/listing.mjs +66 -0
  129. package/resources/listing.mjs.map +1 -0
  130. package/resources/package-managed-installs.d.mts +119 -0
  131. package/resources/package-managed-installs.d.mts.map +1 -0
  132. package/resources/package-managed-installs.d.ts +119 -0
  133. package/resources/package-managed-installs.d.ts.map +1 -0
  134. package/resources/package-managed-installs.js +26 -0
  135. package/resources/package-managed-installs.js.map +1 -0
  136. package/resources/package-managed-installs.mjs +22 -0
  137. package/resources/package-managed-installs.mjs.map +1 -0
  138. package/resources/package-sandbox-links.d.mts +150 -0
  139. package/resources/package-sandbox-links.d.mts.map +1 -0
  140. package/resources/package-sandbox-links.d.ts +150 -0
  141. package/resources/package-sandbox-links.d.ts.map +1 -0
  142. package/resources/package-sandbox-links.js +25 -0
  143. package/resources/package-sandbox-links.js.map +1 -0
  144. package/resources/package-sandbox-links.mjs +21 -0
  145. package/resources/package-sandbox-links.mjs.map +1 -0
  146. package/resources/package-versions/index.d.mts +3 -0
  147. package/resources/package-versions/index.d.mts.map +1 -0
  148. package/resources/package-versions/index.d.ts +3 -0
  149. package/resources/package-versions/index.d.ts.map +1 -0
  150. package/resources/package-versions/index.js +9 -0
  151. package/resources/package-versions/index.js.map +1 -0
  152. package/resources/package-versions/index.mjs +4 -0
  153. package/resources/package-versions/index.mjs.map +1 -0
  154. package/resources/package-versions/package-versions.d.mts +114 -0
  155. package/resources/package-versions/package-versions.d.mts.map +1 -0
  156. package/resources/package-versions/package-versions.d.ts +114 -0
  157. package/resources/package-versions/package-versions.d.ts.map +1 -0
  158. package/resources/package-versions/package-versions.js +33 -0
  159. package/resources/package-versions/package-versions.js.map +1 -0
  160. package/resources/package-versions/package-versions.mjs +28 -0
  161. package/resources/package-versions/package-versions.mjs.map +1 -0
  162. package/resources/package-versions/publish.d.mts +58 -0
  163. package/resources/package-versions/publish.d.mts.map +1 -0
  164. package/resources/package-versions/publish.d.ts +58 -0
  165. package/resources/package-versions/publish.d.ts.map +1 -0
  166. package/resources/package-versions/publish.js +19 -0
  167. package/resources/package-versions/publish.js.map +1 -0
  168. package/resources/package-versions/publish.mjs +15 -0
  169. package/resources/package-versions/publish.mjs.map +1 -0
  170. package/resources/package-versions.d.mts +1 -63
  171. package/resources/package-versions.d.mts.map +1 -1
  172. package/resources/package-versions.d.ts +1 -63
  173. package/resources/package-versions.d.ts.map +1 -1
  174. package/resources/package-versions.js +2 -15
  175. package/resources/package-versions.js.map +1 -1
  176. package/resources/package-versions.mjs +1 -13
  177. package/resources/package-versions.mjs.map +1 -1
  178. package/resources/packages/index.d.mts +1 -1
  179. package/resources/packages/index.d.mts.map +1 -1
  180. package/resources/packages/index.d.ts +1 -1
  181. package/resources/packages/index.d.ts.map +1 -1
  182. package/resources/packages/index.js.map +1 -1
  183. package/resources/packages/index.mjs +1 -1
  184. package/resources/packages/index.mjs.map +1 -1
  185. package/resources/packages/packages.d.mts +10 -10
  186. package/resources/packages/packages.d.mts.map +1 -1
  187. package/resources/packages/packages.d.ts +10 -10
  188. package/resources/packages/packages.d.ts.map +1 -1
  189. package/resources/packages/packages.js +11 -11
  190. package/resources/packages/packages.js.map +1 -1
  191. package/resources/packages/packages.mjs +12 -12
  192. package/resources/packages/packages.mjs.map +1 -1
  193. package/resources/packages/versions.d.mts +57 -2
  194. package/resources/packages/versions.d.mts.map +1 -1
  195. package/resources/packages/versions.d.ts +57 -2
  196. package/resources/packages/versions.d.ts.map +1 -1
  197. package/resources/packages/versions.js +8 -1
  198. package/resources/packages/versions.js.map +1 -1
  199. package/resources/packages/versions.mjs +8 -1
  200. package/resources/packages/versions.mjs.map +1 -1
  201. package/resources/sandboxes.d.mts +35 -22
  202. package/resources/sandboxes.d.mts.map +1 -1
  203. package/resources/sandboxes.d.ts +35 -22
  204. package/resources/sandboxes.d.ts.map +1 -1
  205. package/resources/sandboxes.js +6 -0
  206. package/resources/sandboxes.js.map +1 -1
  207. package/resources/sandboxes.mjs +6 -0
  208. package/resources/sandboxes.mjs.map +1 -1
  209. package/resources/sites.d.mts +2 -1
  210. package/resources/sites.d.mts.map +1 -1
  211. package/resources/sites.d.ts +2 -1
  212. package/resources/sites.d.ts.map +1 -1
  213. package/resources/workers.d.mts +41 -0
  214. package/resources/workers.d.mts.map +1 -1
  215. package/resources/workers.d.ts +41 -0
  216. package/resources/workers.d.ts.map +1 -1
  217. package/resources/workflows.d.mts +768 -0
  218. package/resources/workflows.d.mts.map +1 -0
  219. package/resources/workflows.d.ts +768 -0
  220. package/resources/workflows.d.ts.map +1 -0
  221. package/resources/workflows.js +48 -0
  222. package/resources/workflows.js.map +1 -0
  223. package/resources/workflows.mjs +44 -0
  224. package/resources/workflows.mjs.map +1 -0
  225. package/src/client.ts +277 -5
  226. package/src/resources/agents/sessions/index.ts +1 -0
  227. package/src/resources/agents/sessions/messages.ts +28 -0
  228. package/src/resources/agents/sessions/resume-state.ts +32 -0
  229. package/src/resources/agents/sessions/sessions.ts +107 -0
  230. package/src/resources/background-check-candidates.ts +434 -0
  231. package/src/resources/business-structure-paths.ts +78 -0
  232. package/src/resources/developer-program-application.ts +233 -0
  233. package/src/resources/developer-users.ts +77 -0
  234. package/src/resources/draft-transitions.ts +583 -0
  235. package/src/resources/earnings-inputs.ts +36 -0
  236. package/src/resources/hire-requirements.ts +140 -0
  237. package/src/resources/hires.ts +786 -0
  238. package/src/resources/index.ts +99 -1
  239. package/src/resources/listing-submissions.ts +120 -0
  240. package/src/resources/listing-transitions.ts +84 -0
  241. package/src/resources/listing.ts +2297 -0
  242. package/src/resources/package-managed-installs.ts +156 -0
  243. package/src/resources/package-sandbox-links.ts +195 -0
  244. package/src/resources/package-versions/index.ts +9 -0
  245. package/src/resources/package-versions/package-versions.ts +156 -0
  246. package/src/resources/package-versions/publish.ts +74 -0
  247. package/src/resources/package-versions.ts +1 -86
  248. package/src/resources/packages/index.ts +8 -1
  249. package/src/resources/packages/packages.ts +26 -12
  250. package/src/resources/packages/versions.ts +83 -1
  251. package/src/resources/sandboxes.ts +45 -24
  252. package/src/resources/sites.ts +2 -1
  253. package/src/resources/workers.ts +46 -0
  254. package/src/resources/workflows.ts +1434 -0
  255. package/src/version.ts +1 -1
  256. package/version.d.mts +1 -1
  257. package/version.d.ts +1 -1
  258. package/version.js +1 -1
  259. package/version.mjs +1 -1
@@ -3,6 +3,8 @@ import * as EventsAPI from "./events.js";
3
3
  import { EventRetrieveParams, EventRetrieveResponse, Events } from "./events.js";
4
4
  import * as MessagesAPI from "./messages.js";
5
5
  import { MessageCreateParams, MessageCreateResponse, Messages } from "./messages.js";
6
+ import * as ResumeStateAPI from "./resume-state.js";
7
+ import { ResumeState, ResumeStateCreateResponse } from "./resume-state.js";
6
8
  import { APIPromise } from "../../../core/api-promise.js";
7
9
  import { PageCursorURL, PagePromise } from "../../../core/pagination.js";
8
10
  import { RequestOptions } from "../../../internal/request-options.js";
@@ -11,6 +13,7 @@ import { RequestOptions } from "../../../internal/request-options.js";
11
13
  */
12
14
  export declare class Sessions extends APIResource {
13
15
  messages: MessagesAPI.Messages;
16
+ resumeState: ResumeStateAPI.ResumeState;
14
17
  events: EventsAPI.Events;
15
18
  /**
16
19
  * Start an agent session with a prompt.
@@ -52,14 +55,38 @@ export interface SessionCreateResponse {
52
55
  * The session error message
53
56
  */
54
57
  error_message?: string;
58
+ /**
59
+ * The stable LangSmith thread identifier for this session
60
+ */
61
+ langsmith_thread_id?: string;
55
62
  /**
56
63
  * The output of the session
57
64
  */
58
65
  output?: unknown;
66
+ /**
67
+ * Receipt that ACP restored the requested session resume state
68
+ */
69
+ session_resume_receipt?: SessionCreateResponse.SessionResumeReceipt;
59
70
  /**
60
71
  * The status of the session
61
72
  */
62
73
  status?: string;
74
+ /**
75
+ * Receipt for correlating agent.submission.settled events after create or
76
+ * append-message writes
77
+ */
78
+ submission_id?: string;
79
+ }
80
+ export declare namespace SessionCreateResponse {
81
+ /**
82
+ * Receipt that ACP restored the requested session resume state
83
+ */
84
+ interface SessionResumeReceipt {
85
+ /**
86
+ * The session resume state restore status
87
+ */
88
+ status?: string;
89
+ }
63
90
  }
64
91
  export interface SessionListResponse {
65
92
  /**
@@ -86,14 +113,38 @@ export interface SessionListResponse {
86
113
  * The session error message
87
114
  */
88
115
  error_message?: string;
116
+ /**
117
+ * The stable LangSmith thread identifier for this session
118
+ */
119
+ langsmith_thread_id?: string;
89
120
  /**
90
121
  * The output of the session
91
122
  */
92
123
  output?: unknown;
124
+ /**
125
+ * Receipt that ACP restored the requested session resume state
126
+ */
127
+ session_resume_receipt?: SessionListResponse.SessionResumeReceipt;
93
128
  /**
94
129
  * The status of the session
95
130
  */
96
131
  status?: string;
132
+ /**
133
+ * Receipt for correlating agent.submission.settled events after create or
134
+ * append-message writes
135
+ */
136
+ submission_id?: string;
137
+ }
138
+ export declare namespace SessionListResponse {
139
+ /**
140
+ * Receipt that ACP restored the requested session resume state
141
+ */
142
+ interface SessionResumeReceipt {
143
+ /**
144
+ * The session resume state restore status
145
+ */
146
+ status?: string;
147
+ }
97
148
  }
98
149
  export interface SessionRetrieveResponse {
99
150
  /**
@@ -120,14 +171,38 @@ export interface SessionRetrieveResponse {
120
171
  * The session error message
121
172
  */
122
173
  error_message?: string;
174
+ /**
175
+ * The stable LangSmith thread identifier for this session
176
+ */
177
+ langsmith_thread_id?: string;
123
178
  /**
124
179
  * The output of the session
125
180
  */
126
181
  output?: unknown;
182
+ /**
183
+ * Receipt that ACP restored the requested session resume state
184
+ */
185
+ session_resume_receipt?: SessionRetrieveResponse.SessionResumeReceipt;
127
186
  /**
128
187
  * The status of the session
129
188
  */
130
189
  status?: string;
190
+ /**
191
+ * Receipt for correlating agent.submission.settled events after create or
192
+ * append-message writes
193
+ */
194
+ submission_id?: string;
195
+ }
196
+ export declare namespace SessionRetrieveResponse {
197
+ /**
198
+ * Receipt that ACP restored the requested session resume state
199
+ */
200
+ interface SessionResumeReceipt {
201
+ /**
202
+ * The session resume state restore status
203
+ */
204
+ status?: string;
205
+ }
131
206
  }
132
207
  export interface SessionCreateParams {
133
208
  /**
@@ -138,6 +213,21 @@ export interface SessionCreateParams {
138
213
  * The prompt to send to the agent
139
214
  */
140
215
  prompt: string;
216
+ /**
217
+ * Optional opaque state used to restore the new session
218
+ */
219
+ session_resume_state?: SessionCreateParams.SessionResumeState;
220
+ }
221
+ export declare namespace SessionCreateParams {
222
+ /**
223
+ * Optional opaque state used to restore the new session
224
+ */
225
+ interface SessionResumeState {
226
+ /**
227
+ * An opaque base64-encoded agent session resume state
228
+ */
229
+ artifact: string;
230
+ }
141
231
  }
142
232
  export interface SessionListParams {
143
233
  /**
@@ -152,6 +242,7 @@ export interface SessionListParams {
152
242
  export declare namespace Sessions {
153
243
  export { type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionListResponsesPageCursorURL as SessionListResponsesPageCursorURL, type SessionCreateParams as SessionCreateParams, type SessionListParams as SessionListParams, };
154
244
  export { Messages as Messages, type MessageCreateResponse as MessageCreateResponse, type MessageCreateParams as MessageCreateParams, };
245
+ export { ResumeState as ResumeState, type ResumeStateCreateResponse as ResumeStateCreateResponse };
155
246
  export { Events as Events, type EventRetrieveResponse as EventRetrieveResponse, type EventRetrieveParams as EventRetrieveParams, };
156
247
  }
157
248
  //# sourceMappingURL=sessions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,oBAAiB;AAC9E,OAAO,KAAK,WAAW,sBAA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BAAmB,CAAC,kBAAkB,CAAC;CAC/D;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,kBAAkB;QACjC;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;IAEnG,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -8,6 +8,8 @@ const EventsAPI = tslib_1.__importStar(require("./events.js"));
8
8
  const events_1 = require("./events.js");
9
9
  const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
10
10
  const messages_1 = require("./messages.js");
11
+ const ResumeStateAPI = tslib_1.__importStar(require("./resume-state.js"));
12
+ const resume_state_1 = require("./resume-state.js");
11
13
  const pagination_1 = require("../../../core/pagination.js");
12
14
  const path_1 = require("../../../internal/utils/path.js");
13
15
  /**
@@ -17,6 +19,7 @@ class Sessions extends resource_1.APIResource {
17
19
  constructor() {
18
20
  super(...arguments);
19
21
  this.messages = new MessagesAPI.Messages(this._client);
22
+ this.resumeState = new ResumeStateAPI.ResumeState(this._client);
20
23
  this.events = new EventsAPI.Events(this._client);
21
24
  }
22
25
  /**
@@ -44,5 +47,6 @@ class Sessions extends resource_1.APIResource {
44
47
  }
45
48
  exports.Sessions = Sessions;
46
49
  Sessions.Messages = messages_1.Messages;
50
+ Sessions.ResumeState = resume_state_1.ResumeState;
47
51
  Sessions.Events = events_1.Events;
48
52
  //# sourceMappingURL=sessions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAA8E;AAC9E,mEAA0C;AAC1C,4CAAkF;AAElF,4DAAsE;AAEtE,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8BhE,CAAC;IA5BC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,YAAY,EAAE,CAAA,0BAAkC,CAAA,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,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SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,GAAG,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAjCD,4BAiCC;AA+PD,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,WAAW,GAAG,0BAAW,CAAC;AACnC,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -4,6 +4,8 @@ import * as EventsAPI from "./events.mjs";
4
4
  import { Events } from "./events.mjs";
5
5
  import * as MessagesAPI from "./messages.mjs";
6
6
  import { Messages } from "./messages.mjs";
7
+ import * as ResumeStateAPI from "./resume-state.mjs";
8
+ import { ResumeState } from "./resume-state.mjs";
7
9
  import { PageCursorURL } from "../../../core/pagination.mjs";
8
10
  import { path } from "../../../internal/utils/path.mjs";
9
11
  /**
@@ -13,6 +15,7 @@ export class Sessions extends APIResource {
13
15
  constructor() {
14
16
  super(...arguments);
15
17
  this.messages = new MessagesAPI.Messages(this._client);
18
+ this.resumeState = new ResumeStateAPI.ResumeState(this._client);
16
19
  this.events = new EventsAPI.Events(this._client);
17
20
  }
18
21
  /**
@@ -39,5 +42,6 @@ export class Sessions extends APIResource {
39
42
  }
40
43
  }
41
44
  Sessions.Messages = Messages;
45
+ Sessions.ResumeState = ResumeState;
42
46
  Sessions.Events = Events;
43
47
  //# sourceMappingURL=sessions.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA8C,MAAM,EAAE,qBAAiB;AAC9E,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA8C,QAAQ,EAAE,uBAAmB;AAElF,OAAO,EAAE,aAA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core/resource.mjs";
2
+ import * as BusinessPartnersAPI from "./business-partners.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ /**
7
+ * Candidates who have been submitted for background check screening
8
+ */
9
+ export declare class BackgroundCheckCandidates extends APIResource {
10
+ /**
11
+ * A list of background check candidates.
12
+ *
13
+ * - Requires: `API Tier 2`
14
+ * - Filterable fields: `external_id`, `email`, `created_at`, `updated_at`
15
+ * - Sortable fields: `created_at`, `updated_at`
16
+ */
17
+ list(query?: BackgroundCheckCandidateListParams | null | undefined, options?: RequestOptions): PagePromise<BackgroundCheckCandidateListResponsesPageCursorURL, BackgroundCheckCandidateListResponse>;
18
+ /**
19
+ * Create a new background check candidate
20
+ */
21
+ create(body: BackgroundCheckCandidateCreateParams, options?: RequestOptions): APIPromise<BackgroundCheckCandidateCreateResponse>;
22
+ /**
23
+ * Retrieve a specific background check candidate
24
+ */
25
+ retrieve(id: string, options?: RequestOptions): APIPromise<BackgroundCheckCandidateRetrieveResponse>;
26
+ /**
27
+ * Update a specific background check candidate.
28
+ */
29
+ update(id: string, body: BackgroundCheckCandidateUpdateParams, options?: RequestOptions): APIPromise<BackgroundCheckCandidateUpdateResponse>;
30
+ /**
31
+ * Delete a background check candidate
32
+ */
33
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
34
+ }
35
+ export type BackgroundCheckCandidateListResponsesPageCursorURL = PageCursorURL<BackgroundCheckCandidateListResponse>;
36
+ /**
37
+ * Background Check Candidate DTO.
38
+ *
39
+ * Represents a candidate who has been submitted for background check screening.
40
+ *
41
+ * Required on Create (but nullable on read for legacy rows):
42
+ * - email: Required for new candidates, but may be null on read for legacy rows
43
+ * - external_id: Required for new candidates, but may be null on read for legacy rows
44
+ *
45
+ * Optional Fields:
46
+ * - owner_id: May be null if no provider is associated
47
+ * - first_name: May be null if name is not available
48
+ * - last_name: May be null if name is not available
49
+ * - middle_name: May be null if not provided
50
+ *
51
+ * Sensitive Fields:
52
+ * - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
53
+ * - These do not require separate OAuth scopes beyond the resource-level scopes
54
+ * (background-check-candidates.read / .read-write) because they are not updating
55
+ * role or worker data, only storing candidate names for background check processing
56
+ *
57
+ * Note: first_name, last_name, and middle_name are NOT filterable.
58
+ * Only external_id, email, created_at, and updated_at support filtering.
59
+ */
60
+ export interface BackgroundCheckCandidateListResponse {
61
+ /**
62
+ * The email address of the candidate. Required on create, but may be null on read
63
+ * for legacy rows.
64
+ */
65
+ email: string;
66
+ /**
67
+ * The provider's unique identifier for the candidate. Required on create, but may
68
+ * be null on read for legacy rows. Can only be set once (during creation or when
69
+ * null). Cannot be changed after being set.
70
+ */
71
+ external_id: string;
72
+ /**
73
+ * The unique identifier of the background check candidate.
74
+ */
75
+ id?: string;
76
+ /**
77
+ * The timestamp when the candidate was created.
78
+ */
79
+ created_at?: string;
80
+ /**
81
+ * The first name of the candidate.
82
+ */
83
+ first_name?: string;
84
+ /**
85
+ * The last name of the candidate.
86
+ */
87
+ last_name?: string;
88
+ /**
89
+ * The middle name of the candidate.
90
+ */
91
+ middle_name?: string;
92
+ /**
93
+ * The ID of the background check provider (OAuth spoke owner).
94
+ */
95
+ owner_id?: string;
96
+ /**
97
+ * The timestamp when the candidate was last updated.
98
+ */
99
+ updated_at?: string;
100
+ }
101
+ /**
102
+ * Background Check Candidate DTO.
103
+ *
104
+ * Represents a candidate who has been submitted for background check screening.
105
+ *
106
+ * Required on Create (but nullable on read for legacy rows):
107
+ * - email: Required for new candidates, but may be null on read for legacy rows
108
+ * - external_id: Required for new candidates, but may be null on read for legacy rows
109
+ *
110
+ * Optional Fields:
111
+ * - owner_id: May be null if no provider is associated
112
+ * - first_name: May be null if name is not available
113
+ * - last_name: May be null if name is not available
114
+ * - middle_name: May be null if not provided
115
+ *
116
+ * Sensitive Fields:
117
+ * - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
118
+ * - These do not require separate OAuth scopes beyond the resource-level scopes
119
+ * (background-check-candidates.read / .read-write) because they are not updating
120
+ * role or worker data, only storing candidate names for background check processing
121
+ *
122
+ * Note: first_name, last_name, and middle_name are NOT filterable.
123
+ * Only external_id, email, created_at, and updated_at support filtering.
124
+ */
125
+ export interface BackgroundCheckCandidateCreateResponse {
126
+ /**
127
+ * The email address of the candidate. Required on create, but may be null on read
128
+ * for legacy rows.
129
+ */
130
+ email: string;
131
+ /**
132
+ * The provider's unique identifier for the candidate. Required on create, but may
133
+ * be null on read for legacy rows. Can only be set once (during creation or when
134
+ * null). Cannot be changed after being set.
135
+ */
136
+ external_id: string;
137
+ /**
138
+ * The unique identifier of the background check candidate.
139
+ */
140
+ id?: string;
141
+ /**
142
+ * The timestamp when the candidate was created.
143
+ */
144
+ created_at?: string;
145
+ /**
146
+ * The first name of the candidate.
147
+ */
148
+ first_name?: string;
149
+ /**
150
+ * The last name of the candidate.
151
+ */
152
+ last_name?: string;
153
+ /**
154
+ * The middle name of the candidate.
155
+ */
156
+ middle_name?: string;
157
+ /**
158
+ * The ID of the background check provider (OAuth spoke owner).
159
+ */
160
+ owner_id?: string;
161
+ /**
162
+ * The timestamp when the candidate was last updated.
163
+ */
164
+ updated_at?: string;
165
+ }
166
+ /**
167
+ * Meta information for the response.
168
+ */
169
+ export interface BackgroundCheckCandidateRetrieveResponse extends BusinessPartnersAPI.Meta {
170
+ /**
171
+ * The email address of the candidate. Required on create, but may be null on read
172
+ * for legacy rows.
173
+ */
174
+ email: string;
175
+ /**
176
+ * The provider's unique identifier for the candidate. Required on create, but may
177
+ * be null on read for legacy rows. Can only be set once (during creation or when
178
+ * null). Cannot be changed after being set.
179
+ */
180
+ external_id: string;
181
+ /**
182
+ * The unique identifier of the background check candidate.
183
+ */
184
+ id?: string;
185
+ /**
186
+ * The timestamp when the candidate was created.
187
+ */
188
+ created_at?: string;
189
+ /**
190
+ * The first name of the candidate.
191
+ */
192
+ first_name?: string;
193
+ /**
194
+ * The last name of the candidate.
195
+ */
196
+ last_name?: string;
197
+ /**
198
+ * The middle name of the candidate.
199
+ */
200
+ middle_name?: string;
201
+ /**
202
+ * The ID of the background check provider (OAuth spoke owner).
203
+ */
204
+ owner_id?: string;
205
+ /**
206
+ * The timestamp when the candidate was last updated.
207
+ */
208
+ updated_at?: string;
209
+ }
210
+ /**
211
+ * Background Check Candidate DTO.
212
+ *
213
+ * Represents a candidate who has been submitted for background check screening.
214
+ *
215
+ * Required on Create (but nullable on read for legacy rows):
216
+ * - email: Required for new candidates, but may be null on read for legacy rows
217
+ * - external_id: Required for new candidates, but may be null on read for legacy rows
218
+ *
219
+ * Optional Fields:
220
+ * - owner_id: May be null if no provider is associated
221
+ * - first_name: May be null if name is not available
222
+ * - last_name: May be null if name is not available
223
+ * - middle_name: May be null if not provided
224
+ *
225
+ * Sensitive Fields:
226
+ * - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
227
+ * - These do not require separate OAuth scopes beyond the resource-level scopes
228
+ * (background-check-candidates.read / .read-write) because they are not updating
229
+ * role or worker data, only storing candidate names for background check processing
230
+ *
231
+ * Note: first_name, last_name, and middle_name are NOT filterable.
232
+ * Only external_id, email, created_at, and updated_at support filtering.
233
+ */
234
+ export interface BackgroundCheckCandidateUpdateResponse {
235
+ /**
236
+ * The email address of the candidate. Required on create, but may be null on read
237
+ * for legacy rows.
238
+ */
239
+ email: string;
240
+ /**
241
+ * The provider's unique identifier for the candidate. Required on create, but may
242
+ * be null on read for legacy rows. Can only be set once (during creation or when
243
+ * null). Cannot be changed after being set.
244
+ */
245
+ external_id: string;
246
+ /**
247
+ * The unique identifier of the background check candidate.
248
+ */
249
+ id?: string;
250
+ /**
251
+ * The timestamp when the candidate was created.
252
+ */
253
+ created_at?: string;
254
+ /**
255
+ * The first name of the candidate.
256
+ */
257
+ first_name?: string;
258
+ /**
259
+ * The last name of the candidate.
260
+ */
261
+ last_name?: string;
262
+ /**
263
+ * The middle name of the candidate.
264
+ */
265
+ middle_name?: string;
266
+ /**
267
+ * The ID of the background check provider (OAuth spoke owner).
268
+ */
269
+ owner_id?: string;
270
+ /**
271
+ * The timestamp when the candidate was last updated.
272
+ */
273
+ updated_at?: string;
274
+ }
275
+ export interface BackgroundCheckCandidateListParams {
276
+ cursor?: string;
277
+ filter?: string;
278
+ /**
279
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
280
+ */
281
+ limit?: number;
282
+ order_by?: string;
283
+ }
284
+ export interface BackgroundCheckCandidateCreateParams {
285
+ /**
286
+ * The email address of the candidate. Required on create, but may be null on read
287
+ * for legacy rows.
288
+ */
289
+ email: string;
290
+ /**
291
+ * The provider's unique identifier for the candidate. Required on create, but may
292
+ * be null on read for legacy rows. Can only be set once (during creation or when
293
+ * null). Cannot be changed after being set.
294
+ */
295
+ external_id: string;
296
+ /**
297
+ * The first name of the candidate.
298
+ */
299
+ first_name?: string;
300
+ /**
301
+ * The last name of the candidate.
302
+ */
303
+ last_name?: string;
304
+ /**
305
+ * The middle name of the candidate.
306
+ */
307
+ middle_name?: string;
308
+ }
309
+ export interface BackgroundCheckCandidateUpdateParams {
310
+ /**
311
+ * The email address of the candidate. Required on create, but may be null on read
312
+ * for legacy rows.
313
+ */
314
+ email: string;
315
+ /**
316
+ * The provider's unique identifier for the candidate. Required on create, but may
317
+ * be null on read for legacy rows. Can only be set once (during creation or when
318
+ * null). Cannot be changed after being set.
319
+ */
320
+ external_id: string;
321
+ /**
322
+ * The first name of the candidate.
323
+ */
324
+ first_name?: string;
325
+ /**
326
+ * The last name of the candidate.
327
+ */
328
+ last_name?: string;
329
+ /**
330
+ * The middle name of the candidate.
331
+ */
332
+ middle_name?: string;
333
+ }
334
+ export declare namespace BackgroundCheckCandidates {
335
+ export { type BackgroundCheckCandidateListResponse as BackgroundCheckCandidateListResponse, type BackgroundCheckCandidateCreateResponse as BackgroundCheckCandidateCreateResponse, type BackgroundCheckCandidateRetrieveResponse as BackgroundCheckCandidateRetrieveResponse, type BackgroundCheckCandidateUpdateResponse as BackgroundCheckCandidateUpdateResponse, type BackgroundCheckCandidateListResponsesPageCursorURL as BackgroundCheckCandidateListResponsesPageCursorURL, type BackgroundCheckCandidateListParams as BackgroundCheckCandidateListParams, type BackgroundCheckCandidateCreateParams as BackgroundCheckCandidateCreateParams, type BackgroundCheckCandidateUpdateParams as BackgroundCheckCandidateUpdateParams, };
336
+ }
337
+ //# sourceMappingURL=background-check-candidates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background-check-candidates.d.mts","sourceRoot":"","sources":["../src/resources/background-check-candidates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAEhE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,kCAAkC,GAAG,IAAI,GAAG,SAAc,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kDAAkD,EAAE,oCAAoC,CAAC;IAQxG;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;IAIpG;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cA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