@meshagent/meshagent 0.19.4 → 0.20.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/CHANGELOG.md +6 -0
- package/dist/browser/meshagent-client.d.ts +2 -0
- package/dist/browser/meshagent-client.js +4 -4
- package/dist/esm/meshagent-client.d.ts +2 -0
- package/dist/esm/meshagent-client.js +4 -4
- package/dist/node/meshagent-client.d.ts +2 -0
- package/dist/node/meshagent-client.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -292,12 +292,14 @@ export declare class Meshagent {
|
|
|
292
292
|
address: string;
|
|
293
293
|
room: string;
|
|
294
294
|
queue: string;
|
|
295
|
+
isPublic: boolean;
|
|
295
296
|
}): Promise<void>;
|
|
296
297
|
updateMailbox(params: {
|
|
297
298
|
projectId: string;
|
|
298
299
|
address: string;
|
|
299
300
|
room: string;
|
|
300
301
|
queue: string;
|
|
302
|
+
isPublic: boolean;
|
|
301
303
|
}): Promise<void>;
|
|
302
304
|
listMailboxes(projectId: string): Promise<Mailbox[]>;
|
|
303
305
|
deleteMailbox(projectId: string, address: string): Promise<void>;
|
|
@@ -684,19 +684,19 @@ class Meshagent {
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
async createMailbox(params) {
|
|
687
|
-
const { projectId, address, room, queue } = params;
|
|
687
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
688
688
|
await this.request(`/accounts/projects/${projectId}/mailboxes`, {
|
|
689
689
|
method: "POST",
|
|
690
|
-
json: { address, room, queue },
|
|
690
|
+
json: { address, room, queue, "public": isPublic },
|
|
691
691
|
action: "create mailbox",
|
|
692
692
|
responseType: "void",
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
async updateMailbox(params) {
|
|
696
|
-
const { projectId, address, room, queue } = params;
|
|
696
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
697
697
|
await this.request(`/accounts/projects/${projectId}/mailboxes/${address}`, {
|
|
698
698
|
method: "PUT",
|
|
699
|
-
json: { room, queue },
|
|
699
|
+
json: { room, queue, "public": isPublic },
|
|
700
700
|
action: "update mailbox",
|
|
701
701
|
responseType: "void",
|
|
702
702
|
});
|
|
@@ -292,12 +292,14 @@ export declare class Meshagent {
|
|
|
292
292
|
address: string;
|
|
293
293
|
room: string;
|
|
294
294
|
queue: string;
|
|
295
|
+
isPublic: boolean;
|
|
295
296
|
}): Promise<void>;
|
|
296
297
|
updateMailbox(params: {
|
|
297
298
|
projectId: string;
|
|
298
299
|
address: string;
|
|
299
300
|
room: string;
|
|
300
301
|
queue: string;
|
|
302
|
+
isPublic: boolean;
|
|
301
303
|
}): Promise<void>;
|
|
302
304
|
listMailboxes(projectId: string): Promise<Mailbox[]>;
|
|
303
305
|
deleteMailbox(projectId: string, address: string): Promise<void>;
|
|
@@ -681,19 +681,19 @@ export class Meshagent {
|
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
async createMailbox(params) {
|
|
684
|
-
const { projectId, address, room, queue } = params;
|
|
684
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
685
685
|
await this.request(`/accounts/projects/${projectId}/mailboxes`, {
|
|
686
686
|
method: "POST",
|
|
687
|
-
json: { address, room, queue },
|
|
687
|
+
json: { address, room, queue, "public": isPublic },
|
|
688
688
|
action: "create mailbox",
|
|
689
689
|
responseType: "void",
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
async updateMailbox(params) {
|
|
693
|
-
const { projectId, address, room, queue } = params;
|
|
693
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
694
694
|
await this.request(`/accounts/projects/${projectId}/mailboxes/${address}`, {
|
|
695
695
|
method: "PUT",
|
|
696
|
-
json: { room, queue },
|
|
696
|
+
json: { room, queue, "public": isPublic },
|
|
697
697
|
action: "update mailbox",
|
|
698
698
|
responseType: "void",
|
|
699
699
|
});
|
|
@@ -292,12 +292,14 @@ export declare class Meshagent {
|
|
|
292
292
|
address: string;
|
|
293
293
|
room: string;
|
|
294
294
|
queue: string;
|
|
295
|
+
isPublic: boolean;
|
|
295
296
|
}): Promise<void>;
|
|
296
297
|
updateMailbox(params: {
|
|
297
298
|
projectId: string;
|
|
298
299
|
address: string;
|
|
299
300
|
room: string;
|
|
300
301
|
queue: string;
|
|
302
|
+
isPublic: boolean;
|
|
301
303
|
}): Promise<void>;
|
|
302
304
|
listMailboxes(projectId: string): Promise<Mailbox[]>;
|
|
303
305
|
deleteMailbox(projectId: string, address: string): Promise<void>;
|
|
@@ -684,19 +684,19 @@ class Meshagent {
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
async createMailbox(params) {
|
|
687
|
-
const { projectId, address, room, queue } = params;
|
|
687
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
688
688
|
await this.request(`/accounts/projects/${projectId}/mailboxes`, {
|
|
689
689
|
method: "POST",
|
|
690
|
-
json: { address, room, queue },
|
|
690
|
+
json: { address, room, queue, "public": isPublic },
|
|
691
691
|
action: "create mailbox",
|
|
692
692
|
responseType: "void",
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
async updateMailbox(params) {
|
|
696
|
-
const { projectId, address, room, queue } = params;
|
|
696
|
+
const { projectId, address, room, queue, isPublic } = params;
|
|
697
697
|
await this.request(`/accounts/projects/${projectId}/mailboxes/${address}`, {
|
|
698
698
|
method: "PUT",
|
|
699
|
-
json: { room, queue },
|
|
699
|
+
json: { room, queue, "public": isPublic },
|
|
700
700
|
action: "update mailbox",
|
|
701
701
|
responseType: "void",
|
|
702
702
|
});
|