@arbidocs/sdk 0.4.70 → 0.4.72

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.
@@ -2297,6 +2297,7 @@ declare function listContacts(arbi: ArbiClient): Promise<{
2297
2297
  picture?: string | null | undefined;
2298
2298
  encryption_public_key: string;
2299
2299
  is_sso: boolean;
2300
+ is_identity_verified: boolean;
2300
2301
  } | null | undefined;
2301
2302
  status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
2302
2303
  created_at: string;
@@ -2316,6 +2317,7 @@ declare function addContacts(arbi: ArbiClient, emails: string[]): Promise<{
2316
2317
  picture?: string | null | undefined;
2317
2318
  encryption_public_key: string;
2318
2319
  is_sso: boolean;
2320
+ is_identity_verified: boolean;
2319
2321
  } | null | undefined;
2320
2322
  status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
2321
2323
  created_at: string;
@@ -2490,6 +2492,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
2490
2492
  picture?: string | null | undefined;
2491
2493
  encryption_public_key: string;
2492
2494
  is_sso: boolean;
2495
+ is_identity_verified: boolean;
2493
2496
  };
2494
2497
  recipient: {
2495
2498
  external_id: string;
@@ -2500,6 +2503,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
2500
2503
  picture?: string | null | undefined;
2501
2504
  encryption_public_key: string;
2502
2505
  is_sso: boolean;
2506
+ is_identity_verified: boolean;
2503
2507
  };
2504
2508
  workspace_ext_id?: string | null | undefined;
2505
2509
  dm_context_only: boolean;
@@ -2538,6 +2542,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
2538
2542
  picture?: string | null | undefined;
2539
2543
  encryption_public_key: string;
2540
2544
  is_sso: boolean;
2545
+ is_identity_verified: boolean;
2541
2546
  };
2542
2547
  recipient: {
2543
2548
  external_id: string;
@@ -2548,6 +2553,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
2548
2553
  picture?: string | null | undefined;
2549
2554
  encryption_public_key: string;
2550
2555
  is_sso: boolean;
2556
+ is_identity_verified: boolean;
2551
2557
  };
2552
2558
  workspace_ext_id?: string | null | undefined;
2553
2559
  dm_context_only: boolean;
@@ -2628,6 +2634,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
2628
2634
  picture?: string | null | undefined;
2629
2635
  encryption_public_key: string;
2630
2636
  is_sso: boolean;
2637
+ is_identity_verified: boolean;
2631
2638
  };
2632
2639
  recipient: {
2633
2640
  external_id: string;
@@ -2638,6 +2645,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
2638
2645
  picture?: string | null | undefined;
2639
2646
  encryption_public_key: string;
2640
2647
  is_sso: boolean;
2648
+ is_identity_verified: boolean;
2641
2649
  };
2642
2650
  workspace_ext_id?: string | null | undefined;
2643
2651
  dm_context_only: boolean;
@@ -2668,6 +2676,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
2668
2676
  picture?: string | null | undefined;
2669
2677
  encryption_public_key: string;
2670
2678
  is_sso: boolean;
2679
+ is_identity_verified: boolean;
2671
2680
  };
2672
2681
  recipient: {
2673
2682
  external_id: string;
@@ -2678,6 +2687,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
2678
2687
  picture?: string | null | undefined;
2679
2688
  encryption_public_key: string;
2680
2689
  is_sso: boolean;
2690
+ is_identity_verified: boolean;
2681
2691
  };
2682
2692
  workspace_ext_id?: string | null | undefined;
2683
2693
  dm_context_only: boolean;
@@ -2701,6 +2711,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
2701
2711
  picture?: string | null | undefined;
2702
2712
  encryption_public_key: string;
2703
2713
  is_sso: boolean;
2714
+ is_identity_verified: boolean;
2704
2715
  };
2705
2716
  recipient: {
2706
2717
  external_id: string;
@@ -2711,6 +2722,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
2711
2722
  picture?: string | null | undefined;
2712
2723
  encryption_public_key: string;
2713
2724
  is_sso: boolean;
2725
+ is_identity_verified: boolean;
2714
2726
  };
2715
2727
  workspace_ext_id?: string | null | undefined;
2716
2728
  dm_context_only: boolean;
@@ -3204,6 +3216,7 @@ declare function updateProfile(arbi: ArbiClient, body: UpdateProfileRequest): Pr
3204
3216
  family_name?: string | null | undefined;
3205
3217
  email: string;
3206
3218
  picture?: string | null | undefined;
3219
+ is_identity_verified: boolean;
3207
3220
  }>;
3208
3221
 
3209
3222
  type profile_UpdateProfileRequest = UpdateProfileRequest;
