@dfns/sdk 0.8.12 → 0.8.13

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.
@@ -25,6 +25,8 @@ export type ArchivePolicyResponse = {
25
25
  };
26
26
  /** Whether the initiator of the activity can participate in the approval. */
27
27
  initiatorCanApprove?: boolean | undefined;
28
+ /** Whether service accounts can participate in the approval for this group. */
29
+ serviceAccountsCanApprove?: boolean | undefined;
28
30
  }[];
29
31
  autoRejectTimeout?: (number | undefined) | null;
30
32
  } | {
@@ -55,6 +57,8 @@ export type ArchivePolicyResponse = {
55
57
  };
56
58
  /** Whether the initiator of the activity can participate in the approval. */
57
59
  initiatorCanApprove?: boolean | undefined;
60
+ /** Whether service accounts can participate in the approval for this group. */
61
+ serviceAccountsCanApprove?: boolean | undefined;
58
62
  }[];
59
63
  autoRejectTimeout?: (number | undefined) | null;
60
64
  } | {
@@ -89,6 +93,8 @@ export type ArchivePolicyResponse = {
89
93
  };
90
94
  /** Whether the initiator of the activity can participate in the approval. */
91
95
  initiatorCanApprove?: boolean | undefined;
96
+ /** Whether service accounts can participate in the approval for this group. */
97
+ serviceAccountsCanApprove?: boolean | undefined;
92
98
  }[];
93
99
  autoRejectTimeout?: (number | undefined) | null;
94
100
  } | {
@@ -123,6 +129,8 @@ export type ArchivePolicyResponse = {
123
129
  };
124
130
  /** Whether the initiator of the activity can participate in the approval. */
125
131
  initiatorCanApprove?: boolean | undefined;
132
+ /** Whether service accounts can participate in the approval for this group. */
133
+ serviceAccountsCanApprove?: boolean | undefined;
126
134
  }[];
127
135
  autoRejectTimeout?: (number | undefined) | null;
128
136
  };
@@ -155,6 +163,8 @@ export type ArchivePolicyResponse = {
155
163
  };
156
164
  /** Whether the initiator of the activity can participate in the approval. */
157
165
  initiatorCanApprove?: boolean | undefined;
166
+ /** Whether service accounts can participate in the approval for this group. */
167
+ serviceAccountsCanApprove?: boolean | undefined;
158
168
  }[];
159
169
  autoRejectTimeout?: (number | undefined) | null;
160
170
  } | {
@@ -266,6 +276,8 @@ export type ArchivePolicyResponse = {
266
276
  };
267
277
  /** Whether the initiator of the activity can participate in the approval. */
268
278
  initiatorCanApprove?: boolean | undefined;
279
+ /** Whether service accounts can participate in the approval for this group. */
280
+ serviceAccountsCanApprove?: boolean | undefined;
269
281
  }[];
270
282
  autoRejectTimeout?: (number | undefined) | null;
271
283
  } | {
@@ -1441,6 +1453,8 @@ export type CreateApprovalDecisionResponse = {
1441
1453
  /** Token id. */
1442
1454
  tokenId?: string | undefined;
1443
1455
  };
1456
+ /** The failure reason, if any. Only present when status is Failed. */
1457
+ failureReason?: string | undefined;
1444
1458
  } | undefined;
1445
1459
  } | {
1446
1460
  kind: "Wallets:IncomingTransaction";
@@ -2428,6 +2442,8 @@ export type CreateApprovalDecisionResponse = {
2428
2442
  };
2429
2443
  /** Whether the initiator of the activity can participate in the approval. */
2430
2444
  initiatorCanApprove?: boolean | undefined;
2445
+ /** Whether service accounts can participate in the approval for this group. */
2446
+ serviceAccountsCanApprove?: boolean | undefined;
2431
2447
  }[];
2432
2448
  autoRejectTimeout?: (number | undefined) | null;
2433
2449
  } | {
@@ -2458,6 +2474,8 @@ export type CreateApprovalDecisionResponse = {
2458
2474
  };
2459
2475
  /** Whether the initiator of the activity can participate in the approval. */
2460
2476
  initiatorCanApprove?: boolean | undefined;
2477
+ /** Whether service accounts can participate in the approval for this group. */
2478
+ serviceAccountsCanApprove?: boolean | undefined;
2461
2479
  }[];
2462
2480
  autoRejectTimeout?: (number | undefined) | null;
2463
2481
  } | {
@@ -2492,6 +2510,8 @@ export type CreateApprovalDecisionResponse = {
2492
2510
  };
2493
2511
  /** Whether the initiator of the activity can participate in the approval. */
2494
2512
  initiatorCanApprove?: boolean | undefined;
2513
+ /** Whether service accounts can participate in the approval for this group. */
2514
+ serviceAccountsCanApprove?: boolean | undefined;
2495
2515
  }[];
2496
2516
  autoRejectTimeout?: (number | undefined) | null;
2497
2517
  } | {
@@ -2526,6 +2546,8 @@ export type CreateApprovalDecisionResponse = {
2526
2546
  };
2527
2547
  /** Whether the initiator of the activity can participate in the approval. */
2528
2548
  initiatorCanApprove?: boolean | undefined;
2549
+ /** Whether service accounts can participate in the approval for this group. */
2550
+ serviceAccountsCanApprove?: boolean | undefined;
2529
2551
  }[];
2530
2552
  autoRejectTimeout?: (number | undefined) | null;
2531
2553
  };
@@ -2558,6 +2580,8 @@ export type CreateApprovalDecisionResponse = {
2558
2580
  };
2559
2581
  /** Whether the initiator of the activity can participate in the approval. */
2560
2582
  initiatorCanApprove?: boolean | undefined;
2583
+ /** Whether service accounts can participate in the approval for this group. */
2584
+ serviceAccountsCanApprove?: boolean | undefined;
2561
2585
  }[];
2562
2586
  autoRejectTimeout?: (number | undefined) | null;
