@rippling/rippling-sdk 0.2.0-alpha.62 → 0.2.0-alpha.64

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 (98) hide show
  1. package/client.d.mts +12 -12
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +12 -12
  4. package/client.d.ts.map +1 -1
  5. package/client.js +12 -12
  6. package/client.js.map +1 -1
  7. package/client.mjs +12 -12
  8. package/client.mjs.map +1 -1
  9. package/examples/manifest/dental-practice-management/dental-practice-management.ts +6 -5
  10. package/examples/manifest/gym-membership-management/gym-membership-management.ts +6 -5
  11. package/examples/manifest/simple-todo-app/simple-todo-app.ts +3 -1
  12. package/lib/manifest/custom-object-page-layout.d.mts +0 -6
  13. package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
  14. package/lib/manifest/custom-object-page-layout.d.ts +0 -6
  15. package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
  16. package/lib/manifest/custom-object-page-layout.js +16 -5
  17. package/lib/manifest/custom-object-page-layout.js.map +1 -1
  18. package/lib/manifest/custom-object-page-layout.mjs +16 -5
  19. package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
  20. package/lib/manifest/index.d.mts +2 -2
  21. package/lib/manifest/index.d.mts.map +1 -1
  22. package/lib/manifest/index.d.ts +2 -2
  23. package/lib/manifest/index.d.ts.map +1 -1
  24. package/lib/manifest/index.js.map +1 -1
  25. package/lib/manifest/index.mjs.map +1 -1
  26. package/lib/manifest/manifest-function.d.mts +4 -7
  27. package/lib/manifest/manifest-function.d.mts.map +1 -1
  28. package/lib/manifest/manifest-function.d.ts +4 -7
  29. package/lib/manifest/manifest-function.d.ts.map +1 -1
  30. package/lib/manifest/manifest-function.js +7 -11
  31. package/lib/manifest/manifest-function.js.map +1 -1
  32. package/lib/manifest/manifest-function.mjs +7 -10
  33. package/lib/manifest/manifest-function.mjs.map +1 -1
  34. package/package.json +1 -1
  35. package/resources/app-users.d.mts +186 -0
  36. package/resources/app-users.d.mts.map +1 -0
  37. package/resources/app-users.d.ts +186 -0
  38. package/resources/app-users.d.ts.map +1 -0
  39. package/resources/app-users.js +32 -0
  40. package/resources/app-users.js.map +1 -0
  41. package/resources/app-users.mjs +28 -0
  42. package/resources/app-users.mjs.map +1 -0
  43. package/resources/devices.d.mts +272 -0
  44. package/resources/devices.d.mts.map +1 -0
  45. package/resources/devices.d.ts +272 -0
  46. package/resources/devices.d.ts.map +1 -0
  47. package/resources/devices.js +32 -0
  48. package/resources/devices.js.map +1 -0
  49. package/resources/devices.mjs +28 -0
  50. package/resources/devices.mjs.map +1 -0
  51. package/resources/functions/deployments.d.mts +8 -0
  52. package/resources/functions/deployments.d.mts.map +1 -1
  53. package/resources/functions/deployments.d.ts +8 -0
  54. package/resources/functions/deployments.d.ts.map +1 -1
  55. package/resources/index.d.mts +2 -2
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +2 -2
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +6 -6
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +2 -2
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/workers.d.mts +13 -0
  64. package/resources/workers.d.mts.map +1 -1
  65. package/resources/workers.d.ts +13 -0
  66. package/resources/workers.d.ts.map +1 -1
  67. package/src/client.ts +44 -38
  68. package/src/lib/manifest/custom-object-page-layout.ts +14 -9
  69. package/src/lib/manifest/index.ts +0 -3
  70. package/src/lib/manifest/manifest-function.ts +8 -18
  71. package/src/resources/app-users.ts +270 -0
  72. package/src/resources/devices.ts +496 -0
  73. package/src/resources/functions/deployments.ts +10 -0
  74. package/src/resources/index.ts +16 -13
  75. package/src/resources/workers.ts +15 -0
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
  81. package/resources/worker-change-fields.d.mts +0 -45
  82. package/resources/worker-change-fields.d.mts.map +0 -1
  83. package/resources/worker-change-fields.d.ts +0 -45
  84. package/resources/worker-change-fields.d.ts.map +0 -1
  85. package/resources/worker-change-fields.js +0 -21
  86. package/resources/worker-change-fields.js.map +0 -1
  87. package/resources/worker-change-fields.mjs +0 -17
  88. package/resources/worker-change-fields.mjs.map +0 -1
  89. package/resources/worker-changes.d.mts +0 -267
  90. package/resources/worker-changes.d.mts.map +0 -1
  91. package/resources/worker-changes.d.ts +0 -267
  92. package/resources/worker-changes.d.ts.map +0 -1
  93. package/resources/worker-changes.js +0 -36
  94. package/resources/worker-changes.js.map +0 -1
  95. package/resources/worker-changes.mjs +0 -32
  96. package/resources/worker-changes.mjs.map +0 -1
  97. package/src/resources/worker-change-fields.ts +0 -64
  98. package/src/resources/worker-changes.ts +0 -354
