@samsarahq/samsara 6.3.1 → 7.0.0

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 (56) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +91 -0
  3. package/dist/cjs/api/resources/betaApIs/client/Client.js +265 -0
  4. package/dist/cjs/api/resources/betaApIs/client/requests/ListMaintenanceVendorsRequest.d.ts +1 -1
  5. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -0
  6. package/dist/cjs/api/resources/betaApIs/client/requests/index.js +3 -1
  7. package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +0 -109
  8. package/dist/cjs/api/resources/previewApIs/client/Client.js +0 -294
  9. package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +0 -3
  10. package/dist/cjs/api/resources/previewApIs/client/requests/index.js +0 -3
  11. package/dist/cjs/api/types/MissingStateResponseBody.d.ts +1 -1
  12. package/dist/cjs/api/types/NotificationRecipientResponseResponseBody.d.ts +23 -0
  13. package/dist/cjs/api/types/NotificationRecipientResponseResponseBody.js +14 -0
  14. package/dist/cjs/api/types/RecoveryStateResponseBody.d.ts +1 -1
  15. package/dist/cjs/api/types/VendorObjectResponseBody.d.ts +2 -0
  16. package/dist/cjs/api/types/index.d.ts +1 -1
  17. package/dist/cjs/api/types/index.js +1 -1
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.mjs +2 -2
  21. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +91 -0
  22. package/dist/esm/api/resources/betaApIs/client/Client.mjs +265 -0
  23. package/dist/esm/api/resources/betaApIs/client/requests/ListMaintenanceVendorsRequest.d.mts +1 -1
  24. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -0
  25. package/dist/esm/api/resources/betaApIs/client/requests/index.mjs +1 -0
  26. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +0 -109
  27. package/dist/esm/api/resources/previewApIs/client/Client.mjs +0 -294
  28. package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +0 -3
  29. package/dist/esm/api/resources/previewApIs/client/requests/index.mjs +1 -1
  30. package/dist/esm/api/types/MissingStateResponseBody.d.mts +1 -1
  31. package/dist/esm/api/types/NotificationRecipientResponseResponseBody.d.mts +23 -0
  32. package/dist/esm/api/types/NotificationRecipientResponseResponseBody.mjs +11 -0
  33. package/dist/esm/api/types/RecoveryStateResponseBody.d.mts +1 -1
  34. package/dist/esm/api/types/VendorObjectResponseBody.d.mts +2 -0
  35. package/dist/esm/api/types/index.d.mts +1 -1
  36. package/dist/esm/api/types/index.mjs +1 -1
  37. package/dist/esm/version.d.mts +1 -1
  38. package/dist/esm/version.mjs +1 -1
  39. package/package.json +1 -1
  40. package/reference.md +217 -235
  41. package/dist/cjs/api/types/NotificationRecipientResponseBody.d.ts +0 -19
  42. package/dist/cjs/api/types/NotificationRecipientResponseBody.js +0 -14
  43. package/dist/esm/api/types/NotificationRecipientResponseBody.d.mts +0 -19
  44. package/dist/esm/api/types/NotificationRecipientResponseBody.mjs +0 -11
  45. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.d.ts +0 -0
  46. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.js +0 -0
  47. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryRecoverAssetRequestBody.d.ts +0 -0
  48. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryRecoverAssetRequestBody.js +0 -0
  49. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/ListDeviceRecoveryMissingAssetsRequest.d.ts +0 -0
  50. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/ListDeviceRecoveryMissingAssetsRequest.js +0 -0
  51. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.d.mts +0 -0
  52. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryMarkAssetMissingRequestBody.mjs +0 -0
  53. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryRecoverAssetRequestBody.d.mts +0 -0
  54. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/DeviceRecoveryRecoverAssetRequestBody.mjs +0 -0
  55. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/ListDeviceRecoveryMissingAssetsRequest.d.mts +0 -0
  56. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/ListDeviceRecoveryMissingAssetsRequest.mjs +0 -0
package/reference.md CHANGED
@@ -2638,6 +2638,223 @@ await client.betaApIs.getDevices();
2638
2638
  </dl>
2639
2639
 
2640
2640
 