2563
2587
  } | {
@@ -2669,6 +2693,8 @@ export type CreateApprovalDecisionResponse = {
2669
2693
  };
2670
2694
  /** Whether the initiator of the activity can participate in the approval. */
2671
2695
  initiatorCanApprove?: boolean | undefined;
2696
+ /** Whether service accounts can participate in the approval for this group. */
2697
+ serviceAccountsCanApprove?: boolean | undefined;
2672
2698
  }[];
2673
2699
  autoRejectTimeout?: (number | undefined) | null;
2674
2700
  } | {
@@ -2734,6 +2760,7 @@ export type CreateApprovalDecisionResponse = {
2734
2760
  } | {
2735
2761
  kind: "Permissions:Modify";
2736
2762
  changeRequest: {
2763
+ /** ID of the change request. */
2737
2764
  id: string;
2738
2765
  /** The user who initiated the change request. */
2739
2766
  requester: {
@@ -2741,7 +2768,9 @@ export type CreateApprovalDecisionResponse = {
2741
2768
  tokenId?: string | undefined;
2742
2769
  appId?: string | undefined;
2743
2770
  };
2771
+ /** Current status of the change request. */
2744
2772
  status: "Applied" | "Failed" | "Pending" | "Rejected";
2773
+ /** ID of the entity being changed. */
2745
2774
  entityId: string;
2746
2775
  dateCreated: string;
2747
2776
  dateResolved?: string | undefined;
@@ -2749,17 +2778,24 @@ export type CreateApprovalDecisionResponse = {
2749
2778
  kind: "Permission";
2750
2779
  operationKind: "Update";
2751
2780
  body: {
2781
+ /** ID of the permission (also referred to as "role" in the dashboard). */
2752
2782
  id: string;
2783
+ /** Human-readable name of the permission (role). */
2753
2784
  name: string;
2785
+ /** Current status of the permission. */
2754
2786
  status: "Active";
2787
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
2755
2788
  operations: string[];
2789
+ /** Whether this permission is system-managed and cannot be modified. */
2756
2790
  isImmutable: boolean;
2791
+ /** Whether this permission has been archived (soft-deleted). */
2757
2792
  isArchived: boolean;
2758
2793
  };
2759
2794
  };
2760
2795
  } | {
2761
2796
  kind: "Permissions:Assign";
2762
2797
  changeRequest: {
2798
+ /** ID of the change request. */
2763
2799
  id: string;
2764
2800
  /** The user who initiated the change request. */
2765
2801
  requester: {
@@ -2767,7 +2803,9 @@ export type CreateApprovalDecisionResponse = {
2767
2803
  tokenId?: string | undefined;
2768
2804
  appId?: string | undefined;
2769
2805
  };
2806
+ /** Current status of the change request. */
2770
2807
  status: "Applied" | "Failed" | "Pending" | "Rejected";
2808
+ /** ID of the entity being changed. */
2771
2809
  entityId: string;
2772
2810
  dateCreated: string;
2773
2811
  dateResolved?: string | undefined;
@@ -2775,9 +2813,13 @@ export type CreateApprovalDecisionResponse = {
2775
2813
  kind: "Assignment";
2776
2814
  operationKind: "Create" | "Delete";
2777
2815
  body: {
2816
+ /** ID of the permission assignment. */
2778
2817
  id: string;
2818
+ /** ID of the permission (also referred to as "role" in the dashboard). */
2779
2819
  permissionId: string;
2820
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
2780
2821
  identityId: string;
2822
+ /** Whether this assignment is system-managed and cannot be modified. */
2781
2823
  isImmutable: boolean;
2782
2824
  };
2783
2825
  };
@@ -2878,6 +2920,8 @@ export type CreatePolicyBody = {
2878
2920
  };
2879
2921
  /** Whether the initiator of the activity can participate in the approval. */
2880
2922
  initiatorCanApprove?: boolean | undefined;
2923
+ /** Whether service accounts can participate in the approval for this group. */
2924
+ serviceAccountsCanApprove?: boolean | undefined;
2881
2925
  }[];
2882
2926
  autoRejectTimeout?: (number | undefined) | null;
2883
2927
  } | {
@@ -2904,6 +2948,8 @@ export type CreatePolicyBody = {
2904
2948
  };
2905
2949
  /** Whether the initiator of the activity can participate in the approval. */
2906
2950
  initiatorCanApprove?: boolean | undefined;
2951
+ /** Whether service accounts can participate in the approval for this group. */
2952
+ serviceAccountsCanApprove?: boolean | undefined;
2907
2953
  }[];
2908
2954
  autoRejectTimeout?: (number | undefined) | null;
2909
2955
  } | {
@@ -2934,6 +2980,8 @@ export type CreatePolicyBody = {
2934
2980
  };
2935
2981
  /** Whether the initiator of the activity can participate in the approval. */
2936
2982
  initiatorCanApprove?: boolean | undefined;
2983
+ /** Whether service accounts can participate in the approval for this group. */
2984
+ serviceAccountsCanApprove?: boolean | undefined;
2937
2985
  }[];
2938
2986
  autoRejectTimeout?: (number | undefined) | null;
2939
2987
  } | {
@@ -2964,6 +3012,8 @@ export type CreatePolicyBody = {
2964
3012
  };
2965
3013
  /** Whether the initiator of the activity can participate in the approval. */
2966
3014
  initiatorCanApprove?: boolean | undefined;
3015
+ /** Whether service accounts can participate in the approval for this group. */
3016
+ serviceAccountsCanApprove?: boolean | undefined;
2967
3017
  }[];
2968
3018
  autoRejectTimeout?: (number | undefined) | null;
2969
3019
  };
@@ -2992,6 +3042,8 @@ export type CreatePolicyBody = {
2992
3042
  };
2993
3043
  /** Whether the initiator of the activity can participate in the approval. */
2994
3044
  initiatorCanApprove?: boolean | undefined;
3045
+ /** Whether service accounts can participate in the approval for this group. */
3046
+ serviceAccountsCanApprove?: boolean | undefined;
2995
3047
  }[];
2996
3048
  autoRejectTimeout?: (number | undefined) | null;
2997
3049
  } | {
@@ -3099,6 +3151,8 @@ export type CreatePolicyBody = {
3099
3151
  };
3100
3152
  /** Whether the initiator of the activity can participate in the approval. */
3101
3153
  initiatorCanApprove?: boolean | undefined;
3154
+ /** Whether service accounts can participate in the approval for this group. */
3155
+ serviceAccountsCanApprove?: boolean | undefined;
3102
3156
  }[];
3103
3157
  autoRejectTimeout?: (number | undefined) | null;
3104
3158
  } | {
@@ -3180,6 +3234,8 @@ export type CreatePolicyResponse = {
3180
3234
  };
3181
3235
  /** Whether the initiator of the activity can participate in the approval. */
3182
3236
  initiatorCanApprove?: boolean | undefined;
3237
+ /** Whether service accounts can participate in the approval for this group. */
3238
+ serviceAccountsCanApprove?: boolean | undefined;
3183
3239
  }[];
3184
3240
  autoRejectTimeout?: (number | undefined) | null;
3185
3241
  } | {
@@ -3210,6 +3266,8 @@ export type CreatePolicyResponse = {
3210
3266
  };
3211
3267
  /** Whether the initiator of the activity can participate in the approval. */
3212
3268
  initiatorCanApprove?: boolean | undefined;
3269
+ /** Whether service accounts can participate in the approval for this group. */
3270
+ serviceAccountsCanApprove?: boolean | undefined;
3213
3271
  }[];
3214
3272
  autoRejectTimeout?: (number | undefined) | null;
3215
3273
  } | {
@@ -3244,6 +3302,8 @@ export type CreatePolicyResponse = {
3244
3302
  };
3245
3303
  /** Whether the initiator of the activity can participate in the approval. */
3246
3304
  initiatorCanApprove?: boolean | undefined;
3305
+ /** Whether service accounts can participate in the approval for this group. */
3306
+ serviceAccountsCanApprove?: boolean | undefined;
3247
3307
  }[];
3248
3308
  autoRejectTimeout?: (number | undefined) | null;
3249
3309
  } | {
@@ -3278,6 +3338,8 @@ export type CreatePolicyResponse = {
3278
3338
  };
3279
3339
  /** Whether the initiator of the activity can participate in the approval. */
3280
3340
  initiatorCanApprove?: boolean | undefined;
3341
+ /** Whether service accounts can participate in the approval for this group. */
3342
+ serviceAccountsCanApprove?: boolean | undefined;
3281
3343
  }[];
3282
3344
  autoRejectTimeout?: (number | undefined) | null;
3283
3345
  };
@@ -3310,6 +3372,8 @@ export type CreatePolicyResponse = {
3310
3372
  };
3311
3373
  /** Whether the initiator of the activity can participate in the approval. */
3312
3374
  initiatorCanApprove?: boolean | undefined;
3375
+ /** Whether service accounts can participate in the approval for this group. */
3376
+ serviceAccountsCanApprove?: boolean | undefined;
3313
3377
  }[];
3314
3378
  autoRejectTimeout?: (number | undefined) | null;
3315
3379
  } | {
@@ -3421,6 +3485,8 @@ export type CreatePolicyResponse = {
3421
3485
  };
3422
3486
  /** Whether the initiator of the activity can participate in the approval. */
3423
3487
  initiatorCanApprove?: boolean | undefined;
3488
+ /** Whether service accounts can participate in the approval for this group. */
3489
+ serviceAccountsCanApprove?: boolean | undefined;
3424
3490
  }[];
3425
3491
  autoRejectTimeout?: (number | undefined) | null;
3426
3492
  } | {
@@ -4594,6 +4660,8 @@ export type GetApprovalResponse = {
4594
4660
  /** Token id. */
4595
4661
  tokenId?: string | undefined;
4596
4662
  };
4663
+ /** The failure reason, if any. Only present when status is Failed. */
4664
+ failureReason?: string | undefined;
4597
4665
  } | undefined;
4598
4666
  } | {
4599
4667
  kind: "Wallets:IncomingTransaction";
@@ -5581,6 +5649,8 @@ export type GetApprovalResponse = {
5581
5649
  };
5582
5650
  /** Whether the initiator of the activity can participate in the approval. */
5583
5651
  initiatorCanApprove?: boolean | undefined;
5652
+ /** Whether service accounts can participate in the approval for this group. */
5653
+ serviceAccountsCanApprove?: boolean | undefined;
5584
5654
  }[];
5585
5655
  autoRejectTimeout?: (number | undefined) | null;
5586
5656
  } | {
@@ -5611,6 +5681,8 @@ export type GetApprovalResponse = {
5611
5681
  };
5612
5682
  /** Whether the initiator of the activity can participate in the approval. */
5613
5683
  initiatorCanApprove?: boolean | undefined;
5684
+ /** Whether service accounts can participate in the approval for this group. */
5685
+ serviceAccountsCanApprove?: boolean | undefined;
5614
5686
  }[];
5615
5687
  autoRejectTimeout?: (number | undefined) | null;
5616
5688
  } | {
@@ -5645,6 +5717,8 @@ export type GetApprovalResponse = {
5645
5717
  };
5646
5718
  /** Whether the initiator of the activity can participate in the approval. */
5647
5719
  initiatorCanApprove?: boolean | undefined;
5720
+ /** Whether service accounts can participate in the approval for this group. */
5721
+ serviceAccountsCanApprove?: boolean | undefined;
5648
5722
  }[];
5649
5723
  autoRejectTimeout?: (number | undefined) | null;
5650
5724
  } | {
@@ -5679,6 +5753,8 @@ export type GetApprovalResponse = {
5679
5753
  };
5680
5754
  /** Whether the initiator of the activity can participate in the approval. */
5681
5755
  initiatorCanApprove?: boolean | undefined;
5756
+ /** Whether service accounts can participate in the approval for this group. */
5757
+ serviceAccountsCanApprove?: boolean | undefined;
5682
5758
  }[];
5683
5759
  autoRejectTimeout?: (number | undefined) | null;
5684
5760
  };
@@ -5711,6 +5787,8 @@ export type GetApprovalResponse = {
5711
5787
  };
5712
5788
  /** Whether the initiator of the activity can participate in the approval. */
5713
5789
  initiatorCanApprove?: boolean | undefined;
5790
+ /** Whether service accounts can participate in the approval for this group. */
5791
+ serviceAccountsCanApprove?: boolean | undefined;
5714
5792
  }[];
5715
5793
  autoRejectTimeout?: (number | undefined) | null;
5716
5794
  } | {
@@ -5822,6 +5900,8 @@ export type GetApprovalResponse = {
5822
5900
  };
5823
5901
  /** Whether the initiator of the activity can participate in the approval. */
5824
5902
  initiatorCanApprove?: boolean | undefined;
5903
+ /** Whether service accounts can participate in the approval for this group. */
5904
+ serviceAccountsCanApprove?: boolean | undefined;
5825
5905
  }[];
5826
5906
  autoRejectTimeout?: (number | undefined) | null;
5827
5907
  } | {
@@ -5887,6 +5967,7 @@ export type GetApprovalResponse = {
5887
5967
  } | {
5888
5968
  kind: "Permissions:Modify";
5889
5969
  changeRequest: {
5970
+ /** ID of the change request. */
5890
5971
  id: string;
5891
5972
  /** The user who initiated the change request. */
5892
5973
  requester: {
@@ -5894,7 +5975,9 @@ export type GetApprovalResponse = {
5894
5975
  tokenId?: string | undefined;
5895
5976
  appId?: string | undefined;
5896
5977
  };
5978
+ /** Current status of the change request. */
5897
5979
  status: "Applied" | "Failed" | "Pending" | "Rejected";
5980
+ /** ID of the entity being changed. */
5898
5981
  entityId: string;
5899
5982
  dateCreated: string;
5900
5983
  dateResolved?: string | undefined;
@@ -5902,17 +5985,24 @@ export type GetApprovalResponse = {
5902
5985
  kind: "Permission";
5903
5986
  operationKind: "Update";
5904
5987
  body: {
5988
+ /** ID of the permission (also referred to as "role" in the dashboard). */
5905
5989
  id: string;
5990
+ /** Human-readable name of the permission (role). */
5906
5991
  name: string;
5992
+ /** Current status of the permission. */
5907
5993
  status: "Active";
5994
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
5908
5995
  operations: string[];
5996
+ /** Whether this permission is system-managed and cannot be modified. */
5909
5997
  isImmutable: boolean;
5998
+ /** Whether this permission has been archived (soft-deleted). */
5910
5999
  isArchived: boolean;
5911
6000
  };
5912
6001
  };
5913
6002
  } | {
5914
6003
  kind: "Permissions:Assign";
5915
6004
  changeRequest: {
6005
+ /** ID of the change request. */
5916
6006
  id: string;
5917
6007
  /** The user who initiated the change request. */
5918
6008
  requester: {
@@ -5920,7 +6010,9 @@ export type GetApprovalResponse = {
5920
6010
  tokenId?: string | undefined;
5921
6011
  appId?: string | undefined;
5922
6012
  };
6013
+ /** Current status of the change request. */
5923
6014
  status: "Applied" | "Failed" | "Pending" | "Rejected";
6015
+ /** ID of the entity being changed. */
5924
6016
  entityId: string;
5925
6017
  dateCreated: string;
5926
6018
  dateResolved?: string | undefined;
@@ -5928,9 +6020,13 @@ export type GetApprovalResponse = {
5928
6020
  kind: "Assignment";
5929
6021
  operationKind: "Create" | "Delete";
5930
6022
  body: {
6023
+ /** ID of the permission assignment. */
5931
6024
  id: string;
6025
+ /** ID of the permission (also referred to as "role" in the dashboard). */
5932
6026
  permissionId: string;
6027
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
5933
6028
  identityId: string;
6029
+ /** Whether this assignment is system-managed and cannot be modified. */
5934
6030
  isImmutable: boolean;
5935
6031
  };
5936
6032
  };
@@ -6036,6 +6132,8 @@ export type GetPolicyResponse = ({
6036
6132
  };
6037
6133
  /** Whether the initiator of the activity can participate in the approval. */
6038
6134
  initiatorCanApprove?: boolean | undefined;
6135
+ /** Whether service accounts can participate in the approval for this group. */
6136
+ serviceAccountsCanApprove?: boolean | undefined;
6039
6137
  }[];
6040
6138
  autoRejectTimeout?: (number | undefined) | null;
6041
6139
  } | {
@@ -6066,6 +6164,8 @@ export type GetPolicyResponse = ({
6066
6164
  };
6067
6165
  /** Whether the initiator of the activity can participate in the approval. */
6068
6166
  initiatorCanApprove?: boolean | undefined;
6167
+ /** Whether service accounts can participate in the approval for this group. */
6168
+ serviceAccountsCanApprove?: boolean | undefined;
6069
6169
  }[];
6070
6170
  autoRejectTimeout?: (number | undefined) | null;
6071
6171
  } | {
@@ -6100,6 +6200,8 @@ export type GetPolicyResponse = ({
6100
6200
  };
6101
6201
  /** Whether the initiator of the activity can participate in the approval. */
6102
6202
  initiatorCanApprove?: boolean | undefined;
6203
+ /** Whether service accounts can participate in the approval for this group. */
6204
+ serviceAccountsCanApprove?: boolean | undefined;
6103
6205
  }[];
6104
6206
  autoRejectTimeout?: (number | undefined) | null;
6105
6207
  } | {
@@ -6134,6 +6236,8 @@ export type GetPolicyResponse = ({
6134
6236
  };
6135
6237
  /** Whether the initiator of the activity can participate in the approval. */
6136
6238
  initiatorCanApprove?: boolean | undefined;
6239
+ /** Whether service accounts can participate in the approval for this group. */
6240
+ serviceAccountsCanApprove?: boolean | undefined;
6137
6241
  }[];
6138
6242
  autoRejectTimeout?: (number | undefined) | null;
6139
6243
  };
@@ -6166,6 +6270,8 @@ export type GetPolicyResponse = ({
6166
6270
  };
6167
6271
  /** Whether the initiator of the activity can participate in the approval. */
6168
6272
  initiatorCanApprove?: boolean | undefined;
6273
+ /** Whether service accounts can participate in the approval for this group. */
6274
+ serviceAccountsCanApprove?: boolean | undefined;
6169
6275
  }[];
6170
6276
  autoRejectTimeout?: (number | undefined) | null;
6171
6277
  } | {
@@ -6277,6 +6383,8 @@ export type GetPolicyResponse = ({
6277
6383
  };
6278
6384
  /** Whether the initiator of the activity can participate in the approval. */
6279
6385
  initiatorCanApprove?: boolean | undefined;
6386
+ /** Whether service accounts can participate in the approval for this group. */
6387
+ serviceAccountsCanApprove?: boolean | undefined;
6280
6388
  }[];
6281
6389
  autoRejectTimeout?: (number | undefined) | null;
6282
6390
  } | {
@@ -6377,6 +6485,8 @@ export type GetPolicyResponse = ({
6377
6485
  };
6378
6486
  /** Whether the initiator of the activity can participate in the approval. */
6379
6487
  initiatorCanApprove?: boolean | undefined;
6488
+ /** Whether service accounts can participate in the approval for this group. */
6489
+ serviceAccountsCanApprove?: boolean | undefined;
6380
6490
  }[];
6381
6491
  autoRejectTimeout?: (number | undefined) | null;
6382
6492
  } | {
@@ -6407,6 +6517,8 @@ export type GetPolicyResponse = ({
6407
6517
  };
6408
6518
  /** Whether the initiator of the activity can participate in the approval. */
6409
6519
  initiatorCanApprove?: boolean | undefined;
6520
+ /** Whether service accounts can participate in the approval for this group. */
6521
+ serviceAccountsCanApprove?: boolean | undefined;
6410
6522
  }[];
6411
6523
  autoRejectTimeout?: (number | undefined) | null;
6412
6524
  } | {
@@ -6441,6 +6553,8 @@ export type GetPolicyResponse = ({
6441
6553
  };
6442
6554
  /** Whether the initiator of the activity can participate in the approval. */
6443
6555
  initiatorCanApprove?: boolean | undefined;
6556
+ /** Whether service accounts can participate in the approval for this group. */
6557
+ serviceAccountsCanApprove?: boolean | undefined;
6444
6558
  }[];
6445
6559
  autoRejectTimeout?: (number | undefined) | null;
6446
6560
  } | {
@@ -6475,6 +6589,8 @@ export type GetPolicyResponse = ({
6475
6589
  };
6476
6590
  /** Whether the initiator of the activity can participate in the approval. */
6477
6591
  initiatorCanApprove?: boolean | undefined;
6592
+ /** Whether service accounts can participate in the approval for this group. */
6593
+ serviceAccountsCanApprove?: boolean | undefined;
6478
6594
  }[];
6479
6595
  autoRejectTimeout?: (number | undefined) | null;
6480
6596
  };
@@ -6507,6 +6623,8 @@ export type GetPolicyResponse = ({
6507
6623
  };
6508
6624
  /** Whether the initiator of the activity can participate in the approval. */
6509
6625
  initiatorCanApprove?: boolean | undefined;
6626
+ /** Whether service accounts can participate in the approval for this group. */
6627
+ serviceAccountsCanApprove?: boolean | undefined;
6510
6628
  }[];
6511
6629
  autoRejectTimeout?: (number | undefined) | null;
6512
6630
  } | {
@@ -6618,6 +6736,8 @@ export type GetPolicyResponse = ({
6618
6736
  };
6619
6737
  /** Whether the initiator of the activity can participate in the approval. */
6620
6738
  initiatorCanApprove?: boolean | undefined;
6739
+ /** Whether service accounts can participate in the approval for this group. */
6740
+ serviceAccountsCanApprove?: boolean | undefined;
6621
6741
  }[];
6622
6742
  autoRejectTimeout?: (number | undefined) | null;
6623
6743
  } | {
@@ -7796,6 +7916,8 @@ export type ListApprovalsResponse = {
7796
7916
  /** Token id. */
7797
7917
  tokenId?: string | undefined;
7798
7918
  };
7919
+ /** The failure reason, if any. Only present when status is Failed. */
7920
+ failureReason?: string | undefined;
7799
7921
  } | undefined;
7800
7922
  } | {
7801
7923
  kind: "Wallets:IncomingTransaction";
@@ -8783,6 +8905,8 @@ export type ListApprovalsResponse = {
8783
8905
  };
8784
8906
  /** Whether the initiator of the activity can participate in the approval. */
8785
8907
  initiatorCanApprove?: boolean | undefined;
8908
+ /** Whether service accounts can participate in the approval for this group. */
8909
+ serviceAccountsCanApprove?: boolean | undefined;
8786
8910
  }[];
8787
8911
  autoRejectTimeout?: (number | undefined) | null;
8788
8912
  } | {
@@ -8813,6 +8937,8 @@ export type ListApprovalsResponse = {
8813
8937
  };
8814
8938
  /** Whether the initiator of the activity can participate in the approval. */
8815
8939
  initiatorCanApprove?: boolean | undefined;
8940
+ /** Whether service accounts can participate in the approval for this group. */
8941
+ serviceAccountsCanApprove?: boolean | undefined;
8816
8942
  }[];
8817
8943
  autoRejectTimeout?: (number | undefined) | null;
8818
8944
  } | {
@@ -8847,6 +8973,8 @@ export type ListApprovalsResponse = {
8847
8973
  };
8848
8974
  /** Whether the initiator of the activity can participate in the approval. */
8849
8975
  initiatorCanApprove?: boolean | undefined;
8976
+ /** Whether service accounts can participate in the approval for this group. */
8977
+ serviceAccountsCanApprove?: boolean | undefined;
8850
8978
  }[];
