@zooid/transport-matrix 0.8.0 → 0.9.1

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.
@@ -36,7 +36,7 @@ describe('buildWorkforceRoster', () => {
36
36
  })
37
37
 
38
38
  describe('publishWorkforce', () => {
39
- it('PUTs eco.zoon.workforce state event on the configured space', async () => {
39
+ it('PUTs dev.zooid.workforce state event on the configured space', async () => {
40
40
  const fetch = vi.fn(async () => new Response('{}', { status: 200 }))
41
41
  const client = new MatrixClient({
42
42
  homeserver: 'https://hs.zoon.local',
@@ -54,7 +54,7 @@ describe('publishWorkforce', () => {
54
54
  expect(fetch).toHaveBeenCalledTimes(1)
55
55
  const [url, init] = fetch.mock.calls[0]!
56
56
  expect(url).toBe(
57
- 'https://hs.zoon.local/_matrix/client/v3/rooms/!space%3Azoon.local/state/eco.zoon.workforce/?user_id=%40zooid%3Azoon.local',
57
+ 'https://hs.zoon.local/_matrix/client/v3/rooms/!space%3Azoon.local/state/dev.zooid.workforce/?user_id=%40zooid%3Azoon.local',
58
58
  )
59
59
  expect(init?.method).toBe('PUT')
60
60
  expect(init?.headers).toMatchObject({ Authorization: 'Bearer as-tok' })
@@ -28,7 +28,7 @@ export async function publishWorkforce(opts: PublishOpts): Promise<void> {
28
28
  await opts.client.sendStateEvent({
29
29
  roomId: opts.spaceRoomId,
30
30
  asUserId: opts.asUserId,
31
- eventType: 'eco.zoon.workforce',
31
+ eventType: 'dev.zooid.workforce',
32
32
  stateKey: '',
33
33
  content: buildWorkforceRoster(opts.agents) as unknown as Record<string, unknown>,
34
34
  })