@arbidocs/sdk 0.5.130 → 0.5.132
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.
- package/dist/{browser-1VkMgddb.d.ts → browser-BDt9qMGw.d.ts} +56 -32
- package/dist/{browser-CikZRvkq.d.cts → browser-C4_Zgu_N.d.cts} +56 -32
- package/dist/browser.cjs +8 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
2
|
-
import { HttpTransport, SessionPersistence, ArbiClient, LoginResult, WebSocketServerMessage, WsAuthResultMessage, WsTaskUpdateMessage, components, KeyPair, CallPeer, HttpTransportOptions, SessionStateStorage, RegisterParams, RegisterResult, LoginParams, SessionManager, LoginProfile } from '@arbidocs/client';
|
|
2
|
+
import { HttpTransport, SessionPersistence, ArbiClient, LoginResult, WebSocketServerMessage, WsAuthResultMessage, WsTaskUpdateMessage, components, KeyPair, ProjectPlanQuoteRequest, ProjectPlanQuoteResponse, CallPeer, HttpTransportOptions, SessionStateStorage, RegisterParams, RegisterResult, LoginParams, SessionManager, LoginProfile } from '@arbidocs/client';
|
|
3
3
|
import { S as SSEStreamStartData, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, g as ResponseContentPartAddedEvent, c as ArbiErrorEvent, f as MessageQueuedEvent, o as UserMessageEvent, e as MessageMetadataPayload$1, U as UserInputRequestEvent, P as ProbeAnswerEvent, D as DeferredInterjectionEvent, A as AgentControlStateEvent, d as ArtifactEvent, M as MailDraftSSEEvent, n as ResponseUsage, T as TokenBudgetContext, b as AgentStepEvent } from './sse-types-B5Lw0KTC.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -4674,6 +4674,24 @@ declare function groupContactsByStatus<T extends {
|
|
|
4674
4674
|
pending: T[];
|
|
4675
4675
|
cards: T[];
|
|
4676
4676
|
};
|
|
4677
|
+
/** Private invitation conversion and referral bonuses for the current user. */
|
|
4678
|
+
declare function referralSummary(client: ArbiClient): Promise<{
|
|
4679
|
+
invitations?: {
|
|
4680
|
+
contact_id: string;
|
|
4681
|
+
user_id?: string | null | undefined;
|
|
4682
|
+
email: string;
|
|
4683
|
+
name: string;
|
|
4684
|
+
status: "pending" | "accepted" | "subscribed";
|
|
4685
|
+
expired: boolean;
|
|
4686
|
+
has_shared_workspace: boolean;
|
|
4687
|
+
potential_bonus: number;
|
|
4688
|
+
earned_bonus: number;
|
|
4689
|
+
created_at: string;
|
|
4690
|
+
}[] | undefined;
|
|
4691
|
+
reward_amount: number;
|
|
4692
|
+
invitee_reward_amount: number;
|
|
4693
|
+
currency: string;
|
|
4694
|
+
}>;
|
|
4677
4695
|
|
|
4678
4696
|
type contacts_Contact = Contact;
|
|
4679
4697
|
type contacts_ContactCard = ContactCard;
|
|
@@ -4691,10 +4709,11 @@ declare const contacts_importContacts: typeof importContacts;
|
|
|
4691
4709
|
declare const contacts_inviteContacts: typeof inviteContacts;
|
|
4692
4710
|
declare const contacts_linkContact: typeof linkContact;
|
|
4693
4711
|
declare const contacts_listContacts: typeof listContacts;
|
|
4712
|
+
declare const contacts_referralSummary: typeof referralSummary;
|
|
4694
4713
|
declare const contacts_searchContacts: typeof searchContacts;
|
|
4695
4714
|
declare const contacts_updateContact: typeof updateContact;
|
|
4696
4715
|
declare namespace contacts {
|
|
4697
|
-
export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactSessionKeys as ContactSessionKeys, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_ensureContactsUnlocked as ensureContactsUnlocked, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
4716
|
+
export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactSessionKeys as ContactSessionKeys, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_ensureContactsUnlocked as ensureContactsUnlocked, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_referralSummary as referralSummary, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
4698
4717
|
}
|
|
4699
4718
|
|
|
4700
4719
|
/**
|
|
@@ -6624,12 +6643,12 @@ declare function getProjectInvoices(arbi: ArbiClient, projectExtId: string): Pro
|
|
|
6624
6643
|
*/
|
|
6625
6644
|
declare function getUserUsageToday(arbi: ArbiClient): Promise<UserDailyUsageResponse>;
|
|
6626
6645
|
type ProductResponse = components['schemas']['ProductResponse'];
|
|
6627
|
-
type ProjectQuoteRequest =
|
|
6646
|
+
type ProjectQuoteRequest = ProjectPlanQuoteRequest;
|
|
6628
6647
|
type ProjectCheckoutRequest = components['schemas']['ProjectCheckoutRequest'];
|
|
6629
6648
|
type ProjectPlanChangeRequest = components['schemas']['ProjectPlanChangeRequest'];
|
|
6630
6649
|
type ProjectNextPeriodAddonsRequest = components['schemas']['ProjectNextPeriodAddonsRequest'];
|
|
6631
6650
|
type ProjectAddonSettingsRequest = components['schemas']['ProjectAddonSettingsRequest'];
|
|
6632
|
-
type TaxQuoteResponse =
|
|
6651
|
+
type TaxQuoteResponse = ProjectPlanQuoteResponse;
|
|
6633
6652
|
/** A purchasable add-on block. */
|
|
6634
6653
|
type ProjectAddonKind = 'ai_usage' | 'storage' | 'collaborators';
|
|
6635
6654
|
/** The plans and add-ons on sale, with their prices. */
|
|
@@ -6637,6 +6656,12 @@ declare function listProducts(arbi: ArbiClient): Promise<{
|
|
|
6637
6656
|
included_ai_gbp: number;
|
|
6638
6657
|
included_storage_gb: number;
|
|
6639
6658
|
included_collaborators: number;
|
|
6659
|
+
free_ai_gbp: number;
|
|
6660
|
+
free_storage_gb: number;
|
|
6661
|
+
free_collaborators: number;
|
|
6662
|
+
inviter_reward_amount: number;
|
|
6663
|
+
invitee_reward_amount: number;
|
|
6664
|
+
reward_currency: string;
|
|
6640
6665
|
default_spend_cap_pence: number;
|
|
6641
6666
|
spend_cap_step_pence: number;
|
|
6642
6667
|
maximum_spend_cap_pence: number;
|
|
@@ -6674,20 +6699,7 @@ declare function listProducts(arbi: ArbiClient): Promise<{
|
|
|
6674
6699
|
* created): for a new project when `projectExtId` is null, else for that (Free) project. A 422
|
|
6675
6700
|
* `TAX_LOCATION_INVALID` asks for a ZIP / postcode.
|
|
6676
6701
|
*/
|
|
6677
|
-
declare function quotePlan(arbi: ArbiClient, projectExtId: string | null, body: ProjectQuoteRequest): Promise<
|
|
6678
|
-
subtotal_pence: number;
|
|
6679
|
-
tax_pence: number;
|
|
6680
|
-
total_pence: number;
|
|
6681
|
-
tax_label?: string | null | undefined;
|
|
6682
|
-
reverse_charge: boolean;
|
|
6683
|
-
country?: string | null | undefined;
|
|
6684
|
-
taxability_reason?: string | null | undefined;
|
|
6685
|
-
lines: {
|
|
6686
|
-
reference: string;
|
|
6687
|
-
subtotal_pence: number;
|
|
6688
|
-
tax_pence: number;
|
|
6689
|
-
}[];
|
|
6690
|
-
}>;
|
|
6702
|
+
declare function quotePlan(arbi: ArbiClient, projectExtId: string | null, body: ProjectQuoteRequest): Promise<TaxQuoteResponse>;
|
|
6691
6703
|
/** Start an embedded Stripe checkout for a project; returns its `client_secret`. */
|
|
6692
6704
|
declare function createCheckout(arbi: ArbiClient, projectExtId: string, body: ProjectCheckoutRequest): Promise<{
|
|
6693
6705
|
client_secret: string;
|
|
@@ -9732,6 +9744,12 @@ declare class Arbi {
|
|
|
9732
9744
|
included_ai_gbp: number;
|
|
9733
9745
|
included_storage_gb: number;
|
|
9734
9746
|
included_collaborators: number;
|
|
9747
|
+
free_ai_gbp: number;
|
|
9748
|
+
free_storage_gb: number;
|
|
9749
|
+
free_collaborators: number;
|
|
9750
|
+
inviter_reward_amount: number;
|
|
9751
|
+
invitee_reward_amount: number;
|
|
9752
|
+
reward_currency: string;
|
|
9735
9753
|
default_spend_cap_pence: number;
|
|
9736
9754
|
spend_cap_step_pence: number;
|
|
9737
9755
|
maximum_spend_cap_pence: number;
|
|
@@ -9765,20 +9783,7 @@ declare class Arbi {
|
|
|
9765
9783
|
}[];
|
|
9766
9784
|
}[]>;
|
|
9767
9785
|
/** The taxed total of a Pro purchase (a new project when `projectExtId` is null). */
|
|
9768
|
-
quotePlan: (projectExtId: string | null, body: ProjectQuoteRequest) => Promise<
|
|
9769
|
-
subtotal_pence: number;
|
|
9770
|
-
tax_pence: number;
|
|
9771
|
-
total_pence: number;
|
|
9772
|
-
tax_label?: string | null | undefined;
|
|
9773
|
-
reverse_charge: boolean;
|
|
9774
|
-
country?: string | null | undefined;
|
|
9775
|
-
taxability_reason?: string | null | undefined;
|
|
9776
|
-
lines: {
|
|
9777
|
-
reference: string;
|
|
9778
|
-
subtotal_pence: number;
|
|
9779
|
-
tax_pence: number;
|
|
9780
|
-
}[];
|
|
9781
|
-
}>;
|
|
9786
|
+
quotePlan: (projectExtId: string | null, body: ProjectQuoteRequest) => Promise<_arbidocs_client.ProjectPlanQuoteResponse>;
|
|
9782
9787
|
/** Start an embedded Stripe checkout; returns its `client_secret`. */
|
|
9783
9788
|
checkout: (projectExtId: string, body: ProjectCheckoutRequest) => Promise<{
|
|
9784
9789
|
client_secret: string;
|
|
@@ -10554,6 +10559,8 @@ declare class Arbi {
|
|
|
10554
10559
|
is_identity_verified: boolean;
|
|
10555
10560
|
temporary_access_only: boolean;
|
|
10556
10561
|
can_create_projects: boolean;
|
|
10562
|
+
project_creation_refusal?: ("external_user" | "not_a_member" | "managers_only" | "pro_required") | null;
|
|
10563
|
+
can_create_workspaces: boolean;
|
|
10557
10564
|
is_deployment_admin: boolean;
|
|
10558
10565
|
user_type: components["schemas"]["UserRole"];
|
|
10559
10566
|
can_upgrade_projects: boolean;
|
|
@@ -13602,6 +13609,23 @@ declare class Arbi {
|
|
|
13602
13609
|
}>;
|
|
13603
13610
|
};
|
|
13604
13611
|
readonly contacts: {
|
|
13612
|
+
referrals: () => Promise<{
|
|
13613
|
+
invitations?: {
|
|
13614
|
+
contact_id: string;
|
|
13615
|
+
user_id?: string | null | undefined;
|
|
13616
|
+
email: string;
|
|
13617
|
+
name: string;
|
|
13618
|
+
status: "pending" | "accepted" | "subscribed";
|
|
13619
|
+
expired: boolean;
|
|
13620
|
+
has_shared_workspace: boolean;
|
|
13621
|
+
potential_bonus: number;
|
|
13622
|
+
earned_bonus: number;
|
|
13623
|
+
created_at: string;
|
|
13624
|
+
}[] | undefined;
|
|
13625
|
+
reward_amount: number;
|
|
13626
|
+
invitee_reward_amount: number;
|
|
13627
|
+
currency: string;
|
|
13628
|
+
}>;
|
|
13605
13629
|
list: () => Promise<{
|
|
13606
13630
|
external_id?: string | null;
|
|
13607
13631
|
email?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
2
|
-
import { HttpTransport, SessionPersistence, ArbiClient, LoginResult, WebSocketServerMessage, WsAuthResultMessage, WsTaskUpdateMessage, components, KeyPair, CallPeer, HttpTransportOptions, SessionStateStorage, RegisterParams, RegisterResult, LoginParams, SessionManager, LoginProfile } from '@arbidocs/client';
|
|
2
|
+
import { HttpTransport, SessionPersistence, ArbiClient, LoginResult, WebSocketServerMessage, WsAuthResultMessage, WsTaskUpdateMessage, components, KeyPair, ProjectPlanQuoteRequest, ProjectPlanQuoteResponse, CallPeer, HttpTransportOptions, SessionStateStorage, RegisterParams, RegisterResult, LoginParams, SessionManager, LoginProfile } from '@arbidocs/client';
|
|
3
3
|
import { S as SSEStreamStartData, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, g as ResponseContentPartAddedEvent, c as ArbiErrorEvent, f as MessageQueuedEvent, o as UserMessageEvent, e as MessageMetadataPayload$1, U as UserInputRequestEvent, P as ProbeAnswerEvent, D as DeferredInterjectionEvent, A as AgentControlStateEvent, d as ArtifactEvent, M as MailDraftSSEEvent, n as ResponseUsage, T as TokenBudgetContext, b as AgentStepEvent } from './sse-types-B5Lw0KTC.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -4674,6 +4674,24 @@ declare function groupContactsByStatus<T extends {
|
|
|
4674
4674
|
pending: T[];
|
|
4675
4675
|
cards: T[];
|
|
4676
4676
|
};
|
|
4677
|
+
/** Private invitation conversion and referral bonuses for the current user. */
|
|
4678
|
+
declare function referralSummary(client: ArbiClient): Promise<{
|
|
4679
|
+
invitations?: {
|
|
4680
|
+
contact_id: string;
|
|
4681
|
+
user_id?: string | null | undefined;
|
|
4682
|
+
email: string;
|
|
4683
|
+
name: string;
|
|
4684
|
+
status: "pending" | "accepted" | "subscribed";
|
|
4685
|
+
expired: boolean;
|
|
4686
|
+
has_shared_workspace: boolean;
|
|
4687
|
+
potential_bonus: number;
|
|
4688
|
+
earned_bonus: number;
|
|
4689
|
+
created_at: string;
|
|
4690
|
+
}[] | undefined;
|
|
4691
|
+
reward_amount: number;
|
|
4692
|
+
invitee_reward_amount: number;
|
|
4693
|
+
currency: string;
|
|
4694
|
+
}>;
|
|
4677
4695
|
|
|
4678
4696
|
type contacts_Contact = Contact;
|
|
4679
4697
|
type contacts_ContactCard = ContactCard;
|
|
@@ -4691,10 +4709,11 @@ declare const contacts_importContacts: typeof importContacts;
|
|
|
4691
4709
|
declare const contacts_inviteContacts: typeof inviteContacts;
|
|
4692
4710
|
declare const contacts_linkContact: typeof linkContact;
|
|
4693
4711
|
declare const contacts_listContacts: typeof listContacts;
|
|
4712
|
+
declare const contacts_referralSummary: typeof referralSummary;
|
|
4694
4713
|
declare const contacts_searchContacts: typeof searchContacts;
|
|
4695
4714
|
declare const contacts_updateContact: typeof updateContact;
|
|
4696
4715
|
declare namespace contacts {
|
|
4697
|
-
export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactSessionKeys as ContactSessionKeys, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_ensureContactsUnlocked as ensureContactsUnlocked, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
4716
|
+
export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactSessionKeys as ContactSessionKeys, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_ensureContactsUnlocked as ensureContactsUnlocked, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_referralSummary as referralSummary, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
4698
4717
|
}
|
|
4699
4718
|
|
|
4700
4719
|
/**
|
|
@@ -6624,12 +6643,12 @@ declare function getProjectInvoices(arbi: ArbiClient, projectExtId: string): Pro
|
|
|
6624
6643
|
*/
|
|
6625
6644
|
declare function getUserUsageToday(arbi: ArbiClient): Promise<UserDailyUsageResponse>;
|
|
6626
6645
|
type ProductResponse = components['schemas']['ProductResponse'];
|
|
6627
|
-
type ProjectQuoteRequest =
|
|
6646
|
+
type ProjectQuoteRequest = ProjectPlanQuoteRequest;
|
|
6628
6647
|
type ProjectCheckoutRequest = components['schemas']['ProjectCheckoutRequest'];
|
|
6629
6648
|
type ProjectPlanChangeRequest = components['schemas']['ProjectPlanChangeRequest'];
|
|
6630
6649
|
type ProjectNextPeriodAddonsRequest = components['schemas']['ProjectNextPeriodAddonsRequest'];
|
|
6631
6650
|
type ProjectAddonSettingsRequest = components['schemas']['ProjectAddonSettingsRequest'];
|
|
6632
|
-
type TaxQuoteResponse =
|
|
6651
|
+
type TaxQuoteResponse = ProjectPlanQuoteResponse;
|
|
6633
6652
|
/** A purchasable add-on block. */
|
|
6634
6653
|
type ProjectAddonKind = 'ai_usage' | 'storage' | 'collaborators';
|
|
6635
6654
|
/** The plans and add-ons on sale, with their prices. */
|
|
@@ -6637,6 +6656,12 @@ declare function listProducts(arbi: ArbiClient): Promise<{
|
|
|
6637
6656
|
included_ai_gbp: number;
|
|
6638
6657
|
included_storage_gb: number;
|
|
6639
6658
|
included_collaborators: number;
|
|
6659
|
+
free_ai_gbp: number;
|
|
6660
|
+
free_storage_gb: number;
|
|
6661
|
+
free_collaborators: number;
|
|
6662
|
+
inviter_reward_amount: number;
|
|
6663
|
+
invitee_reward_amount: number;
|
|
6664
|
+
reward_currency: string;
|
|
6640
6665
|
default_spend_cap_pence: number;
|
|
6641
6666
|
spend_cap_step_pence: number;
|
|
6642
6667
|
maximum_spend_cap_pence: number;
|
|
@@ -6674,20 +6699,7 @@ declare function listProducts(arbi: ArbiClient): Promise<{
|
|
|
6674
6699
|
* created): for a new project when `projectExtId` is null, else for that (Free) project. A 422
|
|
6675
6700
|
* `TAX_LOCATION_INVALID` asks for a ZIP / postcode.
|
|
6676
6701
|
*/
|
|
6677
|
-
declare function quotePlan(arbi: ArbiClient, projectExtId: string | null, body: ProjectQuoteRequest): Promise<
|
|
6678
|
-
subtotal_pence: number;
|
|
6679
|
-
tax_pence: number;
|
|
6680
|
-
total_pence: number;
|
|
6681
|
-
tax_label?: string | null | undefined;
|
|
6682
|
-
reverse_charge: boolean;
|
|
6683
|
-
country?: string | null | undefined;
|
|
6684
|
-
taxability_reason?: string | null | undefined;
|
|
6685
|
-
lines: {
|
|
6686
|
-
reference: string;
|
|
6687
|
-
subtotal_pence: number;
|
|
6688
|
-
tax_pence: number;
|
|
6689
|
-
}[];
|
|
6690
|
-
}>;
|
|
6702
|
+
declare function quotePlan(arbi: ArbiClient, projectExtId: string | null, body: ProjectQuoteRequest): Promise<TaxQuoteResponse>;
|
|
6691
6703
|
/** Start an embedded Stripe checkout for a project; returns its `client_secret`. */
|
|
6692
6704
|
declare function createCheckout(arbi: ArbiClient, projectExtId: string, body: ProjectCheckoutRequest): Promise<{
|
|
6693
6705
|
client_secret: string;
|
|
@@ -9732,6 +9744,12 @@ declare class Arbi {
|
|
|
9732
9744
|
included_ai_gbp: number;
|
|
9733
9745
|
included_storage_gb: number;
|
|
9734
9746
|
included_collaborators: number;
|
|
9747
|
+
free_ai_gbp: number;
|
|
9748
|
+
free_storage_gb: number;
|
|
9749
|
+
free_collaborators: number;
|
|
9750
|
+
inviter_reward_amount: number;
|
|
9751
|
+
invitee_reward_amount: number;
|
|
9752
|
+
reward_currency: string;
|
|
9735
9753
|
default_spend_cap_pence: number;
|
|
9736
9754
|
spend_cap_step_pence: number;
|
|
9737
9755
|
maximum_spend_cap_pence: number;
|
|
@@ -9765,20 +9783,7 @@ declare class Arbi {
|
|
|
9765
9783
|
}[];
|
|
9766
9784
|
}[]>;
|
|
9767
9785
|
/** The taxed total of a Pro purchase (a new project when `projectExtId` is null). */
|
|
9768
|
-
quotePlan: (projectExtId: string | null, body: ProjectQuoteRequest) => Promise<
|
|
9769
|
-
subtotal_pence: number;
|
|
9770
|
-
tax_pence: number;
|
|
9771
|
-
total_pence: number;
|
|
9772
|
-
tax_label?: string | null | undefined;
|
|
9773
|
-
reverse_charge: boolean;
|
|
9774
|
-
country?: string | null | undefined;
|
|
9775
|
-
taxability_reason?: string | null | undefined;
|
|
9776
|
-
lines: {
|
|
9777
|
-
reference: string;
|
|
9778
|
-
subtotal_pence: number;
|
|
9779
|
-
tax_pence: number;
|
|
9780
|
-
}[];
|
|
9781
|
-
}>;
|
|
9786
|
+
quotePlan: (projectExtId: string | null, body: ProjectQuoteRequest) => Promise<_arbidocs_client.ProjectPlanQuoteResponse>;
|
|
9782
9787
|
/** Start an embedded Stripe checkout; returns its `client_secret`. */
|
|
9783
9788
|
checkout: (projectExtId: string, body: ProjectCheckoutRequest) => Promise<{
|
|
9784
9789
|
client_secret: string;
|
|
@@ -10554,6 +10559,8 @@ declare class Arbi {
|
|
|
10554
10559
|
is_identity_verified: boolean;
|
|
10555
10560
|
temporary_access_only: boolean;
|
|
10556
10561
|
can_create_projects: boolean;
|
|
10562
|
+
project_creation_refusal?: ("external_user" | "not_a_member" | "managers_only" | "pro_required") | null;
|
|
10563
|
+
can_create_workspaces: boolean;
|
|
10557
10564
|
is_deployment_admin: boolean;
|
|
10558
10565
|
user_type: components["schemas"]["UserRole"];
|
|
10559
10566
|
can_upgrade_projects: boolean;
|
|
@@ -13602,6 +13609,23 @@ declare class Arbi {
|
|
|
13602
13609
|
}>;
|
|
13603
13610
|
};
|
|
13604
13611
|
readonly contacts: {
|
|
13612
|
+
referrals: () => Promise<{
|
|
13613
|
+
invitations?: {
|
|
13614
|
+
contact_id: string;
|
|
13615
|
+
user_id?: string | null | undefined;
|
|
13616
|
+
email: string;
|
|
13617
|
+
name: string;
|
|
13618
|
+
status: "pending" | "accepted" | "subscribed";
|
|
13619
|
+
expired: boolean;
|
|
13620
|
+
has_shared_workspace: boolean;
|
|
13621
|
+
potential_bonus: number;
|
|
13622
|
+
earned_bonus: number;
|
|
13623
|
+
created_at: string;
|
|
13624
|
+
}[] | undefined;
|
|
13625
|
+
reward_amount: number;
|
|
13626
|
+
invitee_reward_amount: number;
|
|
13627
|
+
currency: string;
|
|
13628
|
+
}>;
|
|
13605
13629
|
list: () => Promise<{
|
|
13606
13630
|
external_id?: string | null;
|
|
13607
13631
|
email?: string | null;
|
package/dist/browser.cjs
CHANGED
|
@@ -7382,6 +7382,7 @@ __export(contacts_exports, {
|
|
|
7382
7382
|
inviteContacts: () => inviteContacts,
|
|
7383
7383
|
linkContact: () => linkContact,
|
|
7384
7384
|
listContacts: () => listContacts,
|
|
7385
|
+
referralSummary: () => referralSummary,
|
|
7385
7386
|
searchContacts: () => searchContacts,
|
|
7386
7387
|
updateContact: () => updateContact
|
|
7387
7388
|
});
|
|
@@ -7498,6 +7499,12 @@ function groupContactsByStatus(contactList) {
|
|
|
7498
7499
|
}
|
|
7499
7500
|
return { registered, pending, cards };
|
|
7500
7501
|
}
|
|
7502
|
+
async function referralSummary(client) {
|
|
7503
|
+
return requireData(
|
|
7504
|
+
await client.fetch.GET("/v1/user/referrals"),
|
|
7505
|
+
"Failed to fetch invitation progress"
|
|
7506
|
+
);
|
|
7507
|
+
}
|
|
7501
7508
|
|
|
7502
7509
|
// src/operations/doctags.ts
|
|
7503
7510
|
var doctags_exports = {};
|
|
@@ -13270,6 +13277,7 @@ var Arbi = class {
|
|
|
13270
13277
|
// A card is sealed under its address book's key, which the contacts key bridge carries: without
|
|
13271
13278
|
// it the server returns `card: null` and refuses card writes.
|
|
13272
13279
|
contacts = {
|
|
13280
|
+
referrals: () => referralSummary(this.requireClient()),
|
|
13273
13281
|
list: () => this.withContactKeys((c2) => listContacts(c2)),
|
|
13274
13282
|
invite: (emails) => inviteContacts(this.requireClient(), emails),
|
|
13275
13283
|
create: (body) => this.withContactKeys((c2) => createContact(c2, body)),
|