8851
8979
  autoRejectTimeout?: (number | undefined) | null;
8852
8980
  } | {
@@ -8881,6 +9009,8 @@ export type ListApprovalsResponse = {
8881
9009
  };
8882
9010
  /** Whether the initiator of the activity can participate in the approval. */
8883
9011
  initiatorCanApprove?: boolean | undefined;
9012
+ /** Whether service accounts can participate in the approval for this group. */
9013
+ serviceAccountsCanApprove?: boolean | undefined;
8884
9014
  }[];
8885
9015
  autoRejectTimeout?: (number | undefined) | null;
8886
9016
  };
@@ -8913,6 +9043,8 @@ export type ListApprovalsResponse = {
8913
9043
  };
8914
9044
  /** Whether the initiator of the activity can participate in the approval. */
8915
9045
  initiatorCanApprove?: boolean | undefined;
9046
+ /** Whether service accounts can participate in the approval for this group. */
9047
+ serviceAccountsCanApprove?: boolean | undefined;
8916
9048
  }[];
8917
9049
  autoRejectTimeout?: (number | undefined) | null;
8918
9050
  } | {
@@ -9024,6 +9156,8 @@ export type ListApprovalsResponse = {
9024
9156
  };
9025
9157
  /** Whether the initiator of the activity can participate in the approval. */
9026
9158
  initiatorCanApprove?: boolean | undefined;
9159
+ /** Whether service accounts can participate in the approval for this group. */
9160
+ serviceAccountsCanApprove?: boolean | undefined;
9027
9161
  }[];
9028
9162
  autoRejectTimeout?: (number | undefined) | null;
9029
9163
  } | {
@@ -9089,6 +9223,7 @@ export type ListApprovalsResponse = {
9089
9223
  } | {
9090
9224
  kind: "Permissions:Modify";
9091
9225
  changeRequest: {
9226
+ /** ID of the change request. */
9092
9227
  id: string;
9093
9228
  /** The user who initiated the change request. */
9094
9229
  requester: {
@@ -9096,7 +9231,9 @@ export type ListApprovalsResponse = {
9096
9231
  tokenId?: string | undefined;
9097
9232
  appId?: string | undefined;
9098
9233
  };
9234
+ /** Current status of the change request. */
9099
9235
  status: "Applied" | "Failed" | "Pending" | "Rejected";
9236
+ /** ID of the entity being changed. */
9100
9237
  entityId: string;
9101
9238
  dateCreated: string;
9102
9239
  dateResolved?: string | undefined;
@@ -9104,17 +9241,24 @@ export type ListApprovalsResponse = {
9104
9241
  kind: "Permission";
9105
9242
  operationKind: "Update";
9106
9243
  body: {
9244
+ /** ID of the permission (also referred to as "role" in the dashboard). */
9107
9245
  id: string;
9246
+ /** Human-readable name of the permission (role). */
9108
9247
  name: string;
9248
+ /** Current status of the permission. */
9109
9249
  status: "Active";
9250
+ /** List of API operations this permission grants access to. See [Permissions List](https://docs.dfns.co/core-concepts/roles-and-permissions#list-of-permissions) for available operations. */
9110
9251
  operations: string[];
9252
+ /** Whether this permission is system-managed and cannot be modified. */
9111
9253
  isImmutable: boolean;
9254
+ /** Whether this permission has been archived (soft-deleted). */
9112
9255
  isArchived: boolean;
9113
9256
  };
9114
9257
  };
9115
9258
  } | {
9116
9259
  kind: "Permissions:Assign";
9117
9260
  changeRequest: {
9261
+ /** ID of the change request. */
9118
9262
  id: string;
9119
9263
  /** The user who initiated the change request. */
9120
9264
  requester: {
@@ -9122,7 +9266,9 @@ export type ListApprovalsResponse = {
9122
9266
  tokenId?: string | undefined;
9123
9267
  appId?: string | undefined;
9124
9268
  };
9269
+ /** Current status of the change request. */
9125
9270
  status: "Applied" | "Failed" | "Pending" | "Rejected";
9271
+ /** ID of the entity being changed. */
9126
9272
  entityId: string;
9127
9273
  dateCreated: string;
9128
9274
  dateResolved?: string | undefined;
@@ -9130,9 +9276,13 @@ export type ListApprovalsResponse = {
9130
9276
  kind: "Assignment";
9131
9277
  operationKind: "Create" | "Delete";
9132
9278
  body: {
9279
+ /** ID of the permission assignment. */
9133
9280
  id: string;
9281
+ /** ID of the permission (also referred to as "role" in the dashboard). */
9134
9282
  permissionId: string;
9283
+ /** ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID. */
9135
9284
  identityId: string;
9285
+ /** Whether this assignment is system-managed and cannot be modified. */
9136
9286
  isImmutable: boolean;
9137
9287
  };
9138
9288
  };
@@ -9245,6 +9395,8 @@ export type ListPoliciesResponse = {
9245
9395
  };
9246
9396
  /** Whether the initiator of the activity can participate in the approval. */
9247
9397
  initiatorCanApprove?: boolean | undefined;
9398
+ /** Whether service accounts can participate in the approval for this group. */
9399
+ serviceAccountsCanApprove?: boolean | undefined;
9248
9400
  }[];
9249
9401
  autoRejectTimeout?: (number | undefined) | null;
9250
9402
  } | {
@@ -9275,6 +9427,8 @@ export type ListPoliciesResponse = {
9275
9427
  };
9276
9428
  /** Whether the initiator of the activity can participate in the approval. */
9277
9429
  initiatorCanApprove?: boolean | undefined;
9430
+ /** Whether service accounts can participate in the approval for this group. */
9431
+ serviceAccountsCanApprove?: boolean | undefined;
9278
9432
  }[];
9279
9433
  autoRejectTimeout?: (number | undefined) | null;
9280
9434
  } | {
@@ -9309,6 +9463,8 @@ export type ListPoliciesResponse = {
9309
9463
  };
9310
9464
  /** Whether the initiator of the activity can participate in the approval. */
9311
9465
  initiatorCanApprove?: boolean | undefined;
9466
+ /** Whether service accounts can participate in the approval for this group. */
9467
+ serviceAccountsCanApprove?: boolean | undefined;
9312
9468
  }[];
9313
9469
  autoRejectTimeout?: (number | undefined) | null;
9314
9470
  } | {
@@ -9343,6 +9499,8 @@ export type ListPoliciesResponse = {
9343
9499
  };
9344
9500
  /** Whether the initiator of the activity can participate in the approval. */
9345
9501
  initiatorCanApprove?: boolean | undefined;
9502
+ /** Whether service accounts can participate in the approval for this group. */
9503
+ serviceAccountsCanApprove?: boolean | undefined;
9346
9504
  }[];
9347
9505
  autoRejectTimeout?: (number | undefined) | null;
9348
9506
  };
@@ -9375,6 +9533,8 @@ export type ListPoliciesResponse = {
9375
9533
  };
9376
9534
  /** Whether the initiator of the activity can participate in the approval. */
9377
9535
  initiatorCanApprove?: boolean | undefined;
9536
+ /** Whether service accounts can participate in the approval for this group. */
9537
+ serviceAccountsCanApprove?: boolean | undefined;
9378
9538
  }[];