2641
+ </dd>
2642
+ </dl>
2643
+ </details>
2644
+
2645
+ <details><summary><code>client.betaApIs.<a href="/src/api/resources/betaApIs/client/Client.ts">listDeviceRecoveryMissingAssets</a>({ ...params }) -> Samsara.DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody</code></summary>
2646
+ <dl>
2647
+ <dd>
2648
+
2649
+ #### 📝 Description
2650
+
2651
+ <dl>
2652
+ <dd>
2653
+
2654
+ <dl>
2655
+ <dd>
2656
+
2657
+ List all assets that are currently marked as missing for the organization.
2658
+
2659
+ <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2660
+
2661
+ To use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
2662
+
2663
+
2664
+ **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
2665
+ </dd>
2666
+ </dl>
2667
+ </dd>
2668
+ </dl>
2669
+
2670
+ #### 🔌 Usage
2671
+
2672
+ <dl>
2673
+ <dd>
2674
+
2675
+ <dl>
2676
+ <dd>
2677
+
2678
+ ```typescript
2679
+ await client.betaApIs.listDeviceRecoveryMissingAssets();
2680
+
2681
+ ```
2682
+ </dd>
2683
+ </dl>
2684
+ </dd>
2685
+ </dl>
2686
+
2687
+ #### ⚙️ Parameters
2688
+
2689
+ <dl>
2690
+ <dd>
2691
+
2692
+ <dl>
2693
+ <dd>
2694
+
2695
+ **request:** `Samsara.ListDeviceRecoveryMissingAssetsRequest`
2696
+
2697
+ </dd>
2698
+ </dl>
2699
+
2700
+ <dl>
2701
+ <dd>
2702
+
2703
+ **requestOptions:** `BetaApIsClient.RequestOptions`
2704
+
2705
+ </dd>
2706
+ </dl>
2707
+ </dd>
2708
+ </dl>
2709
+
2710
+
2711
+ </dd>
2712
+ </dl>
2713
+ </details>
2714
+
2715
+ <details><summary><code>client.betaApIs.<a href="/src/api/resources/betaApIs/client/Client.ts">markAssetMissing</a>({ ...params }) -> Samsara.DeviceRecoveryMarkAssetMissingResponseBody</code></summary>
2716
+ <dl>
2717
+ <dd>
2718
+
2719
+ #### 📝 Description
2720
+
2721
+ <dl>
2722
+ <dd>
2723
+
2724
+ <dl>
2725
+ <dd>
2726
+
2727
+ Mark an asset as missing. Optionally specify a note and notification recipients who will receive email updates.
2728
+
2729
+ <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2730
+
2731
+ To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
2732
+
2733
+
2734
+ **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
2735
+ </dd>
2736
+ </dl>
2737
+ </dd>
2738
+ </dl>
2739
+
2740
+ #### 🔌 Usage
2741
+
2742
+ <dl>
2743
+ <dd>
2744
+
2745
+ <dl>
2746
+ <dd>
2747
+
2748
+ ```typescript
2749
+ await client.betaApIs.markAssetMissing({
2750
+ id: "id"
2751
+ });
2752
+
2753
+ ```
2754
+ </dd>
2755
+ </dl>
2756
+ </dd>
2757
+ </dl>
2758
+
2759
+ #### ⚙️ Parameters
2760
+
2761
+ <dl>
2762
+ <dd>
2763
+
2764
+ <dl>
2765
+ <dd>
2766
+
2767
+ **request:** `Samsara.DeviceRecoveryMarkAssetMissingRequestBody`
2768
+
2769
+ </dd>
2770
+ </dl>
2771
+
2772
+ <dl>
2773
+ <dd>
2774
+
2775
+ **requestOptions:** `BetaApIsClient.RequestOptions`
2776
+
2777
+ </dd>
2778
+ </dl>
2779
+ </dd>
2780
+ </dl>
2781
+
2782
+
2783
+ </dd>
2784
+ </dl>
2785
+ </details>
2786
+
2787
+ <details><summary><code>client.betaApIs.<a href="/src/api/resources/betaApIs/client/Client.ts">recoverAsset</a>({ ...params }) -> Samsara.DeviceRecoveryRecoverAssetResponseBody</code></summary>
2788
+ <dl>
2789
+ <dd>
2790
+
2791
+ #### 📝 Description
2792
+
2793
+ <dl>
2794
+ <dd>
2795
+
2796
+ <dl>
2797
+ <dd>
2798
+
2799
+ Mark a missing asset as recovered. Provide the recovery status, reason for being missing, and optional additional details.
2800
+
2801
+ <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
2802
+
2803
+ To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
2804
+
2805
+
2806
+ **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
2807
+ </dd>
2808
+ </dl>
2809
+ </dd>
2810
+ </dl>
2811
+
2812
+ #### 🔌 Usage
2813
+
2814
+ <dl>
2815
+ <dd>
2816
+
2817
+ <dl>
2818
+ <dd>
2819
+
2820
+ ```typescript
2821
+ await client.betaApIs.recoverAsset({
2822
+ id: "id",
2823
+ missing_reason: "MISPLACED",
2824
+ recovery_status: "YES",
2825
+ status: "RECOVERED"
2826
+ });
2827
+
2828
+ ```
2829
+ </dd>
2830
+ </dl>
2831
+ </dd>
2832
+ </dl>
2833
+
2834
+ #### ⚙️ Parameters
2835
+
2836
+ <dl>
2837
+ <dd>
2838
+
2839
+ <dl>
2840
+ <dd>
2841
+
2842
+ **request:** `Samsara.DeviceRecoveryRecoverAssetRequestBody`
2843
+
2844
+ </dd>
2845
+ </dl>
2846
+
2847
+ <dl>
2848
+ <dd>
2849
+
2850
+ **requestOptions:** `BetaApIsClient.RequestOptions`
2851
+
2852
+ </dd>
2853
+ </dl>
2854
+ </dd>
2855
+ </dl>
2856
+
2857
+
2641
2858
  </dd>
