@axiom-lattice/client-sdk 4.7.0 → 4.8.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/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/project-room-hydrators.js +2 -2
- package/dist/project-room-hydrators.js.map +1 -1
- package/dist/project-rooms.d.ts +1 -0
- package/dist/project-rooms.d.ts.map +1 -1
- package/dist/project-rooms.js +1 -0
- package/dist/project-rooms.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2100,6 +2100,7 @@ declare class ProjectRoomsClient {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
readonly bots: {
|
|
2102
2102
|
list: (projectId: string) => Promise<ProjectRoomBotRecord[]>;
|
|
2103
|
+
ensure: (projectId: string, membershipId: string) => Promise<ProjectRoomBotRecord>;
|
|
2103
2104
|
add: (projectId: string, input: AddProjectBotMembershipInput) => Promise<ProjectRoomBotRecord>;
|
|
2104
2105
|
update: (projectId: string, membershipId: string, input: UpdateProjectBotMembershipInput) => Promise<ProjectRoomBotRecord>;
|
|
2105
2106
|
pause: (projectId: string, membershipId: string, input: MutationExpectedUpdatedAt) => Promise<ProjectRoomBotRecord>;
|
package/dist/index.js
CHANGED
|
@@ -3710,8 +3710,8 @@ var hydrateMember = (value) => {
|
|
|
3710
3710
|
};
|
|
3711
3711
|
var hydrateBot = (value) => {
|
|
3712
3712
|
const row = record(value);
|
|
3713
|
-
exactKeys(row, ["id", "tenantId", "workspaceId", "projectId", "roomId", "assistantId", "role", "title", "mentionName", "status", "roomThreadId", "joinedAt", "updatedAt"], ["responsibility"]);
|
|
3714
|
-
return { id: requiredString(row, "id"), tenantId: requiredString(row, "tenantId"), workspaceId: requiredString(row, "workspaceId"), projectId: requiredString(row, "projectId"), roomId: requiredString(row, "roomId"), assistantId: requiredString(row, "assistantId"), role: oneOf(row.role, botRoles, "role"), title: requiredString(row, "title"), ...row.responsibility === void 0 ? {} : { responsibility: requiredString(row, "responsibility") }, mentionName: requiredString(row, "mentionName"), status: oneOf(row.status, botStatuses, "status"), roomThreadId: requiredString(row, "roomThreadId"), joinedAt: date(row.joinedAt, "joinedAt"), updatedAt: date(row.updatedAt, "updatedAt") };
|
|
3713
|
+
exactKeys(row, ["id", "tenantId", "workspaceId", "projectId", "roomId", "assistantId", "role", "title", "mentionName", "status", "roomThreadId", "joinedAt", "updatedAt"], ["responsibility", "provisional"]);
|
|
3714
|
+
return { id: requiredString(row, "id"), tenantId: requiredString(row, "tenantId"), workspaceId: requiredString(row, "workspaceId"), projectId: requiredString(row, "projectId"), roomId: requiredString(row, "roomId"), assistantId: requiredString(row, "assistantId"), role: oneOf(row.role, botRoles, "role"), title: requiredString(row, "title"), ...row.responsibility === void 0 ? {} : { responsibility: requiredString(row, "responsibility") }, mentionName: requiredString(row, "mentionName"), status: oneOf(row.status, botStatuses, "status"), roomThreadId: requiredString(row, "roomThreadId"), joinedAt: date(row.joinedAt, "joinedAt"), updatedAt: date(row.updatedAt, "updatedAt"), ...row.provisional === true ? { provisional: true } : {} };
|
|
3715
3715
|
};
|
|
3716
3716
|
var hydrateDispatch = (value) => {
|
|
3717
3717
|
const row = record(value);
|
|
@@ -3773,6 +3773,7 @@ var ProjectRoomsClient = class {
|
|
|
3773
3773
|
};
|
|
3774
3774
|
this.bots = {
|
|
3775
3775
|
list: async (projectId) => this.records(`/api/projects/${encode(projectId)}/bots`, hydrateBot),
|
|
3776
|
+
ensure: async (projectId, membershipId) => hydrateBot(await this.request(`/api/projects/${encode(projectId)}/bots/${encode(membershipId)}/ensure`, { method: "POST", body: {} })),
|
|
3776
3777
|
add: async (projectId, input) => hydrateBot(await this.request(`/api/projects/${encode(projectId)}/bots`, { method: "POST", body: input })),
|
|
3777
3778
|
update: async (projectId, membershipId, input) => hydrateBot(await this.request(`/api/projects/${encode(projectId)}/bots/${encode(membershipId)}`, { method: "PATCH", body: { ...input, expectedUpdatedAt: iso(input.expectedUpdatedAt) } })),
|
|
3778
3779
|
pause: async (projectId, membershipId, input) => hydrateBot(await this.request(`/api/projects/${encode(projectId)}/bots/${encode(membershipId)}/pause`, { method: "POST", body: { expectedUpdatedAt: iso(input.expectedUpdatedAt) } })),
|