@@ -0,0 +1,496 @@
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
+ * Devices (laptops, desktops, phones, tablets) managed by Rippling
13
+ */
14
+ export class Devices extends APIResource {
15
+ /**
16
+ * A list of devices.
17
+ *
18
+ * - Requires: `API Tier 2`
19
+ * - Filterable fields: `worker_id`, `serial_number`, `lifecycle_state`,
20
+ * `enrollment_status`
21
+ * - Expandable fields: `worker`, `pending_actions`
22
+ * - Sortable fields: `id`, `created_at`, `updated_at`
23
+ */
24
+ list(
25
+ query: DeviceListParams | null | undefined = {},
26
+ options?: RequestOptions,
27
+ ): PagePromise<DeviceListResponsesPageCursorURL, DeviceListResponse> {
28
+ return this._client.getAPIList('/devices/', PageCursorURL<DeviceListResponse>, { query, ...options });
29
+ }
30
+
31
+ /**
32
+ * Retrieve a specific device
33
+ */
34
+ retrieve(
35
+ id: string,
36
+ query: DeviceRetrieveParams | null | undefined = {},
37
+ options?: RequestOptions,
38
+ ): APIPromise<DeviceRetrieveResponse> {
39
+ return this._client.get(path`/devices/${id}/`, { query, ...options });
40
+ }
41
+ }
42
+
43
+ export type DeviceListResponsesPageCursorURL = PageCursorURL<DeviceListResponse>;
44
+
45
+ export interface DeviceListResponse {
46
+ /**
47
+ * Identifier field
48
+ */
49
+ id: string;
50
+
51
+ /**
52
+ * Record creation date
53
+ */
54
+ created_at: string;
55
+
56
+ /**
57
+ * Record update date
58
+ */
59
+ updated_at: string;
60
+
61
+ /**
62
+ * The MDM enrollment status: ENROLLED, UNENROLLED, WAITING_FOR_CONNECTION, ERROR,
63
+ * etc.
64
+ */
65
+ enrollment_status?: 'ENROLLED' | 'WAITING_FOR_CONNECTION' | 'ERROR' | 'UNENROLLED';
66
+
67
+ /**
68
+ * Whether the device's disk is encrypted (FileVault on macOS, BitLocker on
69
+ * Windows).
70
+ */
71
+ is_encrypted?: boolean;
72
+
73
+ /**
74
+ * Whether the device is managed via MDM.
75
+ */
76
+ is_managed?: boolean;
77
+
78
+ /**
79
+ * When the Rippling agent last checked in from this device.
80
+ */
81
+ last_checkin_at?: string;
82
+
83
+ /**
84
+ * When the device last synced with MDM.
85
+ */
86
+ last_mdm_sync_at?: string;
87
+
88
+ /**
89
+ * The device lifecycle state (e.g. ACTIVE, READY, LOCKED, LOST, DECOMMISSIONED).
90
+ */
91
+ lifecycle_state?:
92
+ | 'INIT'
93
+ | 'ACTIVE'
94
+ | 'ACTIVATING'
95
+ | 'LOCKED'
96
+ | 'LOCKING'
97
+ | 'INACTIVE'
98
+ | 'PENDING_MDM'
99
+ | 'CLEANING'
100
+ | 'READY'
101
+ | 'DECOMMISSIONING'
102
+ | 'DECOMMISSIONED'
103
+ | 'FULL_WIPING'
104
+ | 'FULL_WIPED'
105
+ | 'E_CYCLED'
106
+ | 'MDM_LOCKED'
107
+ | 'LOST'
108
+ | 'LOST_PLAYING_SOUND';
109
+
110
+ /**
111
+ * The MDM provider currently recorded on the device (RIPPLING, JAMFCLOUD, INTUNE,
112
+ * KANDJI, etc.). Null when the device is not currently MDM-managed (typical for
113
+ * unenrolled or recently-reset devices).
114
+ */
115
+ mdm_provider?:
116
+ | 'RIPPLING'
117
+ | 'JUMPCLOUD'
118
+ | 'JAMFCLOUD'
119
+ | 'FLEETSMITH'
120
+ | 'HEXNODE'
121
+ | 'MICROMDM'
122
+ | 'MERAKI'
123
+ | 'SOTI'
124
+ | 'ADDIGY'
125
+ | 'FLEETDM'
126
+ | 'KANDJI'
127
+ | 'ZOHO'
128
+ | 'INTUNE'
129
+ | 'OTHER';
130
+
131
+ /**
132
+ * The device hardware model identifier as reported by MDM (e.g. 'MacBookPro18,3',
133
+ * 'iPhone15,2').
134
+ */
135
+ model?: string;
136
+
137
+ /**
138
+ * The device operating system name.
139
+ */
140
+ os_name?: string;
141
+
142
+ /**
143
+ * The device operating system version.
144
+ */
145
+ os_version?: string;
146
+
147
+ /**
148
+ * Actions currently queued against the device (not yet completed). Expandable.
149
+ *
150
+ * Expandable field
151
+ */
152
+ pending_actions?: Array<DeviceListResponse.PendingAction>;
153
+
154
+ /**
155
+ * The IDs of actions currently queued against the device (not yet completed).
156
+ */
157
+ pending_actions_id?: Array<string>;
158
+
159
+ /**
160
+ * The OS platform the device runs: MACOS, WINDOWS, IOS, or IPADOS.
161
+ */
162
+ platform?: 'MACOS' | 'WINDOWS' | 'IOS' | 'IPADOS';
163
+
164
+ /**
165
+ * The device's hardware serial number.
166
+ */
167
+ serial_number?: string;
168
+
169
+ /**
170
+ * The worker this device is currently assigned to.
171
+ *
172
+ * Expandable field
173
+ */
174
+ worker?: WorkersAPI.Worker;
175
+
176
+ /**
177
+ * The ID of the worker this device is currently assigned to. Null if unassigned.
178
+ */
179
+ worker_id?: string;
180
+ }
181
+
182
+ export namespace DeviceListResponse {
183
+ export interface PendingAction {
184
+ /**
185
+ * Identifier field
186
+ */
187
+ id: string;
188
+
189
+ /**
190
+ * Record creation date
191
+ */
192
+ created_at: string;
193
+
194
+ /**
195
+ * Record update date
196
+ */
197
+ updated_at: string;
198
+
199
+ /**
200
+ * The type of the pending device action (e.g. LOCK_DEVICE, RESET_PASSWORD).
201
+ */
202
+ action_type?:
203
+ | 'ADD_USER_TO_FILEVAULT'
204
+ | 'ASSIGN_DEVICE'
205
+ | 'AUTHENTICATE_AGENT'
206
+ | 'CHANGE_FILEVAULT_RECOVERY_KEY'
207
+ | 'CHANGE_PASSWORD'
208
+ | 'CLEAR_PASSCODE'
209
+ | 'CREATE_RIPPLING_ADMIN'
210
+ | 'DELETE_LOCAL_ACCOUNT'
211
+ | 'DEMOTE_ACCOUNT_PERMISSION'
212
+ | 'DISABLE_FIND_MY'
213
+ | 'DISABLE_LOST_MODE'
214
+ | 'DISABLE_REMOTE_DESKTOP'
215
+ | 'ENABLE_LOST_MODE'
216
+ | 'ENABLE_REMOTE_DESKTOP'
217
+ | 'ENFORCE_PASSWORD_POLICY'
218
+ | 'FORCE_CHECK_IN'
219
+ | 'FULL_WIPE'
220
+ | 'GRANT_SECURE_TOKEN'
221
+ | 'INSTALL_ENROLLMENT_PROFILE'
222
+ | 'LOCK_DEVICE'
223
+ | 'LOCK_USER_ACCOUNT'
224
+ | 'LOST_MODE_GET_LOCATION'
225
+ | 'LOST_MODE_PLAY_SOUND'
226
+ | 'PROMOTE_ACCOUNT_PERMISSION'
227
+ | 'RECOVER_AGENT_VIA_MDM'
228
+ | 'REINSTALL_AGENT'
229
+ | 'REINSTALL_ENROLLMENT_PROFILE'
230
+ | 'REMOVE_OTHER_ENROLLMENT_PROFILES'
231
+ | 'RESET_PASSWORD'
232
+ | 'RESTART_DEVICE'
233
+ | 'ROTATE_FILEVAULT_KEY'
234
+ | 'SHUTDOWN_DEVICE'
235
+ | 'SOFT_WIPE'
236
+ | 'TURN_ON_FILEVAULT'
237
+ | 'UNASSIGN_DEVICE'
238
+ | 'UNINSTALL_AGENT'
239
+ | 'UNINSTALL_ANTIVIRUS'
240
+ | 'UNINSTALL_MDM'
241
+ | 'UNLOCK_DEVICE'
242
+ | 'UNLOCK_USER_ACCOUNT'
243
+ | 'UPDATE_OS'
244
+ | 'UNKNOWN';
245
+
246
+ /**
247
+ * When the action was queued.
248
+ */
249
+ queued_at?: string;
250
+
251
+ /**
252
+ * The current state of the pending action (e.g. QUEUED, WAITING_FOR_USER_ACTION).
253
+ */
254
+ state?: string;
255
+ }
256
+ }
257
+
258
+ /**
259
+ * Meta information for the response.
260
+ */
261
+ export interface DeviceRetrieveResponse extends BusinessPartnersAPI.Meta {
262
+ /**
263
+ * Identifier field
264
+ */
265
+ id: string;
266
+
267
+ /**
268
+ * Record creation date
269
+ */
270
+ created_at: string;
271
+
272
+ /**
273
+ * Record update date
274
+ */
275
+ updated_at: string;
276
+
277
+ /**
278
+ * The MDM enrollment status: ENROLLED, UNENROLLED, WAITING_FOR_CONNECTION, ERROR,
279
+ * etc.
280
+ */
281
+ enrollment_status?: 'ENROLLED' | 'WAITING_FOR_CONNECTION' | 'ERROR' | 'UNENROLLED';
282
+
283
+ /**
284
+ * Whether the device's disk is encrypted (FileVault on macOS, BitLocker on
285
+ * Windows).
286
+ */
287
+ is_encrypted?: boolean;
288
+
289
+ /**
290
+ * Whether the device is managed via MDM.
291
+ */
292
+ is_managed?: boolean;
293
+
294
+ /**
295
+ * When the Rippling agent last checked in from this device.
296
+ */
297
+ last_checkin_at?: string;
298
+
299
+ /**
300
+ * When the device last synced with MDM.
301
+ */
302
+ last_mdm_sync_at?: string;
303
+
304
+ /**
305
+ * The device lifecycle state (e.g. ACTIVE, READY, LOCKED, LOST, DECOMMISSIONED).
306
+ */
307
+ lifecycle_state?:
308
+ | 'INIT'
309
+ | 'ACTIVE'
310
+ | 'ACTIVATING'
311
+ | 'LOCKED'
312
+ | 'LOCKING'
313
+ | 'INACTIVE'
314
+ | 'PENDING_MDM'
315
+ | 'CLEANING'
316
+ | 'READY'
317
+ | 'DECOMMISSIONING'
318
+ | 'DECOMMISSIONED'
319
+ | 'FULL_WIPING'
320
+ | 'FULL_WIPED'
321
+ | 'E_CYCLED'
322
+ | 'MDM_LOCKED'
323
+ | 'LOST'
324
+ | 'LOST_PLAYING_SOUND';
325
+
326
+ /**
327
+ * The MDM provider currently recorded on the device (RIPPLING, JAMFCLOUD, INTUNE,
328
+ * KANDJI, etc.). Null when the device is not currently MDM-managed (typical for
329
+ * unenrolled or recently-reset devices).
330
+ */
331
+ mdm_provider?:
332
+ | 'RIPPLING'
333
+ | 'JUMPCLOUD'
334
+ | 'JAMFCLOUD'
335
+ | 'FLEETSMITH'
336
+ | 'HEXNODE'
337
+ | 'MICROMDM'
338
+ | 'MERAKI'
339
+ | 'SOTI'
340
+ | 'ADDIGY'
341
+ | 'FLEETDM'
342
+ | 'KANDJI'
343
+ | 'ZOHO'
344
+ | 'INTUNE'
345
+ | 'OTHER';
346
+
347
+ /**
348
+ * The device hardware model identifier as reported by MDM (e.g. 'MacBookPro18,3',
349
+ * 'iPhone15,2').
350
+ */
351
+ model?: string;
352
+
353
+ /**
354
+ * The device operating system name.
355
+ */
356
+ os_name?: string;
357
+
358
+ /**
359
+ * The device operating system version.
360
+ */
361
+ os_version?: string;
362
+
363
+ /**
364
+ * Actions currently queued against the device (not yet completed). Expandable.
365
+ *
366
+ * Expandable field
367
+ */
368
+ pending_actions?: Array<DeviceRetrieveResponse.PendingAction>;
369
+
370
+ /**
371
+ * The IDs of actions currently queued against the device (not yet completed).
372
+ */
373
+ pending_actions_id?: Array<string>;
374
+
375
+ /**
376
+ * The OS platform the device runs: MACOS, WINDOWS, IOS, or IPADOS.
377
+ */
378
+ platform?: 'MACOS' | 'WINDOWS' | 'IOS' | 'IPADOS';
379
+
380
+ /**
381
+ * The device's hardware serial number.
382
+ */
383
+ serial_number?: string;
384
+
385
+ /**
386
+ * The worker this device is currently assigned to.
387
+ *
388
+ * Expandable field
389
+ */
390
+ worker?: WorkersAPI.Worker;
391
+
392
+ /**
393
+ * The ID of the worker this device is currently assigned to. Null if unassigned.
394
+ */
395
+ worker_id?: string;
396
+ }
397
+
398
+ export namespace DeviceRetrieveResponse {
399
+ export interface PendingAction {
400
+ /**
401
+ * Identifier field
402
+ */
403
+ id: string;
404
+
405
+ /**
406
+ * Record creation date
407
+ */
408
+ created_at: string;
409
+
410
+ /**
411
+ * Record update date
412
+ */
413
+ updated_at: string;
414
+
415
+ /**
416
+ * The type of the pending device action (e.g. LOCK_DEVICE, RESET_PASSWORD).
417
+ */
418
+ action_type?:
419
+ | 'ADD_USER_TO_FILEVAULT'
420
+ | 'ASSIGN_DEVICE'
421
+ | 'AUTHENTICATE_AGENT'
422
+ | 'CHANGE_FILEVAULT_RECOVERY_KEY'
423
+ | 'CHANGE_PASSWORD'
424
+ | 'CLEAR_PASSCODE'
425
+ | 'CREATE_RIPPLING_ADMIN'
426
+ | 'DELETE_LOCAL_ACCOUNT'
427
+ | 'DEMOTE_ACCOUNT_PERMISSION'
428
+ | 'DISABLE_FIND_MY'
429
+ | 'DISABLE_LOST_MODE'
430
+ | 'DISABLE_REMOTE_DESKTOP'
431
+ | 'ENABLE_LOST_MODE'
432
+ | 'ENABLE_REMOTE_DESKTOP'
433
+ | 'ENFORCE_PASSWORD_POLICY'
434
+ | 'FORCE_CHECK_IN'
435
+ | 'FULL_WIPE'
436
+ | 'GRANT_SECURE_TOKEN'
437
+ | 'INSTALL_ENROLLMENT_PROFILE'
438
+ | 'LOCK_DEVICE'
439
+ | 'LOCK_USER_ACCOUNT'
440
+ | 'LOST_MODE_GET_LOCATION'
441
+ | 'LOST_MODE_PLAY_SOUND'
442
+ | 'PROMOTE_ACCOUNT_PERMISSION'
443
+ | 'RECOVER_AGENT_VIA_MDM'
444
+ | 'REINSTALL_AGENT'
445
+ | 'REINSTALL_ENROLLMENT_PROFILE'
446
+ | 'REMOVE_OTHER_ENROLLMENT_PROFILES'
447
+ | 'RESET_PASSWORD'
448
+ | 'RESTART_DEVICE'
449
+ | 'ROTATE_FILEVAULT_KEY'
450
+ | 'SHUTDOWN_DEVICE'
451
+ | 'SOFT_WIPE'
452
+ | 'TURN_ON_FILEVAULT'
453
+ | 'UNASSIGN_DEVICE'
454
+ | 'UNINSTALL_AGENT'
455
+ | 'UNINSTALL_ANTIVIRUS'
456
+ | 'UNINSTALL_MDM'
457
+ | 'UNLOCK_DEVICE'
458
+ | 'UNLOCK_USER_ACCOUNT'
459
+ | 'UPDATE_OS'
460
+ | 'UNKNOWN';
461
+
462
+ /**
463
+ * When the action was queued.
464
+ */
465
+ queued_at?: string;
466
+
467
+ /**
468
+ * The current state of the pending action (e.g. QUEUED, WAITING_FOR_USER_ACTION).
469
+ */
470
+ state?: string;
471
+ }
472
+ }
473
+
474
+ export interface DeviceListParams {
475
+ cursor?: string;
476
+
477
+ expand?: string;
478
+
479
+ filter?: string;
480
+
481
+ order_by?: string;
482
+ }
483
+
484
+ export interface DeviceRetrieveParams {
485
+ expand?: string;
486
+ }
487
+
488
+ export declare namespace Devices {
489
+ export {
490
+ type DeviceListResponse as DeviceListResponse,
491
+ type DeviceRetrieveResponse as DeviceRetrieveResponse,
492
+ type DeviceListResponsesPageCursorURL as DeviceListResponsesPageCursorURL,
493
+ type DeviceListParams as DeviceListParams,
494
+ type DeviceRetrieveParams as DeviceRetrieveParams,
495
+ };
496
+ }
@@ -112,6 +112,11 @@ export interface FunctionDeployment {
112
112
  */
113
113
  function_version_id?: string;
114
114
 
115
+ /**
116
+ * Input and output JSON Schema contracts for the deployment
117
+ */
118
+ io_contract?: unknown;
119
+
115
120
  /**
116
121
  * Additional, runtime-specific options for the deployment
117
122
  */
@@ -181,6 +186,11 @@ export interface DeploymentCreateParams {
181
186
  */
182
187
  dependencies?: unknown;
183
188
 
189
+ /**
190
+ * Input and output JSON Schema contracts for the deployment
191
+ */
192
+ io_contract?: unknown;
193
+
184
194
  /**
185
195
  * Additional, runtime-specific options for the deployment
186
196
  */
@@ -1,6 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export * from './shared';
4
+ export {
5
+ AppUsers,
6
+ type AppUserListResponse,
7
+ type AppUserRetrieveResponse,
8
+ type AppUserListParams,
9
+ type AppUserRetrieveParams,
10
+ type AppUserListResponsesPageCursorURL,
11
+ } from './app-users';
4
12
  export {
5
13
  BreakPolicies,
6
14
  type BreakPolicyListResponse,
@@ -148,6 +156,14 @@ export {
148
156
  type DeviceOrderRetrieveParams,
149
157
  type DeviceOrderListResponsesPageCursorURL,
150
158
  } from './device-orders';
159
+ export {
160
+ Devices,
161
+ type DeviceListResponse,
162
+ type DeviceRetrieveResponse,
163
+ type DeviceListParams,
164
+ type DeviceRetrieveParams,
165
+ type DeviceListResponsesPageCursorURL,
166
+ } from './devices';
151
167
  export { DraftHires, type DraftHireCreateResponse, type DraftHireCreateParams } from './draft-hires';
152
168
  export {
153
169
  EarningTypes,
@@ -519,19 +535,6 @@ export {
519
535
  type WorkLocationUpdateParams,
520
536
  type WorkLocationsPageCursorURL,
521
537
  } from './work-locations';
522
- export {
523
- WorkerChangeFields,
524
- type WorkerChangeFieldListResponse,
525
- type WorkerChangeFieldListResponsesPageCursorURL,
526
- } from './worker-change-fields';
527
- export {
528
- WorkerChanges,
529
- type WorkerChangeListResponse,
530
- type WorkerChangeRetrieveResponse,
531
- type WorkerChangeListParams,
532
- type WorkerChangeRetrieveParams,
533
- type WorkerChangeListResponsesPageCursorURL,
534
- } from './worker-changes';
535
538
  export {
536
539
  WorkerTimeSplits,
537
540
  type WorkerTimeSplitListResponse,
@@ -822,6 +822,11 @@ export namespace Worker {
822
822
  */
823
823
  ca?: CountryFields.Ca;
824
824
 
825
+ /**
826
+ * Country-wise regional fields for New Zealand
827
+ */
828
+ nz?: CountryFields.Nz;
829
+
825
830
  /**
826
831
  * Country-wise regional fields for USA
827
832
  */
@@ -839,6 +844,16 @@ export namespace Worker {
839
844
  sin?: string;
840
845
  }
841
846
 
847
+ /**
848
+ * Country-wise regional fields for New Zealand
849
+ */
850
+ export interface Nz {
851
+ /**
852
+ * Inland Revenue Department (IRD) number for New Zealand employees.
853
+ */
854
+ ird_number?: string;
855
+ }
856
+
842
857
  /**
843
858
  * Country-wise regional fields for USA
844
859
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.62'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.64'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.62";
1
+ export declare const VERSION = "0.2.0-alpha.64";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.62";
1
+ export declare const VERSION = "0.2.0-alpha.64";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0-alpha.62'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.64'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0-alpha.62'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.64'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,45 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- /**
5
- * Historical changes to worker data over time
6
- */
7
- export declare class WorkerChangeFields extends APIResource {
8
- /**
9
- * A list of worker change fields.
10
- *
11
- * - Requires: `API Tier 2`
12
- */
13
- list(options?: RequestOptions): PagePromise<WorkerChangeFieldListResponsesPageCursorURL, WorkerChangeFieldListResponse>;
14
- }
15
- export type WorkerChangeFieldListResponsesPageCursorURL = PageCursorURL<WorkerChangeFieldListResponse>;
16
- export interface WorkerChangeFieldListResponse {
17
- /**
18
- * High-level grouping for the field.
19
- */
20
- category: 'PERSONAL' | 'JOB' | 'COMPENSATION' | 'BENEFITS' | 'CUSTOM' | 'COUNTRY_SPECIFIC';
21
- /**
22
- * UI label for the field (English).
23
- */
24
- field_display_name: string;
25
- /**
26
- * Field key in snake_case. Use directly in ?filter=field_key eq '...' on GET
27
- * /worker-changes. Naming convention: public DTO fields use the DTO field name
28
- * verbatim (work_email, title); nested fields use dot notation
29
- * (compensation.base_salary); custom fields use custom_fields.<custom_field_id>;
30
- * country-specific fields use the ISO country prefix (us.eeo.race). Filter
31
- * semantics: filtering GET /worker-changes by field_key returns events that
32
- * contain at least one change to this field, but the changes[] array on those
33
- * events is NOT pruned — consumers receive the full event payload including
34
- * changes to other fields.
35
- */
36
- field_key: string;
37
- /**
38
- * Value type of the field.
39
- */
40
- value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
41
- }
42
- export declare namespace WorkerChangeFields {
43
- export { type WorkerChangeFieldListResponse as WorkerChangeFieldListResponse, type WorkerChangeFieldListResponsesPageCursorURL as WorkerChangeFieldListResponsesPageCursorURL, };
44
- }
45
- //# sourceMappingURL=worker-change-fields.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker-change-fields.d.mts","sourceRoot":"","sources":["../src/resources/worker-change-fields.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,6BAA6B,CAAC;CAO3F;AAED,MAAM,MAAM,2CAA2C,GAAG,aAAa,CAAC,6BAA6B,CAAC,CAAC;AAEvG,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,EAAE,UAAU,GAAG,KAAK,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IAE3F;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;;OAUG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;CACvG;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2CAA2C,IAAI,2CAA2C,GAChG,CAAC;CACH"}