@spaceinvoices/js-sdk 17.5.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/entity-invitations/entity-invitations.d.cts +1 -1
- package/dist/generated/entity-invitations/entity-invitations.d.ts +1 -1
- package/dist/generated/entity-users/entity-users.d.cts +1 -1
- package/dist/generated/entity-users/entity-users.d.ts +1 -1
- package/dist/generated-zod/entity-invitations/entity-invitations.d.cts +1 -1
- package/dist/generated-zod/entity-invitations/entity-invitations.d.ts +1 -1
- package/dist/generated-zod/entity-users/entity-users.d.cts +1 -1
- package/dist/generated-zod/entity-users/entity-users.d.ts +1 -1
- package/package.json +1 -1
|
@@ -122,7 +122,7 @@ export type cancelEntityInvitationResponse = (cancelEntityInvitationResponseSucc
|
|
|
122
122
|
export declare const getCancelEntityInvitationUrl: (id: string) => string;
|
|
123
123
|
export declare const cancelEntityInvitation: (id: string, options?: RequestInit) => Promise<cancelEntityInvitationResponse>;
|
|
124
124
|
/**
|
|
125
|
-
* Resend an invitation email with a new token and extended expiry.
|
|
125
|
+
* Resend an invitation email with a new token and extended expiry. Resending an `accountant` invitation follows the rules for creating one: a user signed in directly (403 for an API key), the entity's country must support the accounting module (422), and on a regular account the user must have an account role (403).
|
|
126
126
|
* @summary Resend invitation
|
|
127
127
|
*/
|
|
128
128
|
export type resendEntityInvitationResponse200 = {
|
|
@@ -122,7 +122,7 @@ export type cancelEntityInvitationResponse = (cancelEntityInvitationResponseSucc
|
|
|
122
122
|
export declare const getCancelEntityInvitationUrl: (id: string) => string;
|
|
123
123
|
export declare const cancelEntityInvitation: (id: string, options?: RequestInit) => Promise<cancelEntityInvitationResponse>;
|
|
124
124
|
/**
|
|
125
|
-
* Resend an invitation email with a new token and extended expiry.
|
|
125
|
+
* Resend an invitation email with a new token and extended expiry. Resending an `accountant` invitation follows the rules for creating one: a user signed in directly (403 for an API key), the entity's country must support the accounting module (422), and on a regular account the user must have an account role (403).
|
|
126
126
|
* @summary Resend invitation
|
|
127
127
|
*/
|
|
128
128
|
export type resendEntityInvitationResponse200 = {
|
|
@@ -44,7 +44,7 @@ export type getEntityUsersResponse = (getEntityUsersResponseSuccess | getEntityU
|
|
|
44
44
|
export declare const getGetEntityUsersUrl: (params?: GetEntityUsersParams) => string;
|
|
45
45
|
export declare const getEntityUsers: (params?: GetEntityUsersParams, options?: RequestInit) => Promise<getEntityUsersResponse>;
|
|
46
46
|
/**
|
|
47
|
-
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
47
|
+
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). On a regular account only a user of the account (an owner, admin or member with an account role) can invite an accountant (403 otherwise); on a white label the white label's entity users who manage users can too. Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
48
48
|
* @summary Add user to entity
|
|
49
49
|
*/
|
|
50
50
|
export type addEntityUserResponse201 = {
|
|
@@ -44,7 +44,7 @@ export type getEntityUsersResponse = (getEntityUsersResponseSuccess | getEntityU
|
|
|
44
44
|
export declare const getGetEntityUsersUrl: (params?: GetEntityUsersParams) => string;
|
|
45
45
|
export declare const getEntityUsers: (params?: GetEntityUsersParams, options?: RequestInit) => Promise<getEntityUsersResponse>;
|
|
46
46
|
/**
|
|
47
|
-
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
47
|
+
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). On a regular account only a user of the account (an owner, admin or member with an account role) can invite an accountant (403 otherwise); on a white label the white label's entity users who manage users can too. Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
48
48
|
* @summary Add user to entity
|
|
49
49
|
*/
|
|
50
50
|
export type addEntityUserResponse201 = {
|
|
@@ -83,7 +83,7 @@ export declare const CancelEntityInvitationResponse: zod.ZodObject<{
|
|
|
83
83
|
message: zod.ZodString;
|
|
84
84
|
}, zod.z.core.$strip>;
|
|
85
85
|
/**
|
|
86
|
-
* Resend an invitation email with a new token and extended expiry.
|
|
86
|
+
* Resend an invitation email with a new token and extended expiry. Resending an `accountant` invitation follows the rules for creating one: a user signed in directly (403 for an API key), the entity's country must support the accounting module (422), and on a regular account the user must have an account role (403).
|
|
87
87
|
* @summary Resend invitation
|
|
88
88
|
*/
|
|
89
89
|
export declare const resendEntityInvitationPathIdRegExp: RegExp;
|
|
@@ -83,7 +83,7 @@ export declare const CancelEntityInvitationResponse: zod.ZodObject<{
|
|
|
83
83
|
message: zod.ZodString;
|
|
84
84
|
}, zod.z.core.$strip>;
|
|
85
85
|
/**
|
|
86
|
-
* Resend an invitation email with a new token and extended expiry.
|
|
86
|
+
* Resend an invitation email with a new token and extended expiry. Resending an `accountant` invitation follows the rules for creating one: a user signed in directly (403 for an API key), the entity's country must support the accounting module (422), and on a regular account the user must have an account role (403).
|
|
87
87
|
* @summary Resend invitation
|
|
88
88
|
*/
|
|
89
89
|
export declare const resendEntityInvitationPathIdRegExp: RegExp;
|
|
@@ -35,7 +35,7 @@ export declare const GetEntityUsersResponse: zod.ZodObject<{
|
|
|
35
35
|
}, zod.z.core.$strip>>;
|
|
36
36
|
}, zod.z.core.$strip>;
|
|
37
37
|
/**
|
|
38
|
-
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
38
|
+
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). On a regular account only a user of the account (an owner, admin or member with an account role) can invite an accountant (403 otherwise); on a white label the white label's entity users who manage users can too. Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
39
39
|
* @summary Add user to entity
|
|
40
40
|
*/
|
|
41
41
|
export declare const AddEntityUserHeader: zod.ZodObject<{
|
|
@@ -35,7 +35,7 @@ export declare const GetEntityUsersResponse: zod.ZodObject<{
|
|
|
35
35
|
}, zod.z.core.$strip>>;
|
|
36
36
|
}, zod.z.core.$strip>;
|
|
37
37
|
/**
|
|
38
|
-
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
38
|
+
* Add an existing white-label user for this account to the entity or send an invitation. The `accountant` role invites a company's accountant to this one entity only: on a regular account the invitation links the accountant's own Space Invoices user (created when they accept, if they have none), on a white label it creates the white label's own user as for every other role. An accountant works like an editor and also uses the accounting module, with no user or settings management. Only a user signed in directly can invite one: an API key, an impersonation or a delegated session gets 403, `silent` cannot be combined with the role (422), and the entity's country must support the accounting module (422 otherwise). On a regular account only a user of the account (an owner, admin or member with an account role) can invite an accountant (403 otherwise); on a white label the white label's entity users who manage users can too. Existing account users must accept the invitation so they receive separate entity-user access. With `silent: true` no email is sent (`send_invite` is ignored): a missing white-label user is created immediately (no password, optional `metadata`) and linked to the entity, and an existing white-label user is linked. Silent provisioning requires an account API key or an account owner/admin signed in directly (an interactive session); delegated (SSO) tokens are rejected. The new user's email counts as verified when the credential is an account API key or a user token whose email is verified; otherwise the user must verify their email before sending documents by email. Silent provisioning can be followed by `POST /entities/users/{user_id}/token` with `ttl` to embed the user.
|
|
39
39
|
* @summary Add user to entity
|
|
40
40
|
*/
|
|
41
41
|
export declare const AddEntityUserHeader: zod.ZodObject<{
|
package/package.json
CHANGED