9379
9539
  autoRejectTimeout?: (number | undefined) | null;
9380
9540
  } | {
@@ -9486,6 +9646,8 @@ export type ListPoliciesResponse = {
9486
9646
  };
9487
9647
  /** Whether the initiator of the activity can participate in the approval. */
9488
9648
  initiatorCanApprove?: boolean | undefined;
9649
+ /** Whether service accounts can participate in the approval for this group. */
9650
+ serviceAccountsCanApprove?: boolean | undefined;
9489
9651
  }[];
9490
9652
  autoRejectTimeout?: (number | undefined) | null;
9491
9653
  } | {
@@ -9586,6 +9748,8 @@ export type ListPoliciesResponse = {
9586
9748
  };
9587
9749
  /** Whether the initiator of the activity can participate in the approval. */
9588
9750
  initiatorCanApprove?: boolean | undefined;
9751
+ /** Whether service accounts can participate in the approval for this group. */
9752
+ serviceAccountsCanApprove?: boolean | undefined;
9589
9753
  }[];
9590
9754
  autoRejectTimeout?: (number | undefined) | null;
9591
9755
  } | {
@@ -9616,6 +9780,8 @@ export type ListPoliciesResponse = {
9616
9780
  };
9617
9781
  /** Whether the initiator of the activity can participate in the approval. */
9618
9782
  initiatorCanApprove?: boolean | undefined;
9783
+ /** Whether service accounts can participate in the approval for this group. */
9784
+ serviceAccountsCanApprove?: boolean | undefined;
9619
9785
  }[];
9620
9786
  autoRejectTimeout?: (number | undefined) | null;
9621
9787
  } | {
@@ -9650,6 +9816,8 @@ export type ListPoliciesResponse = {
9650
9816
  };
9651
9817
  /** Whether the initiator of the activity can participate in the approval. */
9652
9818
  initiatorCanApprove?: boolean | undefined;
9819
+ /** Whether service accounts can participate in the approval for this group. */
9820
+ serviceAccountsCanApprove?: boolean | undefined;
9653
9821
  }[];
9654
9822
  autoRejectTimeout?: (number | undefined) | null;
9655
9823
  } | {
@@ -9684,6 +9852,8 @@ export type ListPoliciesResponse = {
9684
9852
  };
9685
9853
  /** Whether the initiator of the activity can participate in the approval. */
9686
9854
  initiatorCanApprove?: boolean | undefined;
9855
+ /** Whether service accounts can participate in the approval for this group. */
9856
+ serviceAccountsCanApprove?: boolean | undefined;
9687
9857
  }[];
9688
9858
  autoRejectTimeout?: (number | undefined) | null;
9689
9859
  };
@@ -9716,6 +9886,8 @@ export type ListPoliciesResponse = {
9716
9886
  };
9717
9887
  /** Whether the initiator of the activity can participate in the approval. */
9718
9888
  initiatorCanApprove?: boolean | undefined;
9889
+ /** Whether service accounts can participate in the approval for this group. */
9890
+ serviceAccountsCanApprove?: boolean | undefined;
9719
9891
  }[];
9720
9892
  autoRejectTimeout?: (number | undefined) | null;
9721
9893
  } | {
@@ -9827,6 +9999,8 @@ export type ListPoliciesResponse = {
9827
9999
  };
9828
10000
  /** Whether the initiator of the activity can participate in the approval. */
9829
10001
  initiatorCanApprove?: boolean | undefined;
10002
+ /** Whether service accounts can participate in the approval for this group. */
10003
+ serviceAccountsCanApprove?: boolean | undefined;
9830
10004
  }[];
9831
10005
  autoRejectTimeout?: (number | undefined) | null;
9832
10006
  } | {
@@ -9915,6 +10089,8 @@ export type UpdatePolicyBody = {
9915
10089
  };
9916
10090
  /** Whether the initiator of the activity can participate in the approval. */
9917
10091
  initiatorCanApprove?: boolean | undefined;
10092
+ /** Whether service accounts can participate in the approval for this group. */
10093
+ serviceAccountsCanApprove?: boolean | undefined;
9918
10094
  }[];