@@ -3464,6 +3477,12 @@ declare class Arbi {
3464
3477
  private readonly sessionExpiredListeners;
3465
3478
  private readonly options;
3466
3479
  constructor(options: ArbiOptions);
3480
+ /**
3481
+ * The deployment domain the user's keys are derived for: `deploymentDomain` when given,
3482
+ * otherwise the hostname of `url`. Signing and password changes re-derive keys with it, so a
3483
+ * host that needs it (the document tools' e-signing) reads it here rather than recomputing it.
3484
+ */
3485
+ getDeploymentDomain(): string;
3467
3486
  /** Initialize the SDK client and sodium crypto. Called automatically by login(). */
3468
3487
  init(): Promise<ArbiClient>;
3469
3488
  /**
@@ -3543,7 +3562,6 @@ declare class Arbi {
3543
3562
  external_id: string;
3544
3563
  name: string;
3545
3564
  created_by: string;
3546
- packs: number;
3547
3565
  subscription: string;
3548
3566
  created_at: string;
3549
3567
  quotas: {
@@ -3562,9 +3580,73 @@ declare class Arbi {
3562
3580
  budget_reset_at?: number | null | undefined;
3563
3581
  };
3564
3582
  daily_cap_per_user?: number | null | undefined;
3583
+ plan_interval?: ("month" | "year") | null | undefined;
3584
+ packs: number;
3585
+ plan_change?: {
3586
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3587
+ charged_pence: number;
3588
+ charged_ex_vat_pence: number;
3589
+ confirm_url?: string | null | undefined;
3590
+ } | null | undefined;
3591
+ addons?: {
3592
+ packs: number;
3593
+ packs_next?: number | null | undefined;
3594
+ plan_name: string;
3595
+ plan_credits: number;
3596
+ plan_storage_gb: number;
3597
+ block_credits: number;
3598
+ block_storage_gb: number;
3599
+ credit_blocks: number;
3600
+ storage_blocks: number;
3601
+ credit_blocks_next?: number | null | undefined;
3602
+ storage_blocks_next?: number | null | undefined;
3603
+ storage_blocks_min: number;
3604
+ auto_topup_threshold_credits: number;
3605
+ min_auto_topup_threshold_credits: number;
3606
+ spend_cap_pence?: number | null | undefined;
3607
+ addon_spend_pence: number;
3608
+ addon_spend_window_end?: number | null | undefined;
3609
+ block_monthly_pence: number;
3610
+ block_monthly_ex_vat_pence: number;
3611
+ block_period_pence: number;
3612
+ block_period_ex_vat_pence: number;
3613
+ credit_block_price_pence: number;
3614
+ credit_block_price_ex_vat_pence: number;
3615
+ storage_block_price_pence: number;
3616
+ storage_block_price_ex_vat_pence: number;
3617
+ cap_reached: boolean;
3618
+ period_end?: number | null | undefined;
3619
+ credits_reset_at?: number | null | undefined;
3620
+ pending_interval?: ("month" | "year") | null | undefined;
3621
+ billing_error?: string | null | undefined;
3622
+ confirm_url?: string | null | undefined;
3623
+ upsell?: {
3624
+ variant: "compare" | "save";
3625
+ interval: "month" | "year";
3626
+ add_on_count: number;
3627
+ current_monthly_pence: number;
3628
+ current_monthly_ex_vat_pence: number;
3629
+ pro_plus_monthly_pence: number;
3630
+ pro_plus_monthly_ex_vat_pence: number;
3631
+ pro_plus_period_pence: number;
3632
+ pro_plus_credits: number;
3633
+ pro_plus_storage_gb: number;
3634
+ saving_monthly_pence: number;
3635
+ } | null | undefined;
3636
+ payment?: {
3637
+ status: "pending" | "paid";
3638
+ kind?: ("credits" | "storage") | null | undefined;
3639
+ amount_pence?: number | null | undefined;
3640
+ amount_ex_vat_pence?: number | null | undefined;
3641
+ tax_pence?: number | null | undefined;
3642
+ at?: number | null | undefined;
3643
+ confirm_url?: string | null | undefined;
3644
+ } | null | undefined;
3645
+ } | null | undefined;
3565
3646
  price_id?: string | null | undefined;
3566
3647
  plan?: string | null | undefined;
3567
3648
  amount?: number | null | undefined;
3649
+ amount_ex_vat?: number | null | undefined;
3568
3650
  currency?: string | null | undefined;
3569
3651
  current_period_end?: number | null | undefined;
3570
3652
  cancel_at_period_end?: boolean | null | undefined;
@@ -3574,7 +3656,6 @@ declare class Arbi {
3574
3656
  external_id: string;
3575
3657
  name: string;
3576
3658
  created_by: string;
3577
- packs: number;
3578
3659
  subscription: string;
3579
3660
  created_at: string;
3580
3661
  quotas: {
@@ -3593,9 +3674,73 @@ declare class Arbi {
3593
3674
  budget_reset_at?: number | null | undefined;
3594
3675
  };
3595
3676
  daily_cap_per_user?: number | null | undefined;
3677
+ plan_interval?: ("month" | "year") | null | undefined;
3678
+ packs: number;
3679
+ plan_change?: {
3680
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3681
+ charged_pence: number;
3682
+ charged_ex_vat_pence: number;
3683
+ confirm_url?: string | null | undefined;
3684
+ } | null | undefined;
3685
+ addons?: {
3686
+ packs: number;
3687
+ packs_next?: number | null | undefined;
3688
+ plan_name: string;
3689
+ plan_credits: number;
3690
+ plan_storage_gb: number;
3691
+ block_credits: number;
3692
+ block_storage_gb: number;
3693
+ credit_blocks: number;
3694
+ storage_blocks: number;
3695
+ credit_blocks_next?: number | null | undefined;
3696
+ storage_blocks_next?: number | null | undefined;
3697
+ storage_blocks_min: number;
3698
+ auto_topup_threshold_credits: number;
3699
+ min_auto_topup_threshold_credits: number;
3700
+ spend_cap_pence?: number | null | undefined;
3701
+ addon_spend_pence: number;
3702
+ addon_spend_window_end?: number | null | undefined;
3703
+ block_monthly_pence: number;
3704
+ block_monthly_ex_vat_pence: number;
3705
+ block_period_pence: number;
3706
+ block_period_ex_vat_pence: number;
3707
+ credit_block_price_pence: number;
3708
+ credit_block_price_ex_vat_pence: number;
3709
+ storage_block_price_pence: number;
3710
+ storage_block_price_ex_vat_pence: number;
3711
+ cap_reached: boolean;
3712
+ period_end?: number | null | undefined;
3713
+ credits_reset_at?: number | null | undefined;
3714
+ pending_interval?: ("month" | "year") | null | undefined;
3715
+ billing_error?: string | null | undefined;
3716
+ confirm_url?: string | null | undefined;
3717
+ upsell?: {
3718
+ variant: "compare" | "save";
3719
+ interval: "month" | "year";
3720
+ add_on_count: number;
3721
+ current_monthly_pence: number;
3722
+ current_monthly_ex_vat_pence: number;
3723
+ pro_plus_monthly_pence: number;
3724
+ pro_plus_monthly_ex_vat_pence: number;
3725
+ pro_plus_period_pence: number;
3726
+ pro_plus_credits: number;
3727
+ pro_plus_storage_gb: number;
3728
+ saving_monthly_pence: number;
3729
+ } | null | undefined;
3730
+ payment?: {
3731
+ status: "pending" | "paid";
3732
+ kind?: ("credits" | "storage") | null | undefined;
3733
+ amount_pence?: number | null | undefined;
3734
+ amount_ex_vat_pence?: number | null | undefined;
3735
+ tax_pence?: number | null | undefined;
3736
+ at?: number | null | undefined;
3737
+ confirm_url?: string | null | undefined;
3738
+ } | null | undefined;
3739
+ } | null | undefined;
3596
3740
  price_id?: string | null | undefined;
3597
3741
  plan?: string | null | undefined;
3598
3742
  amount?: number | null | undefined;
3743
+ amount_ex_vat?: number | null | undefined;
3599
3744
  currency?: string | null | undefined;
3600
3745
  current_period_end?: number | null | undefined;
3601
3746
  cancel_at_period_end?: boolean | null | undefined;
@@ -3605,7 +3750,6 @@ declare class Arbi {
3605
3750
  external_id: string;
3606
3751
  name: string;
3607
3752
  created_by: string;
3608
- packs: number;
3609
3753
  subscription: string;
3610
3754
  created_at: string;
3611
3755
  quotas: {
@@ -3624,9 +3768,73 @@ declare class Arbi {
3624
3768
  budget_reset_at?: number | null | undefined;
3625
3769
  };
3626
3770
  daily_cap_per_user?: number | null | undefined;
3771
+ plan_interval?: ("month" | "year") | null | undefined;
3772
+ packs: number;
3773
+ plan_change?: {
3774
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3775
+ charged_pence: number;
3776
+ charged_ex_vat_pence: number;
3777
+ confirm_url?: string | null | undefined;
3778
+ } | null | undefined;
3779
+ addons?: {
3780
+ packs: number;
3781
+ packs_next?: number | null | undefined;
3782
+ plan_name: string;
3783
+ plan_credits: number;
3784
+ plan_storage_gb: number;
3785
+ block_credits: number;
3786
+ block_storage_gb: number;
3787
+ credit_blocks: number;
3788
+ storage_blocks: number;
3789
+ credit_blocks_next?: number | null | undefined;
3790
+ storage_blocks_next?: number | null | undefined;
3791
+ storage_blocks_min: number;
3792
+ auto_topup_threshold_credits: number;
3793
+ min_auto_topup_threshold_credits: number;
3794
+ spend_cap_pence?: number | null | undefined;
3795
+ addon_spend_pence: number;
3796
+ addon_spend_window_end?: number | null | undefined;
3797
+ block_monthly_pence: number;
3798
+ block_monthly_ex_vat_pence: number;
3799
+ block_period_pence: number;
3800
+ block_period_ex_vat_pence: number;
3801
+ credit_block_price_pence: number;
3802
+ credit_block_price_ex_vat_pence: number;
3803
+ storage_block_price_pence: number;
3804
+ storage_block_price_ex_vat_pence: number;
3805
+ cap_reached: boolean;
3806
+ period_end?: number | null | undefined;
3807
+ credits_reset_at?: number | null | undefined;
3808
+ pending_interval?: ("month" | "year") | null | undefined;
3809
+ billing_error?: string | null | undefined;
3810
+ confirm_url?: string | null | undefined;
3811
+ upsell?: {
3812
+ variant: "compare" | "save";
3813
+ interval: "month" | "year";
3814
+ add_on_count: number;
3815
+ current_monthly_pence: number;
3816
+ current_monthly_ex_vat_pence: number;
3817
+ pro_plus_monthly_pence: number;
3818
+ pro_plus_monthly_ex_vat_pence: number;
3819
+ pro_plus_period_pence: number;
3820
+ pro_plus_credits: number;
3821
+ pro_plus_storage_gb: number;
3822
+ saving_monthly_pence: number;
3823
+ } | null | undefined;
3824
+ payment?: {
3825
+ status: "pending" | "paid";
3826
+ kind?: ("credits" | "storage") | null | undefined;
3827
+ amount_pence?: number | null | undefined;
3828
+ amount_ex_vat_pence?: number | null | undefined;
3829
+ tax_pence?: number | null | undefined;
3830
+ at?: number | null | undefined;
3831
+ confirm_url?: string | null | undefined;
3832
+ } | null | undefined;
3833
+ } | null | undefined;
3627
3834
  price_id?: string | null | undefined;
3628
3835
  plan?: string | null | undefined;
3629
3836
  amount?: number | null | undefined;
3837
+ amount_ex_vat?: number | null | undefined;
3630
3838
  currency?: string | null | undefined;
3631
3839
  current_period_end?: number | null | undefined;
3632
3840
  cancel_at_period_end?: boolean | null | undefined;
@@ -3699,6 +3907,7 @@ declare class Arbi {
3699
3907
  family_name?: string | null | undefined;
3700
3908
  email: string;
3701
3909
  picture?: string | null | undefined;
3910
+ is_identity_verified: boolean;
3702
3911
  }>;
3703
3912
  };
3704
3913
  readonly account: {
@@ -3723,6 +3932,80 @@ declare class Arbi {
3723
3932
  detail: string;
3724
3933
  }>;
3725
3934
  };
3935
+ readonly identity: {
3936
+ /** Whether the ID check is offered (Pro plans), its price, and where the user's check stands. */
3937
+ status: () => Promise<{
3938
+ enabled: boolean;
3939
+ eligible: boolean;
3940
+ required: boolean;
3941
+ price_pence: number;
3942
+ currency: string;
3943
+ attempts_per_fee: number;
3944
+ state: "none" | "in_progress" | "in_review" | "name_mismatch" | "declined" | "verified";
3945
+ attempts_left: number;
3946
+ pending_payment_url?: string | null;
3947
+ verified: boolean;
3948
+ document_country?: string | null;
3949
+ document_given_name?: string | null;
3950
+ document_family_name?: string | null;
3951
+ }>;
3952
+ /** Charge the one-time fee to an own Pro project; `requires_action` carries a payment URL. */
3953
+ purchase: (projectExtId?: string) => Promise<{
3954
+ status: "paid" | "requires_action";
3955
+ payment_url?: string | null;
3956
+ }>;
3957
+ /** The Didit session URL to run the web SDK on. */
3958
+ startSession: () => Promise<string>;
3959
+ /** Read the decision of the open check; the profile follows a granted tick. */
3960
+ refresh: () => Promise<{
3961
+ enabled: boolean;
3962
+ eligible: boolean;
3963
+ required: boolean;
3964
+ price_pence: number;
3965
+ currency: string;
3966
+ attempts_per_fee: number;
3967
+ state: "none" | "in_progress" | "in_review" | "name_mismatch" | "declined" | "verified";
3968
+ attempts_left: number;
3969
+ pending_payment_url?: string | null;
3970
+ verified: boolean;
3971
+ document_country?: string | null;
3972
+ document_given_name?: string | null;
3973
+ document_family_name?: string | null;
3974
+ }>;
3975
+ /** Take the name on the document as the account name; the profile follows. */
3976
+ acceptName: () => Promise<{
3977
+ enabled: boolean;
3978
+ eligible: boolean;
3979
+ required: boolean;
3980
+ price_pence: number;
3981
+ currency: string;
3982
+ attempts_per_fee: number;
3983
+ state: "none" | "in_progress" | "in_review" | "name_mismatch" | "declined" | "verified";
3984
+ attempts_left: number;
3985
+ pending_payment_url?: string | null;
3986
+ verified: boolean;
3987
+ document_country?: string | null;
3988
+ document_given_name?: string | null;
3989
+ document_family_name?: string | null;
3990
+ }>;
3991
+ /** Remove the tick and erase any open check. */
3992
+ remove: () => Promise<{
3993
+ enabled: boolean;
3994
+ eligible: boolean;
3995
+ required: boolean;
3996
+ price_pence: number;
3997
+ currency: string;
3998
+ attempts_per_fee: number;
3999
+ state: "none" | "in_progress" | "in_review" | "name_mismatch" | "declined" | "verified";
4000
+ attempts_left: number;
4001
+ pending_payment_url?: string | null;
4002
+ verified: boolean;
4003
+ document_country?: string | null;
4004
+ document_given_name?: string | null;
4005
+ document_family_name?: string | null;
4006
+ }>;
4007
+ };
4008
+ private syncIdentity;
3726
4009
  readonly workspaces: {
3727
4010
  list: () => Promise<{
3728
4011
  external_id: string;
@@ -3751,6 +4034,7 @@ declare class Arbi {
3751
4034
  picture?: string | null | undefined;
3752
4035
  encryption_public_key: string;
3753
4036
  is_sso: boolean;
4037
+ is_identity_verified: boolean;
3754
4038
  };
3755
4039
  role: components["schemas"]["WorkspaceRole"];
3756
4040
  joined_at: string;
@@ -3792,6 +4076,7 @@ declare class Arbi {
3792
4076
  picture?: string | null | undefined;
3793
4077
  encryption_public_key: string;
3794
4078
  is_sso: boolean;
4079
+ is_identity_verified: boolean;
3795
4080
  };
3796
4081
  role: components["schemas"]["WorkspaceRole"];
3797
4082
  joined_at: string;
@@ -3834,6 +4119,7 @@ declare class Arbi {
3834
4119
  picture?: string | null | undefined;
3835
4120
  encryption_public_key: string;
3836
4121
  is_sso: boolean;
4122
+ is_identity_verified: boolean;
3837
4123
  };
3838
4124
  role: components["schemas"]["WorkspaceRole"];
3839
4125
  joined_at: string;
@@ -3858,6 +4144,7 @@ declare class Arbi {
3858
4144
  picture?: string | null | undefined;
3859
4145
  encryption_public_key: string;
3860
4146
  is_sso: boolean;
4147
+ is_identity_verified: boolean;
3861
4148
  };
3862
4149
  role: components["schemas"]["WorkspaceRole"];
3863
4150
  joined_at: string;
@@ -3877,6 +4164,7 @@ declare class Arbi {
3877
4164
  picture?: string | null | undefined;
3878
4165
  encryption_public_key: string;
3879
4166
  is_sso: boolean;
4167
+ is_identity_verified: boolean;
3880
4168
  };
3881
4169
  role: components["schemas"]["WorkspaceRole"];
3882
4170
  joined_at: string;
@@ -3907,6 +4195,7 @@ declare class Arbi {
3907
4195
  picture?: string | null | undefined;
3908
4196
  encryption_public_key: string;
3909
4197
  is_sso: boolean;
4198
+ is_identity_verified: boolean;
3910
4199
  };
3911
4200
  role: components["schemas"]["WorkspaceRole"];
3912
4201
  joined_at: string;
@@ -3934,6 +4223,7 @@ declare class Arbi {
3934
4223
  picture?: string | null | undefined;
3935
4224
  encryption_public_key: string;
3936
4225
  is_sso: boolean;
4226
+ is_identity_verified: boolean;
3937
4227
  };
3938
4228
  role: components["schemas"]["WorkspaceRole"];
3939
4229
  joined_at: string;
@@ -3954,6 +4244,7 @@ declare class Arbi {
3954
4244
  picture?: string | null | undefined;
3955
4245
  encryption_public_key: string;
3956
4246
  is_sso: boolean;
4247
+ is_identity_verified: boolean;
3957
4248
  };
3958
4249
  role: components["schemas"]["WorkspaceRole"];
3959
4250
  joined_at: string;
@@ -3986,6 +4277,7 @@ declare class Arbi {
3986
4277
  picture?: string | null | undefined;
3987
4278
  encryption_public_key: string;
3988
4279
  is_sso: boolean;
4280
+ is_identity_verified: boolean;
3989
4281
  };
3990
4282
  recipient: {
3991
4283
  external_id: string;
@@ -3996,6 +4288,7 @@ declare class Arbi {
3996
4288
  picture?: string | null | undefined;
3997
4289
  encryption_public_key: string;
3998
4290
  is_sso: boolean;
4291
+ is_identity_verified: boolean;
3999
4292
  };
4000
4293
  workspace_ext_id?: string | null | undefined;
4001
4294
  dm_context_only: boolean;
@@ -5198,6 +5491,7 @@ declare class Arbi {
5198
5491
  picture?: string | null | undefined;
5199
5492
  encryption_public_key: string;
5200
5493
  is_sso: boolean;
5494
+ is_identity_verified: boolean;
5201
5495
  };
5202
5496
  recipient: {
5203
5497
  external_id: string;
@@ -5208,6 +5502,7 @@ declare class Arbi {
5208
5502
  picture?: string | null | undefined;
5209
5503
  encryption_public_key: string;
5210
5504
  is_sso: boolean;
5505
+ is_identity_verified: boolean;
5211
5506
  };
5212
5507
  workspace_ext_id?: string | null | undefined;
5213
5508
  dm_context_only: boolean;
@@ -5420,6 +5715,7 @@ declare class Arbi {
5420
5715
  picture?: string | null | undefined;
5421
5716
  encryption_public_key: string;
5422
5717
  is_sso: boolean;
5718
+ is_identity_verified: boolean;
5423
5719
  } | null | undefined;
5424
5720
  status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
5425
5721
  created_at: string;
@@ -5439,6 +5735,7 @@ declare class Arbi {
5439
5735
  picture?: string | null | undefined;
5440
5736
  encryption_public_key: string;
5441
5737
  is_sso: boolean;
5738
+ is_identity_verified: boolean;
5442
5739
  } | null | undefined;
5443
5740
  status: "invitation_pending" | "invitation_expired" | "registered" | "failed";
5444
5741
  created_at: string;
@@ -5497,6 +5794,7 @@ declare class Arbi {
5497
5794
  picture?: string | null | undefined;
5498
5795
  encryption_public_key: string;
5499
5796
  is_sso: boolean;
5797
+ is_identity_verified: boolean;
5500
5798
  };
5501
5799
  recipient: {
5502
5800
  external_id: string;
@@ -5507,6 +5805,7 @@ declare class Arbi {
5507
5805
  picture?: string | null | undefined;
5508
5806
  encryption_public_key: string;
5509
5807
  is_sso: boolean;
5808
+ is_identity_verified: boolean;
5510
5809
  };
5511
5810
  workspace_ext_id?: string | null | undefined;
5512
5811
  dm_context_only: boolean;
@@ -5535,6 +5834,7 @@ declare class Arbi {
5535
5834
  picture?: string | null | undefined;
5536
5835
  encryption_public_key: string;
5537
5836
  is_sso: boolean;
5837
+ is_identity_verified: boolean;
5538
5838
  };
5539
5839
  recipient: {
5540
5840
  external_id: string;
@@ -5545,6 +5845,7 @@ declare class Arbi {
5545
5845
  picture?: string | null | undefined;
5546
5846
  encryption_public_key: string;
5547
5847
  is_sso: boolean;
5848
+ is_identity_verified: boolean;
5548
5849
  };
5549
5850
  workspace_ext_id?: string | null | undefined;
5550
5851
  dm_context_only: boolean;
@@ -6076,6 +6377,7 @@ declare class Arbi {
6076
6377
  picture?: string | null;
6077
6378
  encryption_public_key: string;
6078
6379
  is_sso: boolean;
6380
+ is_identity_verified: boolean;
6079
6381
  }[]>;
6080
6382
  create: (name: string) => Promise<{
6081
6383
  external_id: string;
@@ -6086,6 +6388,7 @@ declare class Arbi {
6086
6388
  picture?: string | null;
6087
6389
  encryption_public_key: string;
6088
6390
  is_sso: boolean;
6391
+ is_identity_verified: boolean;
6089
6392
  signing_private_key: string;
6090
6393
  }>;
6091
6394
  getConfig: (agentExtId: string) => Promise<{
@@ -6669,6 +6972,7 @@ declare function listWorkspaces(arbi: ArbiClient): Promise<{
6669
6972
  picture?: string | null | undefined;
6670
6973
  encryption_public_key: string;
6671
6974
  is_sso: boolean;
6975
+ is_identity_verified: boolean;
6672
6976
  };
6673
6977
  role: components["schemas"]["WorkspaceRole"];
6674
6978
  joined_at: string;
@@ -6717,6 +7021,7 @@ declare function createWorkspace(arbi: ArbiClient, name: string, encryptedWorksp
6717
7021
  picture?: string | null | undefined;
6718
7022
  encryption_public_key: string;
6719
7023
  is_sso: boolean;
7024
+ is_identity_verified: boolean;
6720
7025
  };
6721
7026
  role: components["schemas"]["WorkspaceRole"];
6722
7027
  joined_at: string;
@@ -6759,6 +7064,7 @@ declare function updateWorkspace(arbi: ArbiClient, body: WorkspaceUpdateRequest)
6759
7064
  picture?: string | null | undefined;
6760
7065
  encryption_public_key: string;
6761
7066
  is_sso: boolean;
7067
+ is_identity_verified: boolean;
6762
7068
  };
6763
7069
  role: components["schemas"]["WorkspaceRole"];
6764
7070
  joined_at: string;
@@ -6783,6 +7089,7 @@ declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
6783
7089
  picture?: string | null | undefined;
6784
7090
  encryption_public_key: string;
6785
7091
  is_sso: boolean;
7092
+ is_identity_verified: boolean;
6786
7093
  };
6787
7094
  role: components["schemas"]["WorkspaceRole"];
6788
7095
  joined_at: string;
@@ -6807,6 +7114,7 @@ target?: {
6807
7114
  picture?: string | null | undefined;
6808
7115
  encryption_public_key: string;
6809
7116
  is_sso: boolean;
7117
+ is_identity_verified: boolean;
6810
7118
  };
6811
7119
  role: components["schemas"]["WorkspaceRole"];
6812
7120
  joined_at: string;
@@ -6841,6 +7149,7 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
6841
7149
  picture?: string | null | undefined;
6842
7150
  encryption_public_key: string;
6843
7151
  is_sso: boolean;
7152
+ is_identity_verified: boolean;
6844
7153
  };
6845
7154
  role: components["schemas"]["WorkspaceRole"];
6846
7155
  joined_at: string;
@@ -6861,6 +7170,7 @@ declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner'
6861
7170
  picture?: string | null | undefined;
6862
7171
  encryption_public_key: string;
6863
7172
  is_sso: boolean;
7173
+ is_identity_verified: boolean;
6864
7174
  };
6865
7175
  role: components["schemas"]["WorkspaceRole"];
6866
7176
  joined_at: string;
@@ -7649,7 +7959,6 @@ declare function listProjects(arbi: ArbiClient): Promise<{
7649
7959
  external_id: string;
7650
7960
  name: string;
7651
7961
  created_by: string;
7652
- packs: number;
7653
7962
  subscription: string;
7654
7963
  created_at: string;
7655
7964
  quotas: {
@@ -7668,19 +7977,86 @@ declare function listProjects(arbi: ArbiClient): Promise<{
7668
7977
  budget_reset_at?: number | null | undefined;
7669
7978
  };
7670
7979
  daily_cap_per_user?: number | null | undefined;
7980
+ plan_interval?: ("month" | "year") | null | undefined;
7981
+ packs: number;
7982
+ plan_change?: {
7983
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
7984
+ charged_pence: number;
7985
+ charged_ex_vat_pence: number;
7986
+ confirm_url?: string | null | undefined;
7987
+ } | null | undefined;
7988
+ addons?: {
7989
+ packs: number;
7990
+ packs_next?: number | null | undefined;
7991
+ plan_name: string;
7992
+ plan_credits: number;
7993
+ plan_storage_gb: number;
7994
+ block_credits: number;
7995
+ block_storage_gb: number;
7996
+ credit_blocks: number;
7997
+ storage_blocks: number;
7998
+ credit_blocks_next?: number | null | undefined;
7999
+ storage_blocks_next?: number | null | undefined;
8000
+ storage_blocks_min: number;
8001
+ auto_topup_threshold_credits: number;
8002
+ min_auto_topup_threshold_credits: number;
8003
+ spend_cap_pence?: number | null | undefined;
8004
+ addon_spend_pence: number;
8005
+ addon_spend_window_end?: number | null | undefined;
8006
+ block_monthly_pence: number;
8007
+ block_monthly_ex_vat_pence: number;
8008
+ block_period_pence: number;
8009
+ block_period_ex_vat_pence: number;
8010
+ credit_block_price_pence: number;
8011
+ credit_block_price_ex_vat_pence: number;
8012
+ storage_block_price_pence: number;
8013
+ storage_block_price_ex_vat_pence: number;
8014
+ cap_reached: boolean;
8015
+ period_end?: number | null | undefined;
8016
+ credits_reset_at?: number | null | undefined;
8017
+ pending_interval?: ("month" | "year") | null | undefined;
8018
+ billing_error?: string | null | undefined;
8019
+ confirm_url?: string | null | undefined;
8020
+ upsell?: {
8021
+ variant: "compare" | "save";
8022
+ interval: "month" | "year";
8023
+ add_on_count: number;
8024
+ current_monthly_pence: number;
8025
+ current_monthly_ex_vat_pence: number;
8026
+ pro_plus_monthly_pence: number;
8027
+ pro_plus_monthly_ex_vat_pence: number;
8028
+ pro_plus_period_pence: number;
8029
+ pro_plus_credits: number;
8030
+ pro_plus_storage_gb: number;
8031
+ saving_monthly_pence: number;
8032
+ } | null | undefined;
8033
+ payment?: {
8034
+ status: "pending" | "paid";
8035
+ kind?: ("credits" | "storage") | null | undefined;
8036
+ amount_pence?: number | null | undefined;
8037
+ amount_ex_vat_pence?: number | null | undefined;
8038
+ tax_pence?: number | null | undefined;
8039
+ at?: number | null | undefined;
8040
+ confirm_url?: string | null | undefined;
8041
+ } | null | undefined;
8042
+ } | null | undefined;
7671
8043
  price_id?: string | null | undefined;
7672
8044
  plan?: string | null | undefined;
7673
8045
  amount?: number | null | undefined;
8046
+ amount_ex_vat?: number | null | undefined;
7674
8047
  currency?: string | null | undefined;
7675
8048
  current_period_end?: number | null | undefined;
7676
8049
  cancel_at_period_end?: boolean | null | undefined;
7677
8050
  portal_url?: string | null | undefined;
7678
8051
  }[]>;
7679
- declare function createProject(arbi: ArbiClient, name: string): Promise<{
8052
+ /**
8053
+ * Create a project. Defaults to a Free project, which is usable immediately; a Pro project
8054
+ * is created pending and only becomes usable after Stripe checkout (done in the web app).
8055
+ */
8056
+ declare function createProject(arbi: ArbiClient, name: string, plan?: 'free' | 'pro'): Promise<{
7680
8057
  external_id: string;
7681
8058
  name: string;
7682
8059
  created_by: string;
7683
- packs: number;
7684
8060
  subscription: string;
7685
8061
  created_at: string;
7686
8062
  quotas: {
@@ -7699,9 +8075,73 @@ declare function createProject(arbi: ArbiClient, name: string): Promise<{
7699
8075
  budget_reset_at?: number | null | undefined;
7700
8076
  };
7701
8077
  daily_cap_per_user?: number | null | undefined;
8078
+ plan_interval?: ("month" | "year") | null | undefined;
8079
+ packs: number;
8080
+ plan_change?: {
8081
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
8082
+ charged_pence: number;
8083
+ charged_ex_vat_pence: number;
8084
+ confirm_url?: string | null | undefined;
8085
+ } | null | undefined;
8086
+ addons?: {
8087
+ packs: number;
8088
+ packs_next?: number | null | undefined;
8089
+ plan_name: string;
8090
+ plan_credits: number;
8091
+ plan_storage_gb: number;
8092
+ block_credits: number;
8093
+ block_storage_gb: number;
8094
+ credit_blocks: number;
8095
+ storage_blocks: number;
8096
+ credit_blocks_next?: number | null | undefined;
8097
+ storage_blocks_next?: number | null | undefined;
8098
+ storage_blocks_min: number;
8099
+ auto_topup_threshold_credits: number;
8100
+ min_auto_topup_threshold_credits: number;
8101
+ spend_cap_pence?: number | null | undefined;
8102
+ addon_spend_pence: number;
8103
+ addon_spend_window_end?: number | null | undefined;
8104
+ block_monthly_pence: number;
8105
+ block_monthly_ex_vat_pence: number;
8106
+ block_period_pence: number;
8107
+ block_period_ex_vat_pence: number;
8108
+ credit_block_price_pence: number;
8109
+ credit_block_price_ex_vat_pence: number;
8110
+ storage_block_price_pence: number;
8111
+ storage_block_price_ex_vat_pence: number;
8112
+ cap_reached: boolean;
8113
+ period_end?: number | null | undefined;
8114
+ credits_reset_at?: number | null | undefined;
8115
+ pending_interval?: ("month" | "year") | null | undefined;
8116
+ billing_error?: string | null | undefined;
8117
+ confirm_url?: string | null | undefined;
8118
+ upsell?: {
8119
+ variant: "compare" | "save";
8120
+ interval: "month" | "year";
8121
+ add_on_count: number;
8122
+ current_monthly_pence: number;
8123
+ current_monthly_ex_vat_pence: number;
8124
+ pro_plus_monthly_pence: number;
8125
+ pro_plus_monthly_ex_vat_pence: number;
8126
+ pro_plus_period_pence: number;
8127
+ pro_plus_credits: number;
8128
+ pro_plus_storage_gb: number;
8129
+ saving_monthly_pence: number;
8130
+ } | null | undefined;
8131
+ payment?: {
8132
+ status: "pending" | "paid";
8133
+ kind?: ("credits" | "storage") | null | undefined;
8134
+ amount_pence?: number | null | undefined;
8135
+ amount_ex_vat_pence?: number | null | undefined;
8136
+ tax_pence?: number | null | undefined;
8137
+ at?: number | null | undefined;
8138
+ confirm_url?: string | null | undefined;
8139
+ } | null | undefined;
8140
+ } | null | undefined;
7702
8141
  price_id?: string | null | undefined;
7703
8142
  plan?: string | null | undefined;
7704
8143
  amount?: number | null | undefined;
8144
+ amount_ex_vat?: number | null | undefined;
7705
8145
  currency?: string | null | undefined;
7706
8146
  current_period_end?: number | null | undefined;
7707
8147
  cancel_at_period_end?: boolean | null | undefined;
@@ -7712,7 +8152,6 @@ declare function updateProject(arbi: ArbiClient, projectExtId: string, body: Pro
7712
8152
  external_id: string;
7713
8153
  name: string;
7714
8154
  created_by: string;
7715
- packs: number;
7716
8155
  subscription: string;
7717
8156
  created_at: string;
7718
8157
  quotas: {
@@ -7731,9 +8170,73 @@ declare function updateProject(arbi: ArbiClient, projectExtId: string, body: Pro
7731
8170
  budget_reset_at?: number | null | undefined;
7732
8171
  };
7733
8172
  daily_cap_per_user?: number | null | undefined;
8173
+ plan_interval?: ("month" | "year") | null | undefined;
8174
+ packs: number;
8175
+ plan_change?: {
8176
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
8177
+ charged_pence: number;
8178
+ charged_ex_vat_pence: number;
8179
+ confirm_url?: string | null | undefined;
8180
+ } | null | undefined;
8181
+ addons?: {
8182
+ packs: number;
8183
+ packs_next?: number | null | undefined;
8184
+ plan_name: string;
8185
+ plan_credits: number;
8186
+ plan_storage_gb: number;
8187
+ block_credits: number;
8188
+ block_storage_gb: number;
8189
+ credit_blocks: number;
8190
+ storage_blocks: number;
8191
+ credit_blocks_next?: number | null | undefined;
8192
+ storage_blocks_next?: number | null | undefined;
8193
+ storage_blocks_min: number;
8194
+ auto_topup_threshold_credits: number;
8195
+ min_auto_topup_threshold_credits: number;
8196
+ spend_cap_pence?: number | null | undefined;
8197
+ addon_spend_pence: number;
8198
+ addon_spend_window_end?: number | null | undefined;
8199
+ block_monthly_pence: number;
8200
+ block_monthly_ex_vat_pence: number;
8201
+ block_period_pence: number;
8202
+ block_period_ex_vat_pence: number;
8203
+ credit_block_price_pence: number;
8204
+ credit_block_price_ex_vat_pence: number;
8205
+ storage_block_price_pence: number;
8206
+ storage_block_price_ex_vat_pence: number;
8207
+ cap_reached: boolean;
8208
+ period_end?: number | null | undefined;
8209
+ credits_reset_at?: number | null | undefined;
8210
+ pending_interval?: ("month" | "year") | null | undefined;
8211
+ billing_error?: string | null | undefined;
8212
+ confirm_url?: string | null | undefined;
8213
+ upsell?: {
8214
+ variant: "compare" | "save";
8215
+ interval: "month" | "year";
8216
+ add_on_count: number;
8217
+ current_monthly_pence: number;
8218
+ current_monthly_ex_vat_pence: number;
8219
+ pro_plus_monthly_pence: number;
8220
+ pro_plus_monthly_ex_vat_pence: number;
8221
+ pro_plus_period_pence: number;
8222
+ pro_plus_credits: number;
8223
+ pro_plus_storage_gb: number;
8224
+ saving_monthly_pence: number;
8225
+ } | null | undefined;
8226
+ payment?: {
8227
+ status: "pending" | "paid";
8228
+ kind?: ("credits" | "storage") | null | undefined;
8229
+ amount_pence?: number | null | undefined;
8230
+ amount_ex_vat_pence?: number | null | undefined;
8231
+ tax_pence?: number | null | undefined;
8232
+ at?: number | null | undefined;
8233
+ confirm_url?: string | null | undefined;
8234
+ } | null | undefined;
8235
+ } | null | undefined;
7734
8236
  price_id?: string | null | undefined;
7735
8237
  plan?: string | null | undefined;
7736
8238
  amount?: number | null | undefined;
8239
+ amount_ex_vat?: number | null | undefined;
7737
8240
  currency?: string | null | undefined;
7738
8241
  current_period_end?: number | null | undefined;
7739
8242
  cancel_at_period_end?: boolean | null | undefined;
@@ -7744,7 +8247,6 @@ declare function renameProject(arbi: ArbiClient, projectExtId: string, name: str
7744
8247
  external_id: string;
7745
8248
  name: string;
7746
8249
  created_by: string;
7747
- packs: number;
7748
8250
  subscription: string;
7749
8251
  created_at: string;
7750
8252
  quotas: {
@@ -7763,9 +8265,73 @@ declare function renameProject(arbi: ArbiClient, projectExtId: string, name: str
7763
8265
  budget_reset_at?: number | null | undefined;
7764
8266
  };
7765
8267
  daily_cap_per_user?: number | null | undefined;
8268
+ plan_interval?: ("month" | "year") | null | undefined;
8269
+ packs: number;
8270
+ plan_change?: {
8271
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
8272
+ charged_pence: number;
8273
+ charged_ex_vat_pence: number;
8274
+ confirm_url?: string | null | undefined;
8275
+ } | null | undefined;
8276
+ addons?: {
8277
+ packs: number;
8278
+ packs_next?: number | null | undefined;
8279
+ plan_name: string;
8280
+ plan_credits: number;
8281
+ plan_storage_gb: number;
8282
+ block_credits: number;
8283
+ block_storage_gb: number;
8284
+ credit_blocks: number;
8285
+ storage_blocks: number;
8286
+ credit_blocks_next?: number | null | undefined;
8287
+ storage_blocks_next?: number | null | undefined;
8288
+ storage_blocks_min: number;
8289
+ auto_topup_threshold_credits: number;
8290
+ min_auto_topup_threshold_credits: number;
8291
+ spend_cap_pence?: number | null | undefined;
8292
+ addon_spend_pence: number;
8293
+ addon_spend_window_end?: number | null | undefined;
8294
+ block_monthly_pence: number;
8295
+ block_monthly_ex_vat_pence: number;
8296
+ block_period_pence: number;
8297
+ block_period_ex_vat_pence: number;
8298
+ credit_block_price_pence: number;
8299
+ credit_block_price_ex_vat_pence: number;
8300
+ storage_block_price_pence: number;
8301
+ storage_block_price_ex_vat_pence: number;
8302
+ cap_reached: boolean;
8303
+ period_end?: number | null | undefined;
8304
+ credits_reset_at?: number | null | undefined;
8305
+ pending_interval?: ("month" | "year") | null | undefined;
8306
+ billing_error?: string | null | undefined;
8307
+ confirm_url?: string | null | undefined;
8308
+ upsell?: {
8309
+ variant: "compare" | "save";
8310
+ interval: "month" | "year";
8311
+ add_on_count: number;
8312
+ current_monthly_pence: number;
8313
+ current_monthly_ex_vat_pence: number;
8314
+ pro_plus_monthly_pence: number;
8315
+ pro_plus_monthly_ex_vat_pence: number;
8316
+ pro_plus_period_pence: number;
8317
+ pro_plus_credits: number;
8318
+ pro_plus_storage_gb: number;
8319
+ saving_monthly_pence: number;
8320
+ } | null | undefined;
8321
+ payment?: {
8322
+ status: "pending" | "paid";
8323
+ kind?: ("credits" | "storage") | null | undefined;
8324
+ amount_pence?: number | null | undefined;
8325
+ amount_ex_vat_pence?: number | null | undefined;
8326
+ tax_pence?: number | null | undefined;
8327
+ at?: number | null | undefined;
8328
+ confirm_url?: string | null | undefined;
8329
+ } | null | undefined;
8330
+ } | null | undefined;
7766
8331
  price_id?: string | null | undefined;
7767
8332
  plan?: string | null | undefined;
7768
8333
  amount?: number | null | undefined;
8334
+ amount_ex_vat?: number | null | undefined;
7769
8335
  currency?: string | null | undefined;
7770
8336
  current_period_end?: number | null | undefined;
7771
8337
  cancel_at_period_end?: boolean | null | undefined;
@@ -7776,7 +8342,6 @@ declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise
7776
8342
  external_id: string;
7777
8343
  name: string;
7778
8344
  created_by: string;
7779
- packs: number;
7780
8345
  subscription: string;
7781
8346
  created_at: string;
7782
8347
  quotas: {
@@ -7795,9 +8360,73 @@ declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise
7795
8360
  budget_reset_at?: number | null | undefined;
7796
8361
  };
7797
8362
  daily_cap_per_user?: number | null | undefined;
8363
+ plan_interval?: ("month" | "year") | null | undefined;
8364
+ packs: number;
8365
+ plan_change?: {
8366
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
8367
+ charged_pence: number;
8368
+ charged_ex_vat_pence: number;
8369
+ confirm_url?: string | null | undefined;
8370
+ } | null | undefined;
8371
+ addons?: {
8372
+ packs: number;
8373
+ packs_next?: number | null | undefined;
8374
+ plan_name: string;
8375
+ plan_credits: number;
8376
+ plan_storage_gb: number;
8377
+ block_credits: number;
8378
+ block_storage_gb: number;
8379
+ credit_blocks: number;
8380
+ storage_blocks: number;
8381
+ credit_blocks_next?: number | null | undefined;
8382
+ storage_blocks_next?: number | null | undefined;
8383
+ storage_blocks_min: number;
8384
+ auto_topup_threshold_credits: number;
8385
+ min_auto_topup_threshold_credits: number;
8386
+ spend_cap_pence?: number | null | undefined;
8387
+ addon_spend_pence: number;
8388
+ addon_spend_window_end?: number | null | undefined;
8389
+ block_monthly_pence: number;
8390
+ block_monthly_ex_vat_pence: number;
8391
+ block_period_pence: number;
8392
+ block_period_ex_vat_pence: number;
8393
+ credit_block_price_pence: number;
8394
+ credit_block_price_ex_vat_pence: number;
8395
+ storage_block_price_pence: number;
8396
+ storage_block_price_ex_vat_pence: number;
8397
+ cap_reached: boolean;
8398
+ period_end?: number | null | undefined;
8399
+ credits_reset_at?: number | null | undefined;
8400
+ pending_interval?: ("month" | "year") | null | undefined;
8401
+ billing_error?: string | null | undefined;
8402
+ confirm_url?: string | null | undefined;
8403
+ upsell?: {
8404
+ variant: "compare" | "save";
8405
+ interval: "month" | "year";
8406
+ add_on_count: number;
8407
+ current_monthly_pence: number;
8408
+ current_monthly_ex_vat_pence: number;
8409
+ pro_plus_monthly_pence: number;
8410
+ pro_plus_monthly_ex_vat_pence: number;
8411
+ pro_plus_period_pence: number;
8412
+ pro_plus_credits: number;
8413
+ pro_plus_storage_gb: number;
8414
+ saving_monthly_pence: number;
8415
+ } | null | undefined;
8416
+ payment?: {
8417
+ status: "pending" | "paid";
8418
+ kind?: ("credits" | "storage") | null | undefined;
8419
+ amount_pence?: number | null | undefined;
8420
+ amount_ex_vat_pence?: number | null | undefined;
8421
+ tax_pence?: number | null | undefined;
8422
+ at?: number | null | undefined;
8423
+ confirm_url?: string | null | undefined;
8424
+ } | null | undefined;
8425
+ } | null | undefined;
7798
8426
  price_id?: string | null | undefined;
7799
8427
  plan?: string | null | undefined;
7800
8428
  amount?: number | null | undefined;
8429
+ amount_ex_vat?: number | null | undefined;
7801
8430
  currency?: string | null | undefined;
7802
8431
  current_period_end?: number | null | undefined;
7803
8432
  cancel_at_period_end?: boolean | null | undefined;
@@ -7893,4 +8522,47 @@ declare namespace account {
7893
8522
  export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
7894
8523
  }
7895
8524
 
7896
- export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a, conversations as a$, type PendingAuthResponse as a0, type PlanWorkRequest as a1, type ProbeAnswerEvent as a2, type ProjectInvoicesResponse as a3, type ProjectUsageResponse as a4, type QueryOptions as a5, type ReconnectOptions as a6, type ReconnectableWsConnection as a7, type ResolvedCitation as a8, type ResolvedRecipient as a9, type UploadResult as aA, type UserDailyUsageResponse as aB, type UserInfo as aC, type UserInputRequestEvent as aD, type UserMessageEvent as aE, WebSocketAuthError as aF, type WorkStatus as aG, type WorkflowAuthMode as aH, type WorkflowResponse as aI, type WorkflowRunHistoryResponse as aJ, type WorkflowRunResponse as aK, type WorkspaceContext as aL, type WsConnection as aM, account as aN, agentconfig as aO, agents as aP, assistant as aQ, authenticatedFetch as aR, buildDocNameMap as aS, buildFactsContextTool as aT, buildRetrievalChunkTool as aU, buildRetrievalFullContextTool as aV, buildRetrievalTocTool as aW, connectWebSocket as aX, connectWithReconnect as aY, consumeSSEStream as aZ, contacts as a_, type ResponseCompletedEvent as aa, type ResponseContentPartAddedEvent as ab, type ResponseCreatedEvent as ac, type ResponseFailedEvent as ad, type ResponseOutputItemAddedEvent as ae, type ResponseOutputItemDoneEvent as af, type ResponseOutputTextDeltaEvent as ag, type ResponseOutputTextDoneEvent as ah, type ResponseUsage as ai, type SSEEvent as aj, type SSEStreamCallbacks as ak, type SSEStreamResult as al, type SSEStreamStartData as am, SUPPORTED_EXTENSIONS as an, type SkillSummary as ao, type SkippedFile as ap, type SubmitBackgroundQueryOptions as aq, type TaskPlan as ar, type TokenBudgetContext as as, type UpdateConversationRequest as at, type UpdateFactRequest as au, type UpdateWorkflowRequest as av, type UploadBatchResult as aw, type UploadDirectOptions as ax, type UploadDirectResult as ay, type UploadOptions as az, type AgentControlStateEvent as b, countCitations as b0, createAuthenticatedClient as b1, createDocumentWaiter as b2, dm as b3, doctags as b4, documents as b5, facts as b6, files as b7, filterSkills as b8, formatAgentStepLabel as b9, responses as bA, selectWorkspace as bB, selectWorkspaceById as bC, sessions as bD, settings as bE, streamSSE as bF, stripCitationMarkdown as bG, summarizeCitations as bH, tags as bI, work as bJ, workflows as bK, workspaces as bL, formatFileSize as ba, formatItemLabel as bb, formatStreamSummary as bc, formatUserName as bd, formatWorkspaceChoices as be, formatWsMessage as bf, generateEncryptedWorkspaceKey as bg, generateNewWorkspaceKey as bh, getErrorCode as bi, getErrorMessage as bj, getRawWorkspaceKey as bk, health as bl, mail as bm, parseSSEEvents as bn, parseSlashCommand as bo, parseSlashTokenInProgress as bp, performPasswordLogin as bq, performSigningKeyLogin as br, performSsoDeviceFlowLogin as bs, profile as bt, projects as bu, requireData as bv, requireOk as bw, resolveAuth as bx, resolveCitations as by, resolveWorkspace as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };
8525
+ /**
8526
+ * Identity verification — the optional, paid ID check behind the verified tick (Pro plans only).
8527
+ *
8528
+ * The backend charges a one-time fee to one of the user's own Pro projects, opens a Didit session
8529
+ * (the client runs Didit's web SDK on its URL) and reads the decision when asked to `refresh`.
8530
+ * Nothing from the document is kept by ARBI.
8531
+ */
8532
+
8533
+ type IdentityStatus = components['schemas']['IdentityStatusResponse'];
8534
+ type IdentityState = IdentityStatus['state'];
8535
+ type IdentityPurchase = components['schemas']['IdentityPurchaseResponse'];
8536
+ /** Why a 402 / 409 was refused, as the backend codes it (`PRO_REQUIRED`, `PAYMENT_DECLINED`, …). */
8537
+ type IdentityErrorCode = 'PRO_REQUIRED' | 'IDENTITY_FEE_REQUIRED' | 'PAYMENT_METHOD_REQUIRED' | 'BILLING_ADDRESS_REQUIRED' | 'PAYMENT_DECLINED';
8538
+ /** The refusal code of a failed identity call (see {@link IdentityErrorCode}), when it had one. */
8539
+ declare function identityErrorCode(error: unknown): string | undefined;
8540
+ /** Whether verification is offered to this user, its price, and where their check stands. */
8541
+ declare function getStatus(arbi: ArbiClient): Promise<IdentityStatus>;
8542
+ /** Charge the one-time fee to an own Pro project (default: the first). */
8543
+ declare function purchase(arbi: ArbiClient, projectExtId?: string): Promise<IdentityPurchase>;
8544
+ /** The Didit session URL to verify in (resumes an open one). */
8545
+ declare function startSession(arbi: ArbiClient): Promise<string>;
8546
+ /** Read the open check's decision and return the updated status. */
8547
+ declare function refresh(arbi: ArbiClient): Promise<IdentityStatus>;
8548
+ /** Take the name on the document as the account name and get the tick. */
8549
+ declare function acceptName(arbi: ArbiClient): Promise<IdentityStatus>;
8550
+ /** Remove the tick and erase any open check. Paid attempts are kept. */
8551
+ declare function remove(arbi: ArbiClient): Promise<IdentityStatus>;
8552
+
8553
+ type identity_IdentityErrorCode = IdentityErrorCode;
8554
+ type identity_IdentityPurchase = IdentityPurchase;
8555
+ type identity_IdentityState = IdentityState;
8556
+ type identity_IdentityStatus = IdentityStatus;
8557
+ declare const identity_acceptName: typeof acceptName;
8558
+ declare const identity_getStatus: typeof getStatus;
8559
+ declare const identity_identityErrorCode: typeof identityErrorCode;
8560
+ declare const identity_purchase: typeof purchase;
8561
+ declare const identity_refresh: typeof refresh;
8562
+ declare const identity_remove: typeof remove;
8563
+ declare const identity_startSession: typeof startSession;
8564
+ declare namespace identity {
8565
+ export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
8566
+ }
8567
+
8568
+ export { type MessageLevel as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type IdentityErrorCode as T, type IdentityPurchase as U, type IdentityState as V, type IdentityStatus as W, type ListAllOptions as X, type ListFactsOptions as Y, type ListPaginatedOptions as Z, type MailAttachment as _, type ActivityResponse as a, connectWebSocket as a$, type MessageMetadataPayload$1 as a0, type MessageQueuedEvent as a1, type OutputTokensDetails as a2, type ParsedSlashCommand as a3, type PendingAuthResponse as a4, type PlanWorkRequest as a5, type ProbeAnswerEvent as a6, type ProjectInvoicesResponse as a7, type ProjectUsageResponse as a8, type QueryOptions as a9, type UploadBatchResult as aA, type UploadDirectOptions as aB, type UploadDirectResult as aC, type UploadOptions as aD, type UploadResult as aE, type UserDailyUsageResponse as aF, type UserInfo as aG, type UserInputRequestEvent as aH, type UserMessageEvent as aI, WebSocketAuthError as aJ, type WorkStatus as aK, type WorkflowAuthMode as aL, type WorkflowResponse as aM, type WorkflowRunHistoryResponse as aN, type WorkflowRunResponse as aO, type WorkspaceContext as aP, type WsConnection as aQ, account as aR, agentconfig as aS, agents as aT, assistant as aU, authenticatedFetch as aV, buildDocNameMap as aW, buildFactsContextTool as aX, buildRetrievalChunkTool as aY, buildRetrievalFullContextTool as aZ, buildRetrievalTocTool as a_, type ReconnectOptions as aa, type ReconnectableWsConnection as ab, type ResolvedCitation as ac, type ResolvedRecipient as ad, type ResponseCompletedEvent as ae, type ResponseContentPartAddedEvent as af, type ResponseCreatedEvent as ag, type ResponseFailedEvent as ah, type ResponseOutputItemAddedEvent as ai, type ResponseOutputItemDoneEvent as aj, type ResponseOutputTextDeltaEvent as ak, type ResponseOutputTextDoneEvent as al, type ResponseUsage as am, type SSEEvent as an, type SSEStreamCallbacks as ao, type SSEStreamResult as ap, type SSEStreamStartData as aq, SUPPORTED_EXTENSIONS as ar, type SkillSummary as as, type SkippedFile as at, type SubmitBackgroundQueryOptions as au, type TaskPlan as av, type TokenBudgetContext as aw, type UpdateConversationRequest as ax, type UpdateFactRequest as ay, type UpdateWorkflowRequest as az, type AgentControlStateEvent as b, connectWithReconnect as b0, consumeSSEStream as b1, contacts as b2, conversations as b3, countCitations as b4, createAuthenticatedClient as b5, createDocumentWaiter as b6, dm as b7, doctags as b8, documents as b9, projects as bA, requireData as bB, requireOk as bC, resolveAuth as bD, resolveCitations as bE, resolveWorkspace as bF, responses as bG, selectWorkspace as bH, selectWorkspaceById as bI, sessions as bJ, settings as bK, streamSSE as bL, stripCitationMarkdown as bM, summarizeCitations as bN, tags as bO, work as bP, workflows as bQ, workspaces as bR, facts as ba, files as bb, filterSkills as bc, formatAgentStepLabel as bd, formatFileSize as be, formatItemLabel as bf, formatStreamSummary as bg, formatUserName as bh, formatWorkspaceChoices as bi, formatWsMessage as bj, generateEncryptedWorkspaceKey as bk, generateNewWorkspaceKey as bl, getErrorCode as bm, getErrorMessage as bn, getRawWorkspaceKey as bo, health as bp, identity as bq, identityErrorCode as br, mail as bs, parseSSEEvents as bt, parseSlashCommand as bu, parseSlashTokenInProgress as bv, performPasswordLogin as bw, performSigningKeyLogin as bx, performSsoDeviceFlowLogin as by, profile as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };