@visgate_ai/client 0.4.2 → 0.4.4
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/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -329,6 +329,8 @@ declare class Invitations {
|
|
|
329
329
|
create(orgId: string, email: string, role: "admin" | "member"): Promise<Invitation>;
|
|
330
330
|
/** List pending invitations for an organization. */
|
|
331
331
|
listForOrg(orgId: string): Promise<Invitation[]>;
|
|
332
|
+
/** List all invitations for an organization regardless of status, ordered newest first. */
|
|
333
|
+
listAllForOrg(orgId: string): Promise<Invitation[]>;
|
|
332
334
|
/** Cancel a pending invitation. */
|
|
333
335
|
cancel(orgId: string, inviteId: string): Promise<void>;
|
|
334
336
|
/** List pending invitations for the current user. */
|
package/dist/index.d.ts
CHANGED
|
@@ -329,6 +329,8 @@ declare class Invitations {
|
|
|
329
329
|
create(orgId: string, email: string, role: "admin" | "member"): Promise<Invitation>;
|
|
330
330
|
/** List pending invitations for an organization. */
|
|
331
331
|
listForOrg(orgId: string): Promise<Invitation[]>;
|
|
332
|
+
/** List all invitations for an organization regardless of status, ordered newest first. */
|
|
333
|
+
listAllForOrg(orgId: string): Promise<Invitation[]>;
|
|
332
334
|
/** Cancel a pending invitation. */
|
|
333
335
|
cancel(orgId: string, inviteId: string): Promise<void>;
|
|
334
336
|
/** List pending invitations for the current user. */
|
package/dist/index.js
CHANGED
|
@@ -589,6 +589,11 @@ var Invitations = class {
|
|
|
589
589
|
const data = await this.client._request("GET", `/organizations/${encodeURIComponent(orgId)}/invitations`);
|
|
590
590
|
return data.map(invitationFromResponse);
|
|
591
591
|
}
|
|
592
|
+
/** List all invitations for an organization regardless of status, ordered newest first. */
|
|
593
|
+
async listAllForOrg(orgId) {
|
|
594
|
+
const data = await this.client._request("GET", `/organizations/${encodeURIComponent(orgId)}/invitations/all`);
|
|
595
|
+
return data.map(invitationFromResponse);
|
|
596
|
+
}
|
|
592
597
|
/** Cancel a pending invitation. */
|
|
593
598
|
async cancel(orgId, inviteId) {
|
|
594
599
|
await this.client._request("DELETE", `/organizations/${encodeURIComponent(orgId)}/invitations/${encodeURIComponent(inviteId)}`);
|