2642
2859
  </dl>
2643
2860
  </details>
@@ -17802,241 +18019,6 @@ await client.organizationInfo.getOrganizationInfo();
17802
18019
  </details>
17803
18020
 
17804
18021
  ## Preview APIs
17805
- <details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">listDeviceRecoveryMissingAssets</a>({ ...params }) -> Samsara.DeviceRecoveryListDeviceRecoveryMissingAssetsResponseBody</code></summary>
17806
- <dl>
17807
- <dd>
17808
-
17809
- #### 📝 Description
17810
-
17811
- <dl>
17812
- <dd>
17813
-
17814
- <dl>
17815
- <dd>
17816
-
17817
- List all assets that are currently marked as missing for the organization.
17818
-
17819
- <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
17820
-
17821
- To use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
17822
-
17823
- Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
17824
-
17825
- - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
17826
-
17827
- - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
17828
-
17829
-
17830
- **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
17831
- </dd>
17832
- </dl>
17833
- </dd>
17834
- </dl>
17835
-
17836
- #### 🔌 Usage
17837
-
17838
- <dl>
17839
- <dd>
17840
-
17841
- <dl>
17842
- <dd>
17843
-
17844
- ```typescript
17845
- await client.previewApIs.listDeviceRecoveryMissingAssets();
17846
-
17847
- ```
17848
- </dd>
17849
- </dl>
17850
- </dd>
17851
- </dl>
17852
-
17853
- #### ⚙️ Parameters
17854
-
17855
- <dl>
17856
- <dd>
17857
-
17858
- <dl>
17859
- <dd>
17860
-
17861
- **request:** `Samsara.ListDeviceRecoveryMissingAssetsRequest`
17862
-
17863
- </dd>
17864
- </dl>
17865
-
17866
- <dl>
17867
- <dd>
17868
-
17869
- **requestOptions:** `PreviewApIsClient.RequestOptions`
17870
-
17871
- </dd>
17872
- </dl>
17873
- </dd>
17874
- </dl>
17875
-
17876
-
17877
- </dd>
17878
- </dl>
17879
- </details>
17880
-
17881
- <details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">markAssetMissing</a>({ ...params }) -> Samsara.DeviceRecoveryMarkAssetMissingResponseBody</code></summary>
17882
- <dl>
17883
- <dd>
17884
-
17885
- #### 📝 Description
17886
-
17887
- <dl>
17888
- <dd>
17889
-
17890
- <dl>
17891
- <dd>
17892
-
17893
- Mark an asset as missing. Optionally specify a note and notification recipients who will receive email updates.
17894
-
17895
- <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
17896
-
17897
- To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
17898
-
17899
- Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
17900
-
17901
- - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
17902
-
17903
- - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
17904
-
17905
-
17906
- **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
17907
- </dd>
17908
- </dl>
17909
- </dd>
17910
- </dl>
17911
-
17912
- #### 🔌 Usage
17913
-
17914
- <dl>
17915
- <dd>
17916
-
17917
- <dl>
17918
- <dd>
17919
-
17920
- ```typescript
17921
- await client.previewApIs.markAssetMissing({
17922
- id: "id"
17923
- });
17924
-
17925
- ```
17926
- </dd>
17927
- </dl>
17928
- </dd>
17929
- </dl>
17930
-
17931
- #### ⚙️ Parameters
17932
-
17933
- <dl>
17934
- <dd>
17935
-
17936
- <dl>
17937
- <dd>
17938
-
17939
- **request:** `Samsara.DeviceRecoveryMarkAssetMissingRequestBody`
17940
-
17941
- </dd>
17942
- </dl>
17943
-
17944
- <dl>
17945
- <dd>
17946
-
17947
- **requestOptions:** `PreviewApIsClient.RequestOptions`
17948
-
17949
- </dd>
17950
- </dl>
17951
- </dd>
17952
- </dl>
17953
-
17954
-
17955
- </dd>
17956
- </dl>
17957
- </details>
17958
-
17959
- <details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">recoverAsset</a>({ ...params }) -> Samsara.DeviceRecoveryRecoverAssetResponseBody</code></summary>
17960
- <dl>
17961
- <dd>
17962
-
17963
- #### 📝 Description
17964
-
17965
- <dl>
17966
- <dd>
17967
-
17968
- <dl>
17969
- <dd>
17970
-
17971
- Mark a missing asset as recovered. Provide the recovery status, reason for being missing, and optional additional details.
17972
-
17973
- <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
17974
-
17975
- To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
17976
-
17977
- Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
17978
-
17979
- - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
17980
-
17981
- - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
17982
-
17983
-
17984
- **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
17985
- </dd>
17986
- </dl>
17987
- </dd>
17988
- </dl>
17989
-
17990
- #### 🔌 Usage
17991
-
17992
- <dl>
17993
- <dd>
17994
-
17995
- <dl>
17996
- <dd>
17997
-
17998
- ```typescript
17999
- await client.previewApIs.recoverAsset({
18000
- id: "id",
18001
- missing_reason: "MISPLACED",
18002
- recovery_status: "YES",
18003
- status: "RECOVERED"
18004
- });
18005
-
18006
- ```
18007
- </dd>
18008
- </dl>
18009
- </dd>
18010
- </dl>
18011
-
18012
- #### ⚙️ Parameters
18013
-
18014
- <dl>
18015
- <dd>
18016
-
18017
- <dl>
18018
- <dd>
18019
-
18020
- **request:** `Samsara.DeviceRecoveryRecoverAssetRequestBody`
18021
-
18022
- </dd>
18023
- </dl>
18024
-
18025
- <dl>
18026
- <dd>
18027
-
18028
- **requestOptions:** `PreviewApIsClient.RequestOptions`
18029
-
18030
- </dd>
18031
- </dl>
18032
- </dd>
18033
- </dl>
18034
-
18035
-
18036
- </dd>
18037
- </dl>
18038
- </details>
18039
-
18040
18022
  <details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">createDriverAuthToken</a>({ ...params }) -> Samsara.DriversAuthTokenCreateDriverAuthTokenResponseBody</code></summary>
