@rippling/rippling-sdk 0.2.0-alpha.104 → 0.2.0-alpha.106

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 (251) hide show
  1. package/client.d.mts +12 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +12 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +12 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +12 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/charts/builders.d.mts +43 -0
  10. package/lib/charts/builders.d.mts.map +1 -0
  11. package/lib/charts/builders.d.ts +43 -0
  12. package/lib/charts/builders.d.ts.map +1 -0
  13. package/lib/charts/builders.js +77 -0
  14. package/lib/charts/builders.js.map +1 -0
  15. package/lib/charts/builders.mjs +70 -0
  16. package/lib/charts/builders.mjs.map +1 -0
  17. package/lib/charts/describe.d.mts +12 -0
  18. package/lib/charts/describe.d.mts.map +1 -0
  19. package/lib/charts/describe.d.ts +12 -0
  20. package/lib/charts/describe.d.ts.map +1 -0
  21. package/lib/charts/describe.js +64 -0
  22. package/lib/charts/describe.js.map +1 -0
  23. package/lib/charts/describe.mjs +61 -0
  24. package/lib/charts/describe.mjs.map +1 -0
  25. package/lib/charts/errors.d.mts +35 -0
  26. package/lib/charts/errors.d.mts.map +1 -0
  27. package/lib/charts/errors.d.ts +35 -0
  28. package/lib/charts/errors.d.ts.map +1 -0
  29. package/lib/charts/errors.js +55 -0
  30. package/lib/charts/errors.js.map +1 -0
  31. package/lib/charts/errors.mjs +47 -0
  32. package/lib/charts/errors.mjs.map +1 -0
  33. package/lib/charts/evaluate.d.mts +16 -0
  34. package/lib/charts/evaluate.d.mts.map +1 -0
  35. package/lib/charts/evaluate.d.ts +16 -0
  36. package/lib/charts/evaluate.d.ts.map +1 -0
  37. package/lib/charts/evaluate.js +99 -0
  38. package/lib/charts/evaluate.js.map +1 -0
  39. package/lib/charts/evaluate.mjs +96 -0
  40. package/lib/charts/evaluate.mjs.map +1 -0
  41. package/lib/charts/guards.d.mts +15 -0
  42. package/lib/charts/guards.d.mts.map +1 -0
  43. package/lib/charts/guards.d.ts +15 -0
  44. package/lib/charts/guards.d.ts.map +1 -0
  45. package/lib/charts/guards.js +38 -0
  46. package/lib/charts/guards.js.map +1 -0
  47. package/lib/charts/guards.mjs +34 -0
  48. package/lib/charts/guards.mjs.map +1 -0
  49. package/lib/charts/schema.d.mts +101 -0
  50. package/lib/charts/schema.d.mts.map +1 -0
  51. package/lib/charts/schema.d.ts +101 -0
  52. package/lib/charts/schema.d.ts.map +1 -0
  53. package/lib/charts/schema.js +74 -0
  54. package/lib/charts/schema.js.map +1 -0
  55. package/lib/charts/schema.mjs +71 -0
  56. package/lib/charts/schema.mjs.map +1 -0
  57. package/lib/charts/types.d.mts +79 -0
  58. package/lib/charts/types.d.mts.map +1 -0
  59. package/lib/charts/types.d.ts +79 -0
  60. package/lib/charts/types.d.ts.map +1 -0
  61. package/lib/charts/types.js +25 -0
  62. package/lib/charts/types.js.map +1 -0
  63. package/lib/charts/types.mjs +22 -0
  64. package/lib/charts/types.mjs.map +1 -0
  65. package/lib/charts.d.mts +7 -0
  66. package/lib/charts.d.mts.map +1 -0
  67. package/lib/charts.d.ts +7 -0
  68. package/lib/charts.d.ts.map +1 -0
  69. package/lib/charts.js +32 -0
  70. package/lib/charts.js.map +1 -0
  71. package/lib/charts.mjs +7 -0
  72. package/lib/charts.mjs.map +1 -0
  73. package/lib/manifest/_existing-component-fields.d.mts.map +1 -1
  74. package/lib/manifest/_existing-component-fields.d.ts.map +1 -1
  75. package/lib/manifest/_existing-component-fields.js +2 -0
  76. package/lib/manifest/_existing-component-fields.js.map +1 -1
  77. package/lib/manifest/_existing-component-fields.mjs +2 -0
  78. package/lib/manifest/_existing-component-fields.mjs.map +1 -1
  79. package/lib/manifest/existing-manifest-context.d.mts +3 -0
  80. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  81. package/lib/manifest/existing-manifest-context.d.ts +3 -0
  82. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  83. package/lib/manifest/existing-manifest-context.js +14 -0
  84. package/lib/manifest/existing-manifest-context.js.map +1 -1
  85. package/lib/manifest/existing-manifest-context.mjs +14 -0
  86. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  87. package/lib/manifest/workflow/index.d.mts +4 -0
  88. package/lib/manifest/workflow/index.d.mts.map +1 -1
  89. package/lib/manifest/workflow/index.d.ts +4 -0
  90. package/lib/manifest/workflow/index.d.ts.map +1 -1
  91. package/lib/manifest/workflow/index.js +49 -0
  92. package/lib/manifest/workflow/index.js.map +1 -1
  93. package/lib/manifest/workflow/index.mjs +49 -0
  94. package/lib/manifest/workflow/index.mjs.map +1 -1
  95. package/package.json +1 -1
  96. package/resources/activity-log.d.mts +517 -0
  97. package/resources/activity-log.d.mts.map +1 -0
  98. package/resources/activity-log.d.ts +517 -0
  99. package/resources/activity-log.d.ts.map +1 -0
  100. package/resources/activity-log.js +171 -0
  101. package/resources/activity-log.js.map +1 -0
  102. package/resources/activity-log.mjs +167 -0
  103. package/resources/activity-log.mjs.map +1 -0
  104. package/resources/compensations.d.mts +1 -1
  105. package/resources/compensations.d.ts +1 -1
  106. package/resources/compensations.js +1 -1
  107. package/resources/compensations.mjs +1 -1
  108. package/resources/developer-program-application.d.mts +1 -1
  109. package/resources/developer-program-application.d.ts +1 -1
  110. package/resources/developer-program-application.js +1 -1
  111. package/resources/developer-program-application.mjs +1 -1
  112. package/resources/developer-users.d.mts +2 -1
  113. package/resources/developer-users.d.mts.map +1 -1
  114. package/resources/developer-users.d.ts +2 -1
  115. package/resources/developer-users.d.ts.map +1 -1
  116. package/resources/developer-users.js +2 -1
  117. package/resources/developer-users.js.map +1 -1
  118. package/resources/developer-users.mjs +2 -1
  119. package/resources/developer-users.mjs.map +1 -1
  120. package/resources/hire-requirements.d.mts +8 -74
  121. package/resources/hire-requirements.d.mts.map +1 -1
  122. package/resources/hire-requirements.d.ts +8 -74
  123. package/resources/hire-requirements.d.ts.map +1 -1
  124. package/resources/hire-requirements.js +3 -19
  125. package/resources/hire-requirements.js.map +1 -1
  126. package/resources/hire-requirements.mjs +3 -19
  127. package/resources/hire-requirements.mjs.map +1 -1
  128. package/resources/hires.d.mts +677 -142
  129. package/resources/hires.d.mts.map +1 -1
  130. package/resources/hires.d.ts +677 -142
  131. package/resources/hires.d.ts.map +1 -1
  132. package/resources/hires.js +3 -4
  133. package/resources/hires.js.map +1 -1
  134. package/resources/hires.mjs +3 -4
  135. package/resources/hires.mjs.map +1 -1
  136. package/resources/index.d.mts +2 -0
  137. package/resources/index.d.mts.map +1 -1
  138. package/resources/index.d.ts +2 -0
  139. package/resources/index.d.ts.map +1 -1
  140. package/resources/index.js +7 -2
  141. package/resources/index.js.map +1 -1
  142. package/resources/index.mjs +2 -0
  143. package/resources/index.mjs.map +1 -1
  144. package/resources/listing-submissions.d.mts +1 -1
  145. package/resources/listing-submissions.d.ts +1 -1
  146. package/resources/listing-submissions.js +1 -1
  147. package/resources/listing-submissions.mjs +1 -1
  148. package/resources/listing-transitions.d.mts +1 -1
  149. package/resources/listing-transitions.d.ts +1 -1
  150. package/resources/listing-transitions.js +1 -1
  151. package/resources/listing-transitions.mjs +1 -1
  152. package/resources/listing.d.mts +1 -1
  153. package/resources/listing.d.ts +1 -1
  154. package/resources/listing.js +1 -1
  155. package/resources/listing.mjs +1 -1
  156. package/resources/payroll-payment-mode-changes.d.mts +102 -0
  157. package/resources/payroll-payment-mode-changes.d.mts.map +1 -0
  158. package/resources/payroll-payment-mode-changes.d.ts +102 -0
  159. package/resources/payroll-payment-mode-changes.d.ts.map +1 -0
  160. package/resources/payroll-payment-mode-changes.js +54 -0
  161. package/resources/payroll-payment-mode-changes.js.map +1 -0
  162. package/resources/payroll-payment-mode-changes.mjs +50 -0
  163. package/resources/payroll-payment-mode-changes.mjs.map +1 -0
  164. package/resources/payroll-runs/index.d.mts +1 -0
  165. package/resources/payroll-runs/index.d.mts.map +1 -1
  166. package/resources/payroll-runs/index.d.ts +1 -0
  167. package/resources/payroll-runs/index.d.ts.map +1 -1
  168. package/resources/payroll-runs/index.js +3 -1
  169. package/resources/payroll-runs/index.js.map +1 -1
  170. package/resources/payroll-runs/index.mjs +1 -0
  171. package/resources/payroll-runs/index.mjs.map +1 -1
  172. package/resources/payroll-runs/off-cycle.d.mts +322 -0
  173. package/resources/payroll-runs/off-cycle.d.mts.map +1 -0
  174. package/resources/payroll-runs/off-cycle.d.ts +322 -0
  175. package/resources/payroll-runs/off-cycle.d.ts.map +1 -0
  176. package/resources/payroll-runs/off-cycle.js +112 -0
  177. package/resources/payroll-runs/off-cycle.js.map +1 -0
  178. package/resources/payroll-runs/off-cycle.mjs +108 -0
  179. package/resources/payroll-runs/off-cycle.mjs.map +1 -0
  180. package/resources/payroll-runs/payroll-runs.d.mts +4 -0
  181. package/resources/payroll-runs/payroll-runs.d.mts.map +1 -1
  182. package/resources/payroll-runs/payroll-runs.d.ts +4 -0
  183. package/resources/payroll-runs/payroll-runs.d.ts.map +1 -1
  184. package/resources/payroll-runs/payroll-runs.js +4 -0
  185. package/resources/payroll-runs/payroll-runs.js.map +1 -1
  186. package/resources/payroll-runs/payroll-runs.mjs +4 -0
  187. package/resources/payroll-runs/payroll-runs.mjs.map +1 -1
  188. package/resources/sandboxes.d.mts +17 -11
  189. package/resources/sandboxes.d.mts.map +1 -1
  190. package/resources/sandboxes.d.ts +17 -11
  191. package/resources/sandboxes.d.ts.map +1 -1
  192. package/resources/sandboxes.js +1 -3
  193. package/resources/sandboxes.js.map +1 -1
  194. package/resources/sandboxes.mjs +1 -3
  195. package/resources/sandboxes.mjs.map +1 -1
  196. package/resources/variable-compensation-payout-labels.d.mts +3 -2
  197. package/resources/variable-compensation-payout-labels.d.mts.map +1 -1
  198. package/resources/variable-compensation-payout-labels.d.ts +3 -2
  199. package/resources/variable-compensation-payout-labels.d.ts.map +1 -1
  200. package/resources/variable-compensation-payout-labels.js +3 -2
  201. package/resources/variable-compensation-payout-labels.js.map +1 -1
  202. package/resources/variable-compensation-payout-labels.mjs +3 -2
  203. package/resources/variable-compensation-payout-labels.mjs.map +1 -1
  204. package/resources/variable-compensation-payout-types.d.mts +2 -2
  205. package/resources/variable-compensation-payout-types.d.ts +2 -2
  206. package/resources/variable-compensation-payout-types.js +2 -2
  207. package/resources/variable-compensation-payout-types.mjs +2 -2
  208. package/resources/variable-compensation-payouts.d.mts +5 -2
  209. package/resources/variable-compensation-payouts.d.mts.map +1 -1
  210. package/resources/variable-compensation-payouts.d.ts +5 -2
  211. package/resources/variable-compensation-payouts.d.ts.map +1 -1
  212. package/resources/variable-compensation-payouts.js +5 -2
  213. package/resources/variable-compensation-payouts.js.map +1 -1
  214. package/resources/variable-compensation-payouts.mjs +5 -2
  215. package/resources/variable-compensation-payouts.mjs.map +1 -1
  216. package/src/client.ts +38 -0
  217. package/src/lib/charts/README.md +114 -0
  218. package/src/lib/charts/builders.ts +90 -0
  219. package/src/lib/charts/describe.ts +67 -0
  220. package/src/lib/charts/errors.ts +48 -0
  221. package/src/lib/charts/evaluate.ts +114 -0
  222. package/src/lib/charts/guards.ts +42 -0
  223. package/src/lib/charts/schema.ts +72 -0
  224. package/src/lib/charts/types.ts +113 -0
  225. package/src/lib/charts.ts +43 -0
  226. package/src/lib/manifest/_existing-component-fields.ts +2 -0
  227. package/src/lib/manifest/existing-manifest-context.ts +22 -0
  228. package/src/lib/manifest/workflow/index.ts +64 -0
  229. package/src/resources/activity-log.ts +645 -0
  230. package/src/resources/compensations.ts +1 -1
  231. package/src/resources/developer-program-application.ts +1 -1
  232. package/src/resources/developer-users.ts +2 -1
  233. package/src/resources/hire-requirements.ts +8 -85
  234. package/src/resources/hires.ts +866 -213
  235. package/src/resources/index.ts +13 -0
  236. package/src/resources/listing-submissions.ts +1 -1
  237. package/src/resources/listing-transitions.ts +1 -1
  238. package/src/resources/listing.ts +1 -1
  239. package/src/resources/payroll-payment-mode-changes.ts +121 -0
  240. package/src/resources/payroll-runs/index.ts +1 -0
  241. package/src/resources/payroll-runs/off-cycle.ts +372 -0
  242. package/src/resources/payroll-runs/payroll-runs.ts +10 -0
  243. package/src/resources/sandboxes.ts +17 -11
  244. package/src/resources/variable-compensation-payout-labels.ts +3 -2
  245. package/src/resources/variable-compensation-payout-types.ts +2 -2
  246. package/src/resources/variable-compensation-payouts.ts +5 -2
  247. package/src/version.ts +1 -1
  248. package/version.d.mts +1 -1
  249. package/version.d.ts +1 -1
  250. package/version.js +1 -1
  251. package/version.mjs +1 -1