9919
10095
  autoRejectTimeout?: (number | undefined) | null;
9920
10096
  } | {
@@ -9941,6 +10117,8 @@ export type UpdatePolicyBody = {
9941
10117
  };
9942
10118
  /** Whether the initiator of the activity can participate in the approval. */
9943
10119
  initiatorCanApprove?: boolean | undefined;
10120
+ /** Whether service accounts can participate in the approval for this group. */
10121
+ serviceAccountsCanApprove?: boolean | undefined;
9944
10122
  }[];
9945
10123
  autoRejectTimeout?: (number | undefined) | null;
9946
10124
  } | {
@@ -9971,6 +10149,8 @@ export type UpdatePolicyBody = {
9971
10149
  };
9972
10150
  /** Whether the initiator of the activity can participate in the approval. */
9973
10151
  initiatorCanApprove?: boolean | undefined;
10152
+ /** Whether service accounts can participate in the approval for this group. */
10153
+ serviceAccountsCanApprove?: boolean | undefined;
9974
10154
  }[];
9975
10155
  autoRejectTimeout?: (number | undefined) | null;
9976
10156
  } | {
@@ -10001,6 +10181,8 @@ export type UpdatePolicyBody = {
10001
10181
  };
10002
10182
  /** Whether the initiator of the activity can participate in the approval. */
10003
10183
  initiatorCanApprove?: boolean | undefined;
10184
+ /** Whether service accounts can participate in the approval for this group. */
10185
+ serviceAccountsCanApprove?: boolean | undefined;
10004
10186
  }[];
10005
10187
  autoRejectTimeout?: (number | undefined) | null;
10006
10188
  };
@@ -10029,6 +10211,8 @@ export type UpdatePolicyBody = {
10029
10211
  };
10030
10212
  /** Whether the initiator of the activity can participate in the approval. */
10031
10213
  initiatorCanApprove?: boolean | undefined;
10214
+ /** Whether service accounts can participate in the approval for this group. */
10215
+ serviceAccountsCanApprove?: boolean | undefined;
10032
10216
  }[];
10033
10217
  autoRejectTimeout?: (number | undefined) | null;
10034
10218
  } | {
@@ -10136,6 +10320,8 @@ export type UpdatePolicyBody = {
10136
10320
  };
10137
10321
  /** Whether the initiator of the activity can participate in the approval. */
10138
10322
  initiatorCanApprove?: boolean | undefined;
10323
+ /** Whether service accounts can participate in the approval for this group. */
10324
+ serviceAccountsCanApprove?: boolean | undefined;
10139
10325
  }[];
10140
10326
  autoRejectTimeout?: (number | undefined) | null;
10141
10327
  } | {
@@ -10220,6 +10406,8 @@ export type UpdatePolicyResponse = {
10220
10406
  };
10221
10407
  /** Whether the initiator of the activity can participate in the approval. */
10222
10408
  initiatorCanApprove?: boolean | undefined;
10409
+ /** Whether service accounts can participate in the approval for this group. */
10410
+ serviceAccountsCanApprove?: boolean | undefined;
10223
10411
  }[];
10224
10412
  autoRejectTimeout?: (number | undefined) | null;
10225
10413
  } | {
@@ -10250,6 +10438,8 @@ export type UpdatePolicyResponse = {
10250
10438
  };
10251
10439
  /** Whether the initiator of the activity can participate in the approval. */
10252
10440
  initiatorCanApprove?: boolean | undefined;
10441
+ /** Whether service accounts can participate in the approval for this group. */
10442
+ serviceAccountsCanApprove?: boolean | undefined;
10253
10443
  }[];
10254
10444
  autoRejectTimeout?: (number | undefined) | null;
10255
10445
  } | {
@@ -10284,6 +10474,8 @@ export type UpdatePolicyResponse = {
10284
10474
  };
10285
10475
  /** Whether the initiator of the activity can participate in the approval. */
10286
10476
  initiatorCanApprove?: boolean | undefined;
10477
+ /** Whether service accounts can participate in the approval for this group. */
10478
+ serviceAccountsCanApprove?: boolean | undefined;
10287
10479
  }[];
10288
10480
  autoRejectTimeout?: (number | undefined) | null;
10289
10481
  } | {
@@ -10318,6 +10510,8 @@ export type UpdatePolicyResponse = {
10318
10510
  };
10319
10511
  /** Whether the initiator of the activity can participate in the approval. */
10320
10512
  initiatorCanApprove?: boolean | undefined;
10513
+ /** Whether service accounts can participate in the approval for this group. */
10514
+ serviceAccountsCanApprove?: boolean | undefined;
10321
10515
  }[];
10322
10516
  autoRejectTimeout?: (number | undefined) | null;
10323
10517
  };
@@ -10350,6 +10544,8 @@ export type UpdatePolicyResponse = {
10350
10544
  };
10351
10545
  /** Whether the initiator of the activity can participate in the approval. */
10352
10546
  initiatorCanApprove?: boolean | undefined;
10547
+ /** Whether service accounts can participate in the approval for this group. */
10548
+ serviceAccountsCanApprove?: boolean | undefined;
10353
10549
  }[];
10354
10550
  autoRejectTimeout?: (number | undefined) | null;
10355
10551
  } | {
@@ -10461,6 +10657,8 @@ export type UpdatePolicyResponse = {
10461
10657
  };
10462
10658
  /** Whether the initiator of the activity can participate in the approval. */
10463
10659
  initiatorCanApprove?: boolean | undefined;
10660
+ /** Whether service accounts can participate in the approval for this group. */
10661
+ serviceAccountsCanApprove?: boolean | undefined;
10464
10662
  }[];
10465
10663
  autoRejectTimeout?: (number | undefined) | null;
10466
10664
  } | {