@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.
- package/client.d.mts +78 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +78 -6
- package/client.d.ts.map +1 -1
- package/client.js +73 -1
- package/client.js.map +1 -1
- package/client.mjs +73 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/sessions/index.d.mts +1 -0
- package/resources/agents/sessions/index.d.mts.map +1 -1
- package/resources/agents/sessions/index.d.ts +1 -0
- package/resources/agents/sessions/index.d.ts.map +1 -1
- package/resources/agents/sessions/index.js +3 -1
- package/resources/agents/sessions/index.js.map +1 -1
- package/resources/agents/sessions/index.mjs +1 -0
- package/resources/agents/sessions/index.mjs.map +1 -1
- package/resources/agents/sessions/messages.d.mts +24 -0
- package/resources/agents/sessions/messages.d.mts.map +1 -1
- package/resources/agents/sessions/messages.d.ts +24 -0
- package/resources/agents/sessions/messages.d.ts.map +1 -1
- package/resources/agents/sessions/resume-state.d.mts +25 -0
- package/resources/agents/sessions/resume-state.d.mts.map +1 -0
- package/resources/agents/sessions/resume-state.d.ts +25 -0
- package/resources/agents/sessions/resume-state.d.ts.map +1 -0
- package/resources/agents/sessions/resume-state.js +19 -0
- package/resources/agents/sessions/resume-state.js.map +1 -0
- package/resources/agents/sessions/resume-state.mjs +15 -0
- package/resources/agents/sessions/resume-state.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +91 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/agents/sessions/sessions.d.ts +91 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.js +4 -0
- package/resources/agents/sessions/sessions.js.map +1 -1
- package/resources/agents/sessions/sessions.mjs +4 -0
- package/resources/agents/sessions/sessions.mjs.map +1 -1
- package/resources/background-check-candidates.d.mts +337 -0
- package/resources/background-check-candidates.d.mts.map +1 -0
- package/resources/background-check-candidates.d.ts +337 -0
- package/resources/background-check-candidates.d.ts.map +1 -0
- package/resources/background-check-candidates.js +52 -0
- package/resources/background-check-candidates.js.map +1 -0
- package/resources/background-check-candidates.mjs +48 -0
- package/resources/background-check-candidates.mjs.map +1 -0
- package/resources/business-structure-paths.d.mts +54 -1
- package/resources/business-structure-paths.d.mts.map +1 -1
- package/resources/business-structure-paths.d.ts +54 -1
- package/resources/business-structure-paths.d.ts.map +1 -1
- package/resources/business-structure-paths.js +16 -0
- package/resources/business-structure-paths.js.map +1 -1
- package/resources/business-structure-paths.mjs +16 -0
- package/resources/business-structure-paths.mjs.map +1 -1
- package/resources/developer-program-application.d.mts +176 -0
- package/resources/developer-program-application.d.mts.map +1 -0
- package/resources/developer-program-application.d.ts +176 -0
- package/resources/developer-program-application.d.ts.map +1 -0
- package/resources/developer-program-application.js +27 -0
- package/resources/developer-program-application.js.map +1 -0
- package/resources/developer-program-application.mjs +23 -0
- package/resources/developer-program-application.mjs.map +1 -0
- package/resources/developer-users.d.mts +53 -0
- package/resources/developer-users.d.mts.map +1 -0
- package/resources/developer-users.d.ts +53 -0
- package/resources/developer-users.d.ts.map +1 -0
- package/resources/developer-users.js +25 -0
- package/resources/developer-users.js.map +1 -0
- package/resources/developer-users.mjs +21 -0
- package/resources/developer-users.mjs.map +1 -0
- package/resources/draft-transitions.d.mts +474 -0
- package/resources/draft-transitions.d.mts.map +1 -0
- package/resources/draft-transitions.d.ts +474 -0
- package/resources/draft-transitions.d.ts.map +1 -0
- package/resources/draft-transitions.js +25 -0
- package/resources/draft-transitions.js.map +1 -0
- package/resources/draft-transitions.mjs +21 -0
- package/resources/draft-transitions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +30 -0
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +30 -0
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/hire-requirements.d.mts +112 -0
- package/resources/hire-requirements.d.mts.map +1 -0
- package/resources/hire-requirements.d.ts +112 -0
- package/resources/hire-requirements.d.ts.map +1 -0
- package/resources/hire-requirements.js +19 -0
- package/resources/hire-requirements.js.map +1 -0
- package/resources/hire-requirements.mjs +15 -0
- package/resources/hire-requirements.mjs.map +1 -0
- package/resources/hires.d.mts +657 -0
- package/resources/hires.d.mts.map +1 -0
- package/resources/hires.d.ts +657 -0
- package/resources/hires.d.ts.map +1 -0
- package/resources/hires.js +25 -0
- package/resources/hires.js.map +1 -0
- package/resources/hires.mjs +21 -0
- package/resources/hires.mjs.map +1 -0
- package/resources/index.d.mts +15 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +27 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +13 -1
- package/resources/index.mjs.map +1 -1
- package/resources/listing-submissions.d.mts +86 -0
- package/resources/listing-submissions.d.mts.map +1 -0
- package/resources/listing-submissions.d.ts +86 -0
- package/resources/listing-submissions.d.ts.map +1 -0
- package/resources/listing-submissions.js +31 -0
- package/resources/listing-submissions.js.map +1 -0
- package/resources/listing-submissions.mjs +27 -0
- package/resources/listing-submissions.mjs.map +1 -0
- package/resources/listing-transitions.d.mts +59 -0
- package/resources/listing-transitions.d.mts.map +1 -0
- package/resources/listing-transitions.d.ts +59 -0
- package/resources/listing-transitions.d.ts.map +1 -0
- package/resources/listing-transitions.js +24 -0
- package/resources/listing-transitions.js.map +1 -0
- package/resources/listing-transitions.mjs +20 -0
- package/resources/listing-transitions.mjs.map +1 -0
- package/resources/listing.d.mts +1818 -0
- package/resources/listing.d.mts.map +1 -0
- package/resources/listing.d.ts +1818 -0
- package/resources/listing.d.ts.map +1 -0
- package/resources/listing.js +70 -0
- package/resources/listing.js.map +1 -0
- package/resources/listing.mjs +66 -0
- package/resources/listing.mjs.map +1 -0
- package/resources/package-managed-installs.d.mts +119 -0
- package/resources/package-managed-installs.d.mts.map +1 -0
- package/resources/package-managed-installs.d.ts +119 -0
- package/resources/package-managed-installs.d.ts.map +1 -0
- package/resources/package-managed-installs.js +26 -0
- package/resources/package-managed-installs.js.map +1 -0
- package/resources/package-managed-installs.mjs +22 -0
- package/resources/package-managed-installs.mjs.map +1 -0
- package/resources/package-sandbox-links.d.mts +150 -0
- package/resources/package-sandbox-links.d.mts.map +1 -0
- package/resources/package-sandbox-links.d.ts +150 -0
- package/resources/package-sandbox-links.d.ts.map +1 -0
- package/resources/package-sandbox-links.js +25 -0
- package/resources/package-sandbox-links.js.map +1 -0
- package/resources/package-sandbox-links.mjs +21 -0
- package/resources/package-sandbox-links.mjs.map +1 -0
- package/resources/package-versions/index.d.mts +3 -0
- package/resources/package-versions/index.d.mts.map +1 -0
- package/resources/package-versions/index.d.ts +3 -0
- package/resources/package-versions/index.d.ts.map +1 -0
- package/resources/package-versions/index.js +9 -0
- package/resources/package-versions/index.js.map +1 -0
- package/resources/package-versions/index.mjs +4 -0
- package/resources/package-versions/index.mjs.map +1 -0
- package/resources/package-versions/package-versions.d.mts +114 -0
- package/resources/package-versions/package-versions.d.mts.map +1 -0
- package/resources/package-versions/package-versions.d.ts +114 -0
- package/resources/package-versions/package-versions.d.ts.map +1 -0
- package/resources/package-versions/package-versions.js +33 -0
- package/resources/package-versions/package-versions.js.map +1 -0
- package/resources/package-versions/package-versions.mjs +28 -0
- package/resources/package-versions/package-versions.mjs.map +1 -0
- package/resources/package-versions/publish.d.mts +58 -0
- package/resources/package-versions/publish.d.mts.map +1 -0
- package/resources/package-versions/publish.d.ts +58 -0
- package/resources/package-versions/publish.d.ts.map +1 -0
- package/resources/package-versions/publish.js +19 -0
- package/resources/package-versions/publish.js.map +1 -0
- package/resources/package-versions/publish.mjs +15 -0
- package/resources/package-versions/publish.mjs.map +1 -0
- package/resources/package-versions.d.mts +1 -63
- package/resources/package-versions.d.mts.map +1 -1
- package/resources/package-versions.d.ts +1 -63
- package/resources/package-versions.d.ts.map +1 -1
- package/resources/package-versions.js +2 -15
- package/resources/package-versions.js.map +1 -1
- package/resources/package-versions.mjs +1 -13
- package/resources/package-versions.mjs.map +1 -1
- package/resources/packages/index.d.mts +1 -1
- package/resources/packages/index.d.mts.map +1 -1
- package/resources/packages/index.d.ts +1 -1
- package/resources/packages/index.d.ts.map +1 -1
- package/resources/packages/index.js.map +1 -1
- package/resources/packages/index.mjs +1 -1
- package/resources/packages/index.mjs.map +1 -1
- package/resources/packages/packages.d.mts +10 -10
- package/resources/packages/packages.d.mts.map +1 -1
- package/resources/packages/packages.d.ts +10 -10
- package/resources/packages/packages.d.ts.map +1 -1
- package/resources/packages/packages.js +11 -11
- package/resources/packages/packages.js.map +1 -1
- package/resources/packages/packages.mjs +12 -12
- package/resources/packages/packages.mjs.map +1 -1
- package/resources/packages/versions.d.mts +57 -2
- package/resources/packages/versions.d.mts.map +1 -1
- package/resources/packages/versions.d.ts +57 -2
- package/resources/packages/versions.d.ts.map +1 -1
- package/resources/packages/versions.js +8 -1
- package/resources/packages/versions.js.map +1 -1
- package/resources/packages/versions.mjs +8 -1
- package/resources/packages/versions.mjs.map +1 -1
- package/resources/sandboxes.d.mts +35 -22
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +35 -22
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +6 -0
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/sites.d.mts +2 -1
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +2 -1
- package/resources/sites.d.ts.map +1 -1
- package/resources/workers.d.mts +41 -0
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +41 -0
- package/resources/workers.d.ts.map +1 -1
- package/resources/workflows.d.mts +768 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +768 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +48 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +44 -0
- package/resources/workflows.mjs.map +1 -0
- package/src/client.ts +277 -5
- package/src/resources/agents/sessions/index.ts +1 -0
- package/src/resources/agents/sessions/messages.ts +28 -0
- package/src/resources/agents/sessions/resume-state.ts +32 -0
- package/src/resources/agents/sessions/sessions.ts +107 -0
- package/src/resources/background-check-candidates.ts +434 -0
- package/src/resources/business-structure-paths.ts +78 -0
- package/src/resources/developer-program-application.ts +233 -0
- package/src/resources/developer-users.ts +77 -0
- package/src/resources/draft-transitions.ts +583 -0
- package/src/resources/earnings-inputs.ts +36 -0
- package/src/resources/hire-requirements.ts +140 -0
- package/src/resources/hires.ts +786 -0
- package/src/resources/index.ts +99 -1
- package/src/resources/listing-submissions.ts +120 -0
- package/src/resources/listing-transitions.ts +84 -0
- package/src/resources/listing.ts +2297 -0
- package/src/resources/package-managed-installs.ts +156 -0
- package/src/resources/package-sandbox-links.ts +195 -0
- package/src/resources/package-versions/index.ts +9 -0
- package/src/resources/package-versions/package-versions.ts +156 -0
- package/src/resources/package-versions/publish.ts +74 -0
- package/src/resources/package-versions.ts +1 -86
- package/src/resources/packages/index.ts +8 -1
- package/src/resources/packages/packages.ts +26 -12
- package/src/resources/packages/versions.ts +83 -1
- package/src/resources/sandboxes.ts +45 -24
- package/src/resources/sites.ts +2 -1
- package/src/resources/workers.ts +46 -0
- package/src/resources/workflows.ts +1434 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -52,15 +52,43 @@ export interface MessageCreateResponse {
|
|
|
52
52
|
*/
|
|
53
53
|
error_message?: string;
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The stable LangSmith thread identifier for this session
|
|
57
|
+
*/
|
|
58
|
+
langsmith_thread_id?: string;
|
|
59
|
+
|
|
55
60
|
/**
|
|
56
61
|
* The output of the session
|
|
57
62
|
*/
|
|
58
63
|
output?: unknown;
|
|
59
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Receipt that ACP restored the requested session resume state
|
|
67
|
+
*/
|
|
68
|
+
session_resume_receipt?: MessageCreateResponse.SessionResumeReceipt;
|
|
69
|
+
|
|
60
70
|
/**
|
|
61
71
|
* The status of the session
|
|
62
72
|
*/
|
|
63
73
|
status?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Receipt for correlating agent.submission.settled events after create or
|
|
77
|
+
* append-message writes
|
|
78
|
+
*/
|
|
79
|
+
submission_id?: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace MessageCreateResponse {
|
|
83
|
+
/**
|
|
84
|
+
* Receipt that ACP restored the requested session resume state
|
|
85
|
+
*/
|
|
86
|
+
export interface SessionResumeReceipt {
|
|
87
|
+
/**
|
|
88
|
+
* The session resume state restore status
|
|
89
|
+
*/
|
|
90
|
+
status?: string;
|
|
91
|
+
}
|
|
64
92
|
}
|
|
65
93
|
|
|
66
94
|
export interface MessageCreateParams {
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Agents defined by the company
|
|
10
|
+
*/
|
|
11
|
+
export class ResumeState extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Capture opaque state that can restore a compatible eval agent session.
|
|
14
|
+
*/
|
|
15
|
+
create(sessionID: string, options?: RequestOptions): APIPromise<ResumeStateCreateResponse> {
|
|
16
|
+
return this._client.post(path`/agents/sessions/${sessionID}/resume-state/`, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Opaque state used to restore an eval agent session.
|
|
22
|
+
*/
|
|
23
|
+
export interface ResumeStateCreateResponse {
|
|
24
|
+
/**
|
|
25
|
+
* An opaque base64-encoded agent session resume state
|
|
26
|
+
*/
|
|
27
|
+
artifact: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare namespace ResumeState {
|
|
31
|
+
export { type ResumeStateCreateResponse as ResumeStateCreateResponse };
|
|
32
|
+
}
|
|
@@ -5,6 +5,8 @@ import * as EventsAPI from './events';
|
|
|
5
5
|
import { EventRetrieveParams, EventRetrieveResponse, Events } from './events';
|
|
6
6
|
import * as MessagesAPI from './messages';
|
|
7
7
|
import { MessageCreateParams, MessageCreateResponse, Messages } from './messages';
|
|
8
|
+
import * as ResumeStateAPI from './resume-state';
|
|
9
|
+
import { ResumeState, ResumeStateCreateResponse } from './resume-state';
|
|
8
10
|
import { APIPromise } from '../../../core/api-promise';
|
|
9
11
|
import { PageCursorURL, PagePromise } from '../../../core/pagination';
|
|
10
12
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -15,6 +17,7 @@ import { path } from '../../../internal/utils/path';
|
|
|
15
17
|
*/
|
|
16
18
|
export class Sessions extends APIResource {
|
|
17
19
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
20
|
+
resumeState: ResumeStateAPI.ResumeState = new ResumeStateAPI.ResumeState(this._client);
|
|
18
21
|
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
19
22
|
|
|
20
23
|
/**
|
|
@@ -80,15 +83,43 @@ export interface SessionCreateResponse {
|
|
|
80
83
|
*/
|
|
81
84
|
error_message?: string;
|
|
82
85
|
|
|
86
|
+
/**
|
|
87
|
+
* The stable LangSmith thread identifier for this session
|
|
88
|
+
*/
|
|
89
|
+
langsmith_thread_id?: string;
|
|
90
|
+
|
|
83
91
|
/**
|
|
84
92
|
* The output of the session
|
|
85
93
|
*/
|
|
86
94
|
output?: unknown;
|
|
87
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Receipt that ACP restored the requested session resume state
|
|
98
|
+
*/
|
|
99
|
+
session_resume_receipt?: SessionCreateResponse.SessionResumeReceipt;
|
|
100
|
+
|
|
88
101
|
/**
|
|
89
102
|
* The status of the session
|
|
90
103
|
*/
|
|
91
104
|
status?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Receipt for correlating agent.submission.settled events after create or
|
|
108
|
+
* append-message writes
|
|
109
|
+
*/
|
|
110
|
+
submission_id?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace SessionCreateResponse {
|
|
114
|
+
/**
|
|
115
|
+
* Receipt that ACP restored the requested session resume state
|
|
116
|
+
*/
|
|
117
|
+
export interface SessionResumeReceipt {
|
|
118
|
+
/**
|
|
119
|
+
* The session resume state restore status
|
|
120
|
+
*/
|
|
121
|
+
status?: string;
|
|
122
|
+
}
|
|
92
123
|
}
|
|
93
124
|
|
|
94
125
|
export interface SessionListResponse {
|
|
@@ -122,15 +153,43 @@ export interface SessionListResponse {
|
|
|
122
153
|
*/
|
|
123
154
|
error_message?: string;
|
|
124
155
|
|
|
156
|
+
/**
|
|
157
|
+
* The stable LangSmith thread identifier for this session
|
|
158
|
+
*/
|
|
159
|
+
langsmith_thread_id?: string;
|
|
160
|
+
|
|
125
161
|
/**
|
|
126
162
|
* The output of the session
|
|
127
163
|
*/
|
|
128
164
|
output?: unknown;
|
|
129
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Receipt that ACP restored the requested session resume state
|
|
168
|
+
*/
|
|
169
|
+
session_resume_receipt?: SessionListResponse.SessionResumeReceipt;
|
|
170
|
+
|
|
130
171
|
/**
|
|
131
172
|
* The status of the session
|
|
132
173
|
*/
|
|
133
174
|
status?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Receipt for correlating agent.submission.settled events after create or
|
|
178
|
+
* append-message writes
|
|
179
|
+
*/
|
|
180
|
+
submission_id?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export namespace SessionListResponse {
|
|
184
|
+
/**
|
|
185
|
+
* Receipt that ACP restored the requested session resume state
|
|
186
|
+
*/
|
|
187
|
+
export interface SessionResumeReceipt {
|
|
188
|
+
/**
|
|
189
|
+
* The session resume state restore status
|
|
190
|
+
*/
|
|
191
|
+
status?: string;
|
|
192
|
+
}
|
|
134
193
|
}
|
|
135
194
|
|
|
136
195
|
export interface SessionRetrieveResponse {
|
|
@@ -164,15 +223,43 @@ export interface SessionRetrieveResponse {
|
|
|
164
223
|
*/
|
|
165
224
|
error_message?: string;
|
|
166
225
|
|
|
226
|
+
/**
|
|
227
|
+
* The stable LangSmith thread identifier for this session
|
|
228
|
+
*/
|
|
229
|
+
langsmith_thread_id?: string;
|
|
230
|
+
|
|
167
231
|
/**
|
|
168
232
|
* The output of the session
|
|
169
233
|
*/
|
|
170
234
|
output?: unknown;
|
|
171
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Receipt that ACP restored the requested session resume state
|
|
238
|
+
*/
|
|
239
|
+
session_resume_receipt?: SessionRetrieveResponse.SessionResumeReceipt;
|
|
240
|
+
|
|
172
241
|
/**
|
|
173
242
|
* The status of the session
|
|
174
243
|
*/
|
|
175
244
|
status?: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Receipt for correlating agent.submission.settled events after create or
|
|
248
|
+
* append-message writes
|
|
249
|
+
*/
|
|
250
|
+
submission_id?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export namespace SessionRetrieveResponse {
|
|
254
|
+
/**
|
|
255
|
+
* Receipt that ACP restored the requested session resume state
|
|
256
|
+
*/
|
|
257
|
+
export interface SessionResumeReceipt {
|
|
258
|
+
/**
|
|
259
|
+
* The session resume state restore status
|
|
260
|
+
*/
|
|
261
|
+
status?: string;
|
|
262
|
+
}
|
|
176
263
|
}
|
|
177
264
|
|
|
178
265
|
export interface SessionCreateParams {
|
|
@@ -185,6 +272,23 @@ export interface SessionCreateParams {
|
|
|
185
272
|
* The prompt to send to the agent
|
|
186
273
|
*/
|
|
187
274
|
prompt: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Optional opaque state used to restore the new session
|
|
278
|
+
*/
|
|
279
|
+
session_resume_state?: SessionCreateParams.SessionResumeState;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export namespace SessionCreateParams {
|
|
283
|
+
/**
|
|
284
|
+
* Optional opaque state used to restore the new session
|
|
285
|
+
*/
|
|
286
|
+
export interface SessionResumeState {
|
|
287
|
+
/**
|
|
288
|
+
* An opaque base64-encoded agent session resume state
|
|
289
|
+
*/
|
|
290
|
+
artifact: string;
|
|
291
|
+
}
|
|
188
292
|
}
|
|
189
293
|
|
|
190
294
|
export interface SessionListParams {
|
|
@@ -200,6 +304,7 @@ export interface SessionListParams {
|
|
|
200
304
|
}
|
|
201
305
|
|
|
202
306
|
Sessions.Messages = Messages;
|
|
307
|
+
Sessions.ResumeState = ResumeState;
|
|
203
308
|
Sessions.Events = Events;
|
|
204
309
|
|
|
205
310
|
export declare namespace Sessions {
|
|
@@ -218,6 +323,8 @@ export declare namespace Sessions {
|
|
|
218
323
|
type MessageCreateParams as MessageCreateParams,
|
|
219
324
|
};
|
|
220
325
|
|
|
326
|
+
export { ResumeState as ResumeState, type ResumeStateCreateResponse as ResumeStateCreateResponse };
|
|
327
|
+
|
|
221
328
|
export {
|
|
222
329
|
Events as Events,
|
|
223
330
|
type EventRetrieveResponse as EventRetrieveResponse,
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
+
import { buildHeaders } from '../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Candidates who have been submitted for background check screening
|
|
13
|
+
*/
|
|
14
|
+
export class BackgroundCheckCandidates extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* A list of background check candidates.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `API Tier 2`
|
|
19
|
+
* - Filterable fields: `external_id`, `email`, `created_at`, `updated_at`
|
|
20
|
+
* - Sortable fields: `created_at`, `updated_at`
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
query: BackgroundCheckCandidateListParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): PagePromise<BackgroundCheckCandidateListResponsesPageCursorURL, BackgroundCheckCandidateListResponse> {
|
|
26
|
+
return this._client.getAPIList(
|
|
27
|
+
'/background-check-candidates/',
|
|
28
|
+
PageCursorURL<BackgroundCheckCandidateListResponse>,
|
|
29
|
+
{ query, ...options },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a new background check candidate
|
|
35
|
+
*/
|
|
36
|
+
create(
|
|
37
|
+
body: BackgroundCheckCandidateCreateParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<BackgroundCheckCandidateCreateResponse> {
|
|
40
|
+
return this._client.post('/background-check-candidates/', { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve a specific background check candidate
|
|
45
|
+
*/
|
|
46
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BackgroundCheckCandidateRetrieveResponse> {
|
|
47
|
+
return this._client.get(path`/background-check-candidates/${id}/`, options);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Update a specific background check candidate.
|
|
52
|
+
*/
|
|
53
|
+
update(
|
|
54
|
+
id: string,
|
|
55
|
+
body: BackgroundCheckCandidateUpdateParams,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<BackgroundCheckCandidateUpdateResponse> {
|
|
58
|
+
return this._client.patch(path`/background-check-candidates/${id}/`, { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Delete a background check candidate
|
|
63
|
+
*/
|
|
64
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
65
|
+
return this._client.delete(path`/background-check-candidates/${id}/`, {
|
|
66
|
+
...options,
|
|
67
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type BackgroundCheckCandidateListResponsesPageCursorURL =
|
|
73
|
+
PageCursorURL<BackgroundCheckCandidateListResponse>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Background Check Candidate DTO.
|
|
77
|
+
*
|
|
78
|
+
* Represents a candidate who has been submitted for background check screening.
|
|
79
|
+
*
|
|
80
|
+
* Required on Create (but nullable on read for legacy rows):
|
|
81
|
+
* - email: Required for new candidates, but may be null on read for legacy rows
|
|
82
|
+
* - external_id: Required for new candidates, but may be null on read for legacy rows
|
|
83
|
+
*
|
|
84
|
+
* Optional Fields:
|
|
85
|
+
* - owner_id: May be null if no provider is associated
|
|
86
|
+
* - first_name: May be null if name is not available
|
|
87
|
+
* - last_name: May be null if name is not available
|
|
88
|
+
* - middle_name: May be null if not provided
|
|
89
|
+
*
|
|
90
|
+
* Sensitive Fields:
|
|
91
|
+
* - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
|
|
92
|
+
* - These do not require separate OAuth scopes beyond the resource-level scopes
|
|
93
|
+
* (background-check-candidates.read / .read-write) because they are not updating
|
|
94
|
+
* role or worker data, only storing candidate names for background check processing
|
|
95
|
+
*
|
|
96
|
+
* Note: first_name, last_name, and middle_name are NOT filterable.
|
|
97
|
+
* Only external_id, email, created_at, and updated_at support filtering.
|
|
98
|
+
*/
|
|
99
|
+
export interface BackgroundCheckCandidateListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
102
|
+
* for legacy rows.
|
|
103
|
+
*/
|
|
104
|
+
email: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
108
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
109
|
+
* null). Cannot be changed after being set.
|
|
110
|
+
*/
|
|
111
|
+
external_id: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The unique identifier of the background check candidate.
|
|
115
|
+
*/
|
|
116
|
+
id?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The timestamp when the candidate was created.
|
|
120
|
+
*/
|
|
121
|
+
created_at?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The first name of the candidate.
|
|
125
|
+
*/
|
|
126
|
+
first_name?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The last name of the candidate.
|
|
130
|
+
*/
|
|
131
|
+
last_name?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The middle name of the candidate.
|
|
135
|
+
*/
|
|
136
|
+
middle_name?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The ID of the background check provider (OAuth spoke owner).
|
|
140
|
+
*/
|
|
141
|
+
owner_id?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The timestamp when the candidate was last updated.
|
|
145
|
+
*/
|
|
146
|
+
updated_at?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Background Check Candidate DTO.
|
|
151
|
+
*
|
|
152
|
+
* Represents a candidate who has been submitted for background check screening.
|
|
153
|
+
*
|
|
154
|
+
* Required on Create (but nullable on read for legacy rows):
|
|
155
|
+
* - email: Required for new candidates, but may be null on read for legacy rows
|
|
156
|
+
* - external_id: Required for new candidates, but may be null on read for legacy rows
|
|
157
|
+
*
|
|
158
|
+
* Optional Fields:
|
|
159
|
+
* - owner_id: May be null if no provider is associated
|
|
160
|
+
* - first_name: May be null if name is not available
|
|
161
|
+
* - last_name: May be null if name is not available
|
|
162
|
+
* - middle_name: May be null if not provided
|
|
163
|
+
*
|
|
164
|
+
* Sensitive Fields:
|
|
165
|
+
* - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
|
|
166
|
+
* - These do not require separate OAuth scopes beyond the resource-level scopes
|
|
167
|
+
* (background-check-candidates.read / .read-write) because they are not updating
|
|
168
|
+
* role or worker data, only storing candidate names for background check processing
|
|
169
|
+
*
|
|
170
|
+
* Note: first_name, last_name, and middle_name are NOT filterable.
|
|
171
|
+
* Only external_id, email, created_at, and updated_at support filtering.
|
|
172
|
+
*/
|
|
173
|
+
export interface BackgroundCheckCandidateCreateResponse {
|
|
174
|
+
/**
|
|
175
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
176
|
+
* for legacy rows.
|
|
177
|
+
*/
|
|
178
|
+
email: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
182
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
183
|
+
* null). Cannot be changed after being set.
|
|
184
|
+
*/
|
|
185
|
+
external_id: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The unique identifier of the background check candidate.
|
|
189
|
+
*/
|
|
190
|
+
id?: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The timestamp when the candidate was created.
|
|
194
|
+
*/
|
|
195
|
+
created_at?: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The first name of the candidate.
|
|
199
|
+
*/
|
|
200
|
+
first_name?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The last name of the candidate.
|
|
204
|
+
*/
|
|
205
|
+
last_name?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The middle name of the candidate.
|
|
209
|
+
*/
|
|
210
|
+
middle_name?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The ID of the background check provider (OAuth spoke owner).
|
|
214
|
+
*/
|
|
215
|
+
owner_id?: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The timestamp when the candidate was last updated.
|
|
219
|
+
*/
|
|
220
|
+
updated_at?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Meta information for the response.
|
|
225
|
+
*/
|
|
226
|
+
export interface BackgroundCheckCandidateRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
227
|
+
/**
|
|
228
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
229
|
+
* for legacy rows.
|
|
230
|
+
*/
|
|
231
|
+
email: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
235
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
236
|
+
* null). Cannot be changed after being set.
|
|
237
|
+
*/
|
|
238
|
+
external_id: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The unique identifier of the background check candidate.
|
|
242
|
+
*/
|
|
243
|
+
id?: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The timestamp when the candidate was created.
|
|
247
|
+
*/
|
|
248
|
+
created_at?: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The first name of the candidate.
|
|
252
|
+
*/
|
|
253
|
+
first_name?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The last name of the candidate.
|
|
257
|
+
*/
|
|
258
|
+
last_name?: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The middle name of the candidate.
|
|
262
|
+
*/
|
|
263
|
+
middle_name?: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The ID of the background check provider (OAuth spoke owner).
|
|
267
|
+
*/
|
|
268
|
+
owner_id?: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The timestamp when the candidate was last updated.
|
|
272
|
+
*/
|
|
273
|
+
updated_at?: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Background Check Candidate DTO.
|
|
278
|
+
*
|
|
279
|
+
* Represents a candidate who has been submitted for background check screening.
|
|
280
|
+
*
|
|
281
|
+
* Required on Create (but nullable on read for legacy rows):
|
|
282
|
+
* - email: Required for new candidates, but may be null on read for legacy rows
|
|
283
|
+
* - external_id: Required for new candidates, but may be null on read for legacy rows
|
|
284
|
+
*
|
|
285
|
+
* Optional Fields:
|
|
286
|
+
* - owner_id: May be null if no provider is associated
|
|
287
|
+
* - first_name: May be null if name is not available
|
|
288
|
+
* - last_name: May be null if name is not available
|
|
289
|
+
* - middle_name: May be null if not provided
|
|
290
|
+
*
|
|
291
|
+
* Sensitive Fields:
|
|
292
|
+
* - first_name, last_name, middle_name: Name fields are PII marked as sensitive in the model
|
|
293
|
+
* - These do not require separate OAuth scopes beyond the resource-level scopes
|
|
294
|
+
* (background-check-candidates.read / .read-write) because they are not updating
|
|
295
|
+
* role or worker data, only storing candidate names for background check processing
|
|
296
|
+
*
|
|
297
|
+
* Note: first_name, last_name, and middle_name are NOT filterable.
|
|
298
|
+
* Only external_id, email, created_at, and updated_at support filtering.
|
|
299
|
+
*/
|
|
300
|
+
export interface BackgroundCheckCandidateUpdateResponse {
|
|
301
|
+
/**
|
|
302
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
303
|
+
* for legacy rows.
|
|
304
|
+
*/
|
|
305
|
+
email: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
309
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
310
|
+
* null). Cannot be changed after being set.
|
|
311
|
+
*/
|
|
312
|
+
external_id: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* The unique identifier of the background check candidate.
|
|
316
|
+
*/
|
|
317
|
+
id?: string;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The timestamp when the candidate was created.
|
|
321
|
+
*/
|
|
322
|
+
created_at?: string;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* The first name of the candidate.
|
|
326
|
+
*/
|
|
327
|
+
first_name?: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* The last name of the candidate.
|
|
331
|
+
*/
|
|
332
|
+
last_name?: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The middle name of the candidate.
|
|
336
|
+
*/
|
|
337
|
+
middle_name?: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The ID of the background check provider (OAuth spoke owner).
|
|
341
|
+
*/
|
|
342
|
+
owner_id?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The timestamp when the candidate was last updated.
|
|
346
|
+
*/
|
|
347
|
+
updated_at?: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface BackgroundCheckCandidateListParams {
|
|
351
|
+
cursor?: string;
|
|
352
|
+
|
|
353
|
+
filter?: string;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
357
|
+
*/
|
|
358
|
+
limit?: number;
|
|
359
|
+
|
|
360
|
+
order_by?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface BackgroundCheckCandidateCreateParams {
|
|
364
|
+
/**
|
|
365
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
366
|
+
* for legacy rows.
|
|
367
|
+
*/
|
|
368
|
+
email: string;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
372
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
373
|
+
* null). Cannot be changed after being set.
|
|
374
|
+
*/
|
|
375
|
+
external_id: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The first name of the candidate.
|
|
379
|
+
*/
|
|
380
|
+
first_name?: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* The last name of the candidate.
|
|
384
|
+
*/
|
|
385
|
+
last_name?: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The middle name of the candidate.
|
|
389
|
+
*/
|
|
390
|
+
middle_name?: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export interface BackgroundCheckCandidateUpdateParams {
|
|
394
|
+
/**
|
|
395
|
+
* The email address of the candidate. Required on create, but may be null on read
|
|
396
|
+
* for legacy rows.
|
|
397
|
+
*/
|
|
398
|
+
email: string;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* The provider's unique identifier for the candidate. Required on create, but may
|
|
402
|
+
* be null on read for legacy rows. Can only be set once (during creation or when
|
|
403
|
+
* null). Cannot be changed after being set.
|
|
404
|
+
*/
|
|
405
|
+
external_id: string;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* The first name of the candidate.
|
|
409
|
+
*/
|
|
410
|
+
first_name?: string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* The last name of the candidate.
|
|
414
|
+
*/
|
|
415
|
+
last_name?: string;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The middle name of the candidate.
|
|
419
|
+
*/
|
|
420
|
+
middle_name?: string;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export declare namespace BackgroundCheckCandidates {
|
|
424
|
+
export {
|
|
425
|
+
type BackgroundCheckCandidateListResponse as BackgroundCheckCandidateListResponse,
|
|
426
|
+
type BackgroundCheckCandidateCreateResponse as BackgroundCheckCandidateCreateResponse,
|
|
427
|
+
type BackgroundCheckCandidateRetrieveResponse as BackgroundCheckCandidateRetrieveResponse,
|
|
428
|
+
type BackgroundCheckCandidateUpdateResponse as BackgroundCheckCandidateUpdateResponse,
|
|
429
|
+
type BackgroundCheckCandidateListResponsesPageCursorURL as BackgroundCheckCandidateListResponsesPageCursorURL,
|
|
430
|
+
type BackgroundCheckCandidateListParams as BackgroundCheckCandidateListParams,
|
|
431
|
+
type BackgroundCheckCandidateCreateParams as BackgroundCheckCandidateCreateParams,
|
|
432
|
+
type BackgroundCheckCandidateUpdateParams as BackgroundCheckCandidateUpdateParams,
|
|
433
|
+
};
|
|
434
|
+
}
|