@@ -0,0 +1,645 @@
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 * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Visible Activity Log events recorded for the company
13
+ */
14
+ export class ActivityLog extends APIResource {
15
+ /**
16
+ * Lists only Activity Log events retained from the last 90 days that are visible
17
+ * to the caller. Linked child events are omitted. An occurred_at filter before the
18
+ * retention window returns an empty page, not older history. Full admins and
19
+ * Activity Log admins see company-wide events; other admins see only events for
20
+ * app installations they fully administer. A caller with no administered app
21
+ * installation receives 403. The targets.id filter does not match GROUP or
22
+ * SPOKE_USER targets.
23
+ *
24
+ * - Requires: `Activity Log Platform API`
25
+ * - Filterable fields: `occurred_at`, `event_type`, `worker_id`, `targets.id`,
26
+ * `source_app_handle`
27
+ * - Expandable fields: `worker`
28
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `occurred_at`
29
+ *
30
+ * @example HTTP
31
+ * Representative request and response shapes.
32
+ * ```
33
+ * GET /activity-log/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
34
+ * Host: rest.ripplingapis.com
35
+ * Accept: application/json
36
+ * Rippling-Api-Version: 2024-08-01
37
+ *
38
+ * HTTP/1.1 200 OK
39
+ * Content-Type: application/json
40
+ *
41
+ * {
42
+ * "__meta": {
43
+ * "redacted_fields": [
44
+ * {
45
+ * "name": "date_of_birth",
46
+ * "reason": "Insufficient entitlements"
47
+ * }
48
+ * ]
49
+ * },
50
+ * "results": [
51
+ * {
52
+ * "id": "string",
53
+ * "created_at": "string",
54
+ * "updated_at": "string",
55
+ * "occurred_at": "string",
56
+ * "event_type": "string",
57
+ * "status": "SUCCESS",
58
+ * "actor_type": "WORKER",
59
+ * "worker_id": "string",
60
+ * "worker": {
61
+ * "id": "string",
62
+ * "created_at": "string",
63
+ * "updated_at": "string",
64
+ * "user_id": "string",
65
+ * "user": {},
66
+ * "is_manager": "string",
67
+ * "manager_id": "string",
68
+ * "manager": {},
69
+ * "legal_entity_id": "string",
70
+ * "legal_entity": {},
71
+ * "country": "AF",
72
+ * "start_date": "string",
73
+ * "end_date": "string",
74
+ * "number": "string",
75
+ * "work_email": "string",
76
+ * "personal_email": "string",
77
+ * "status": "INIT",
78
+ * "location": {},
79
+ * "employment_type_id": "string",
80
+ * "employment_type": {},
81
+ * "gender": "MALE",
82
+ * "date_of_birth": "string",
83
+ * "race": "BLACK",
84
+ * "ethnicity": "HISPANIC_OR_LATINO",
85
+ * "citizenship": "AF",
86
+ * "compensation_id": "string",
87
+ * "compensation": {},
88
+ * "overtime_exemption": "EXEMPT",
89
+ * "department_id": "string",
90
+ * "department": {},
91
+ * "teams_id": [],
92
+ * "teams": [],
93
+ * "title": "string",
94
+ * "title_effective_date": "string",
95
+ * "level_id": "string",
96
+ * "level": {},
97
+ * "job_function_id": "string",
98
+ * "job_function": {},
99
+ * "termination_details": {},
100
+ * "pay_schedule_id": "string",
101
+ * "work_schedule": {},
102
+ * "compensation_grade": {},
103
+ * "original_start_date": "string",
104
+ * "custom_fields": [],
105
+ * "country_fields": {},
106
+ * "business_partners_id": [],
107
+ * "business_partners": []
108
+ * },
109
+ * "targets": [
110
+ * {}
111
+ * ],
112
+ * "source_app_handle": "string",
113
+ * "reason": {
114
+ * "code": "string",
115
+ * "message": "string"
116
+ * },
117
+ * "request_context": {
118
+ * "ip_address": "string",
119
+ * "device": "string",
120
+ * "browser": "string",
121
+ * "operating_system": "string",
122
+ * "city": "string",
123
+ * "state": "string",
124
+ * "country": "string",
125
+ * "latitude": "string",
126
+ * "longitude": "string",
127
+ * "accuracy_radius": "string"
128
+ * }
129
+ * }
130
+ * ],
131
+ * "next_link": "string"
132
+ * }
133
+ * ```
134
+ */
135
+ list(
136
+ query: ActivityLogListParams | null | undefined = {},
137
+ options?: RequestOptions,
138
+ ): PagePromise<ActivityLogListResponsesPageCursorURL, ActivityLogListResponse> {
139
+ return this._client.getAPIList('/activity-log/', PageCursorURL<ActivityLogListResponse>, {
140
+ query,
141
+ ...options,
142
+ });
143
+ }
144
+
145
+ /**
146
+ * Retrieves one Activity Log event from the same 90-day visibility set as the list
147
+ * endpoint. Full admins and Activity Log admins can retrieve company-wide events;
148
+ * other admins can retrieve only events for app installations they fully
149
+ * administer. An admin with no administered app installation receives 403. An ID
150
+ * outside that visibility set, including an event for an installation the caller
151
+ * does not administer, returns 404.
152
+ *
153
+ * @example HTTP
154
+ * Representative request and response shapes.
155
+ * ```
156
+ * GET /activity-log/{id}/?expand=expand HTTP/1.1
157
+ * Host: rest.ripplingapis.com
158
+ * Accept: application/json
159
+ * Rippling-Api-Version: 2024-08-01
160
+ *
161
+ * HTTP/1.1 200 OK
162
+ * Content-Type: application/json
163
+ *
164
+ * {
165
+ * "__meta": {
166
+ * "redacted_fields": [
167
+ * {}
168
+ * ]
169
+ * }
170
+ * }
171
+ * ```
172
+ */
173
+ retrieve(
174
+ id: string,
175
+ query: ActivityLogRetrieveParams | null | undefined = {},
176
+ options?: RequestOptions,
177
+ ): APIPromise<ActivityLogRetrieveResponse> {
178
+ return this._client.get(path`/activity-log/${id}/`, { query, ...options });
179
+ }
180
+ }
181
+
182
+ export type ActivityLogListResponsesPageCursorURL = PageCursorURL<ActivityLogListResponse>;
183
+
184
+ /**
185
+ * One visible Activity Log event retained from the last 90 days.
186
+ */
187
+ export interface ActivityLogListResponse {
188
+ /**
189
+ * Identifier field
190
+ */
191
+ id: string;
192
+
193
+ /**
194
+ * Record creation date
195
+ */
196
+ created_at: string;
197
+
198
+ /**
199
+ * Record update date
200
+ */
201
+ updated_at: string;
202
+
203
+ /**
204
+ * The kind of actor that initiated the event. WORKER is a Rippling worker;
205
+ * INTERNAL_BY_WORKER is an internal API request triggered by a worker; SYSTEM is
206
+ * an automated Rippling system process; EXTERNAL is an external system or
207
+ * integration; RIPPLING_MDM is Rippling MDM; PARTNER is a Rippling partner, but
208
+ * the partner identity is not returned; and PROXY is Rippling staff or support
209
+ * acting through proxy. Null when no actor type was recorded.
210
+ */
211
+ actor_type?: 'WORKER' | 'SYSTEM' | 'EXTERNAL' | 'INTERNAL_BY_WORKER' | 'RIPPLING_MDM' | 'PARTNER' | 'PROXY';
212
+
213
+ /**
214
+ * The open UPPER_SNAKE_CASE Activity Log code, such as USER_LOGIN_SUCCESS. New
215
+ * codes can appear over time.
216
+ */
217
+ event_type?: string;
218
+
219
+ /**
220
+ * The activity occurrence time as an ISO 8601 UTC timestamp. Unlike created_at,
221
+ * which records when the Activity Log record was persisted, occurred_at records
222
+ * when the underlying activity happened.
223
+ */
224
+ occurred_at?: string;
225
+
226
+ /**
227
+ * Why the activity occurred. Null when no reason was recorded.
228
+ */
229
+ reason?: ActivityLogListResponse.Reason;
230
+
231
+ /**
232
+ * Request and approximate location details captured for the activity. Null for
233
+ * non-request events.
234
+ */
235
+ request_context?: ActivityLogListResponse.RequestContext;
236
+
237
+ /**
238
+ * The public app handle used by GET /app-users/ for the Rippling app associated
239
+ * with the activity. Null when the activity is not app-specific.
240
+ */
241
+ source_app_handle?: string;
242
+
243
+ /**
244
+ * The outcome of the activity. SUCCESS means the activity completed successfully;
245
+ * FAILURE means the activity failed. Null when no outcome was recorded.
246
+ */
247
+ status?: 'SUCCESS' | 'FAILURE';
248
+
249
+ /**
250
+ * The resources affected by the activity. Empty when no targets were recorded.
251
+ */
252
+ targets?: Array<ActivityLogListResponse.Target>;
253
+
254
+ /**
255
+ * The worker who initiated the activity. Request with expand=worker and the
256
+ * workers.read OAuth scope to return the Worker resource.
257
+ *
258
+ * Expandable field
259
+ */
260
+ worker?: WorkersAPI.Worker;
261
+
262
+ /**
263
+ * The Platform worker ID from GET /workers/{id}/ when the actor is a worker. Null
264
+ * when the actor is not a worker.
265
+ */
266
+ worker_id?: string;
267
+ }
268
+
269
+ export namespace ActivityLogListResponse {
270
+ /**
271
+ * Why the activity occurred. Null when no reason was recorded.
272
+ */
273
+ export interface Reason {
274
+ /**
275
+ * The machine-readable reason code recorded for the event. Null when no reason was
276
+ * recorded.
277
+ */
278
+ code?: string;
279
+
280
+ /**
281
+ * The human-readable meaning of the reason code. Null when no reason was recorded.
282
+ */
283
+ message?: string;
284
+ }
285
+
286
+ /**
287
+ * Request and approximate location details captured for the activity. Null for
288
+ * non-request events.
289
+ */
290
+ export interface RequestContext {
291
+ /**
292
+ * The accuracy radius of the IP-derived location in kilometers. Null without the
293
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
294
+ */
295
+ accuracy_radius?: number;
296
+
297
+ /**
298
+ * The browser family parsed from the request user agent. Returned with the
299
+ * activity-log.read scope. Null when unavailable.
300
+ */
301
+ browser?: string;
302
+
303
+ /**
304
+ * The city resolved from the request IP address. Null without the
305
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
306
+ */
307
+ city?: string;
308
+
309
+ /**
310
+ * The country resolved from the request IP address. Null without the
311
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
312
+ */
313
+ country?: string;
314
+
315
+ /**
316
+ * The device family parsed from the request user agent. Returned with the
317
+ * activity-log.read scope. Null when unavailable.
318
+ */
319
+ device?: string;
320
+
321
+ /**
322
+ * The IPv4 or IPv6 address associated with the request. Null without the
323
+ * activity-log.sensitive-data.read scope.
324
+ */
325
+ ip_address?: string;
326
+
327
+ /**
328
+ * The approximate latitude in decimal degrees resolved from the request IP
329
+ * address. Null without the activity-log.sensitive-data.read scope or when
330
+ * geolocation is unresolved.
331
+ */
332
+ latitude?: number;
333
+
334
+ /**
335
+ * The approximate longitude in decimal degrees resolved from the request IP
336
+ * address. Null without the activity-log.sensitive-data.read scope or when
337
+ * geolocation is unresolved.
338
+ */
339
+ longitude?: number;
340
+
341
+ /**
342
+ * The operating system parsed from the request user agent. Returned with the
343
+ * activity-log.read scope. Null when unavailable.
344
+ */
345
+ operating_system?: string;
346
+
347
+ /**
348
+ * The state or region resolved from the request IP address. Null without the
349
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
350
+ */
351
+ state?: string;
352
+ }
353
+
354
+ /**
355
+ * A resource or internal entity affected by an Activity Log event.
356
+ */
357
+ export interface Target {
358
+ /**
359
+ * The ID of the resource affected by the event. Null when the event target has no
360
+ * referenced resource. Filtering by targets.id is not supported for GROUP or
361
+ * SPOKE_USER targets.
362
+ */
363
+ id?: string;
364
+
365
+ /**
366
+ * The kind of target. WORKER uses the worker ID from GET /workers/{id}/; DEVICE
367
+ * uses the device ID from GET /devices/{id}/; GROUP uses the group ID from GET
368
+ * /supergroups/{id}/; SPOKE_USER uses the app-user ID from GET /app-users/{id}/.
369
+ * COMPUTER is deprecated in favor of DEVICE and its ID is not a Platform resource
370
+ * ID. IDs for SPOKE, RPASS_ITEM, RPASS_FOLDER, SCHEDULED_CHANGE, BDR_POLICY,
371
+ * AUTH_RULE, COMPANY_AUTH_RULE, USER_ACCOUNT, HARDWARE_SCRIPT,
372
+ * HARDWARE_CONFIGURATION, SOFTWARE_UPDATE, OS_SOFTWARE_UPDATE, WORK_EMAIL_POLICY,
373
+ * OFFBOARDING_POLICY, REMOTE_ACCESS_SESSION_OPTIONS, and
374
+ * REMOTE_ACCESS_SESSION_ERROR_DETAILS are not Platform resource IDs.
375
+ */
376
+ type?:
377
+ | 'WORKER'
378
+ | 'SPOKE'
379
+ | 'RPASS_ITEM'
380
+ | 'SPOKE_USER'
381
+ | 'GROUP'
382
+ | 'RPASS_FOLDER'
383
+ | 'SCHEDULED_CHANGE'
384
+ | 'COMPUTER'
385
+ | 'BDR_POLICY'
386
+ | 'AUTH_RULE'
387
+ | 'COMPANY_AUTH_RULE'
388
+ | 'DEVICE'
389
+ | 'USER_ACCOUNT'
390
+ | 'HARDWARE_SCRIPT'
391
+ | 'HARDWARE_CONFIGURATION'
392
+ | 'SOFTWARE_UPDATE'
393
+ | 'OS_SOFTWARE_UPDATE'
394
+ | 'WORK_EMAIL_POLICY'
395
+ | 'OFFBOARDING_POLICY'
396
+ | 'REMOTE_ACCESS_SESSION_OPTIONS'
397
+ | 'REMOTE_ACCESS_SESSION_ERROR_DETAILS';
398
+ }
399
+ }
400
+
401
+ /**
402
+ * Meta information for the response.
403
+ */
404
+ export interface ActivityLogRetrieveResponse extends BusinessPartnersAPI.Meta {
405
+ /**
406
+ * Identifier field
407
+ */
408
+ id: string;
409
+
410
+ /**
411
+ * Record creation date
412
+ */
413
+ created_at: string;
414
+
415
+ /**
416
+ * Record update date
417
+ */
418
+ updated_at: string;
419
+
420
+ /**
421
+ * The kind of actor that initiated the event. WORKER is a Rippling worker;
422
+ * INTERNAL_BY_WORKER is an internal API request triggered by a worker; SYSTEM is
423
+ * an automated Rippling system process; EXTERNAL is an external system or
424
+ * integration; RIPPLING_MDM is Rippling MDM; PARTNER is a Rippling partner, but
425
+ * the partner identity is not returned; and PROXY is Rippling staff or support
426
+ * acting through proxy. Null when no actor type was recorded.
427
+ */
428
+ actor_type?: 'WORKER' | 'SYSTEM' | 'EXTERNAL' | 'INTERNAL_BY_WORKER' | 'RIPPLING_MDM' | 'PARTNER' | 'PROXY';
429
+
430
+ /**
431
+ * The open UPPER_SNAKE_CASE Activity Log code, such as USER_LOGIN_SUCCESS. New
432
+ * codes can appear over time.
433
+ */
434
+ event_type?: string;
435
+
436
+ /**
437
+ * The activity occurrence time as an ISO 8601 UTC timestamp. Unlike created_at,
438
+ * which records when the Activity Log record was persisted, occurred_at records
439
+ * when the underlying activity happened.
440
+ */
441
+ occurred_at?: string;
442
+
443
+ /**
444
+ * Why the activity occurred. Null when no reason was recorded.
445
+ */
446
+ reason?: ActivityLogRetrieveResponse.Reason;
447
+
448
+ /**
449
+ * Request and approximate location details captured for the activity. Null for
450
+ * non-request events.
451
+ */
452
+ request_context?: ActivityLogRetrieveResponse.RequestContext;
453
+
454
+ /**
455
+ * The public app handle used by GET /app-users/ for the Rippling app associated
456
+ * with the activity. Null when the activity is not app-specific.
457
+ */
458
+ source_app_handle?: string;
459
+
460
+ /**
461
+ * The outcome of the activity. SUCCESS means the activity completed successfully;
462
+ * FAILURE means the activity failed. Null when no outcome was recorded.
463
+ */
464
+ status?: 'SUCCESS' | 'FAILURE';
465
+
466
+ /**
467
+ * The resources affected by the activity. Empty when no targets were recorded.
468
+ */
469
+ targets?: Array<ActivityLogRetrieveResponse.Target>;
470
+
471
+ /**
472
+ * The worker who initiated the activity. Request with expand=worker and the
473
+ * workers.read OAuth scope to return the Worker resource.
474
+ *
475
+ * Expandable field
476
+ */
477
+ worker?: WorkersAPI.Worker;
478
+
479
+ /**
480
+ * The Platform worker ID from GET /workers/{id}/ when the actor is a worker. Null
481
+ * when the actor is not a worker.
482
+ */
483
+ worker_id?: string;
484
+ }
485
+
486
+ export namespace ActivityLogRetrieveResponse {
487
+ /**
488
+ * Why the activity occurred. Null when no reason was recorded.
489
+ */
490
+ export interface Reason {
491
+ /**
492
+ * The machine-readable reason code recorded for the event. Null when no reason was
493
+ * recorded.
494
+ */
495
+ code?: string;
496
+
497
+ /**
498
+ * The human-readable meaning of the reason code. Null when no reason was recorded.
499
+ */
500
+ message?: string;
501
+ }
502
+
503
+ /**
504
+ * Request and approximate location details captured for the activity. Null for
505
+ * non-request events.
506
+ */
507
+ export interface RequestContext {
508
+ /**
509
+ * The accuracy radius of the IP-derived location in kilometers. Null without the
510
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
511
+ */
512
+ accuracy_radius?: number;
513
+
514
+ /**
515
+ * The browser family parsed from the request user agent. Returned with the
516
+ * activity-log.read scope. Null when unavailable.
517
+ */
518
+ browser?: string;
519
+
520
+ /**
521
+ * The city resolved from the request IP address. Null without the
522
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
523
+ */
524
+ city?: string;
525
+
526
+ /**
527
+ * The country resolved from the request IP address. Null without the
528
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
529
+ */
530
+ country?: string;
531
+
532
+ /**
533
+ * The device family parsed from the request user agent. Returned with the
534
+ * activity-log.read scope. Null when unavailable.
535
+ */
536
+ device?: string;
537
+
538
+ /**
539
+ * The IPv4 or IPv6 address associated with the request. Null without the
540
+ * activity-log.sensitive-data.read scope.
541
+ */
542
+ ip_address?: string;
543
+
544
+ /**
545
+ * The approximate latitude in decimal degrees resolved from the request IP
546
+ * address. Null without the activity-log.sensitive-data.read scope or when
547
+ * geolocation is unresolved.
548
+ */
549
+ latitude?: number;
550
+
551
+ /**
552
+ * The approximate longitude in decimal degrees resolved from the request IP
553
+ * address. Null without the activity-log.sensitive-data.read scope or when
554
+ * geolocation is unresolved.
555
+ */
556
+ longitude?: number;
557
+
558
+ /**
559
+ * The operating system parsed from the request user agent. Returned with the
560
+ * activity-log.read scope. Null when unavailable.
561
+ */
562
+ operating_system?: string;
563
+
564
+ /**
565
+ * The state or region resolved from the request IP address. Null without the
566
+ * activity-log.sensitive-data.read scope or when geolocation is unresolved.
567
+ */
568
+ state?: string;
569
+ }
570
+
571
+ /**
572
+ * A resource or internal entity affected by an Activity Log event.
573
+ */
574
+ export interface Target {
575
+ /**
576
+ * The ID of the resource affected by the event. Null when the event target has no
577
+ * referenced resource. Filtering by targets.id is not supported for GROUP or
578
+ * SPOKE_USER targets.
579
+ */
580
+ id?: string;
581
+
582
+ /**
583
+ * The kind of target. WORKER uses the worker ID from GET /workers/{id}/; DEVICE
584
+ * uses the device ID from GET /devices/{id}/; GROUP uses the group ID from GET
585
+ * /supergroups/{id}/; SPOKE_USER uses the app-user ID from GET /app-users/{id}/.
586
+ * COMPUTER is deprecated in favor of DEVICE and its ID is not a Platform resource
587
+ * ID. IDs for SPOKE, RPASS_ITEM, RPASS_FOLDER, SCHEDULED_CHANGE, BDR_POLICY,
588
+ * AUTH_RULE, COMPANY_AUTH_RULE, USER_ACCOUNT, HARDWARE_SCRIPT,
589
+ * HARDWARE_CONFIGURATION, SOFTWARE_UPDATE, OS_SOFTWARE_UPDATE, WORK_EMAIL_POLICY,
590
+ * OFFBOARDING_POLICY, REMOTE_ACCESS_SESSION_OPTIONS, and
591
+ * REMOTE_ACCESS_SESSION_ERROR_DETAILS are not Platform resource IDs.
592
+ */
593
+ type?:
594
+ | 'WORKER'
595
+ | 'SPOKE'
596
+ | 'RPASS_ITEM'
597
+ | 'SPOKE_USER'
598
+ | 'GROUP'
599
+ | 'RPASS_FOLDER'
600
+ | 'SCHEDULED_CHANGE'
601
+ | 'COMPUTER'
602
+ | 'BDR_POLICY'
603
+ | 'AUTH_RULE'
604
+ | 'COMPANY_AUTH_RULE'
605
+ | 'DEVICE'
606
+ | 'USER_ACCOUNT'
607
+ | 'HARDWARE_SCRIPT'
608
+ | 'HARDWARE_CONFIGURATION'
609
+ | 'SOFTWARE_UPDATE'
610
+ | 'OS_SOFTWARE_UPDATE'
611
+ | 'WORK_EMAIL_POLICY'
612
+ | 'OFFBOARDING_POLICY'
613
+ | 'REMOTE_ACCESS_SESSION_OPTIONS'
614
+ | 'REMOTE_ACCESS_SESSION_ERROR_DETAILS';
615
+ }
616
+ }
617
+
618
+ export interface ActivityLogListParams {
619
+ cursor?: string;
620
+
621
+ expand?: string;
622
+
623
+ filter?: string;
624
+
625
+ /**
626
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
627
+ */
628
+ limit?: number;
629
+
630
+ order_by?: string;
631
+ }
632
+
633
+ export interface ActivityLogRetrieveParams {
634
+ expand?: string;
635
+ }
636
+
637
+ export declare namespace ActivityLog {
638
+ export {
639
+ type ActivityLogListResponse as ActivityLogListResponse,
640
+ type ActivityLogRetrieveResponse as ActivityLogRetrieveResponse,
641
+ type ActivityLogListResponsesPageCursorURL as ActivityLogListResponsesPageCursorURL,
642
+ type ActivityLogListParams as ActivityLogListParams,
643
+ type ActivityLogRetrieveParams as ActivityLogRetrieveParams,
644
+ };
645
+ }
@@ -13,7 +13,7 @@ import { path } from '../internal/utils/path';
13
13
  */
14
14
  export class Compensations extends APIResource {
15
15
  /**
16
- * A list of compensations.
16
+ * Paginates through the compensation the authenticated user has access to.
17
17
  *
18
18
  * - Requires: `API Tier 1`
19
19
  * - Expandable fields: `worker`
@@ -10,7 +10,7 @@ import { RequestOptions } from '../internal/request-options';
10
10
  */
11
11
  export class DeveloperProgramApplication extends APIResource {
12
12
  /**
13
- * A list of developer program application.
13
+ * Get the Developer Program application for the authenticated company.
14
14
  *
15
15
  * - Requires: `Developer Program`
16
16
  *
@@ -9,7 +9,8 @@ import { RequestOptions } from '../internal/request-options';
9
9
  */
10
10
  export class DeveloperUsers extends APIResource {
11
11
  /**
12
- * A list of App Shop publisher users.
12
+ * List App Shop Publishers Super Group members for the authenticated company.
13
+ * Filterable: email, role_state.
13
14
  *
14
15
  * - Requires: `Developer Program`
15
16
  * - Filterable fields: `email`, `role_state`