18041
18023
  <dl>
18042
18024
  <dd>
@@ -1,19 +0,0 @@
1
- /**
2
- * A user to notify about recovery state changes.
3
- */
4
- export interface NotificationRecipientResponseBody {
5
- /** How the user should be notified. */
6
- notification_types: NotificationRecipientResponseBody.NotificationTypes.Item[];
7
- /** The ID of the user to notify. Users can be retrieved via the getUser API endpoint. */
8
- user_id: number;
9
- }
10
- export declare namespace NotificationRecipientResponseBody {
11
- type NotificationTypes = NotificationTypes.Item[];
12
- namespace NotificationTypes {
13
- /** The type of notification. For Preview, only 'email' is supported. Valid values: `email` */
14
- const Item: {
15
- readonly Email: "email";
16
- };
17
- type Item = (typeof Item)[keyof typeof Item];
18
- }
19
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.NotificationRecipientResponseBody = void 0;
5
- var NotificationRecipientResponseBody;
6
- (function (NotificationRecipientResponseBody) {
7
- let NotificationTypes;
8
- (function (NotificationTypes) {
9
- /** The type of notification. For Preview, only 'email' is supported. Valid values: `email` */
10
- NotificationTypes.Item = {
11
- Email: "email",
12
- };
13
- })(NotificationTypes = NotificationRecipientResponseBody.NotificationTypes || (NotificationRecipientResponseBody.NotificationTypes = {}));
14
- })(NotificationRecipientResponseBody || (exports.NotificationRecipientResponseBody = NotificationRecipientResponseBody = {}));
@@ -1,19 +0,0 @@
1
- /**
2
- * A user to notify about recovery state changes.
3
- */
4
- export interface NotificationRecipientResponseBody {
5
- /** How the user should be notified. */
6
- notification_types: NotificationRecipientResponseBody.NotificationTypes.Item[];
7
- /** The ID of the user to notify. Users can be retrieved via the getUser API endpoint. */
8
- user_id: number;
9
- }
10
- export declare namespace NotificationRecipientResponseBody {
11
- type NotificationTypes = NotificationTypes.Item[];
12
- namespace NotificationTypes {
13
- /** The type of notification. For Preview, only 'email' is supported. Valid values: `email` */
14
- const Item: {
15
- readonly Email: "email";
16
- };
17
- type Item = (typeof Item)[keyof typeof Item];
18
- }
19
- }
@@ -1,11 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var NotificationRecipientResponseBody;
3
- (function (NotificationRecipientResponseBody) {
4
- let NotificationTypes;
5
- (function (NotificationTypes) {
6
- /** The type of notification. For Preview, only 'email' is supported. Valid values: `email` */
7
- NotificationTypes.Item = {
8
- Email: "email",
9
- };
10
- })(NotificationTypes = NotificationRecipientResponseBody.NotificationTypes || (NotificationRecipientResponseBody.NotificationTypes = {}));
11
- })(NotificationRecipientResponseBody || (NotificationRecipientResponseBody = {}));