@ai-matrx/meet 0.7.14 → 0.7.15

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.cts CHANGED
@@ -1603,9 +1603,14 @@ interface MeetRepository {
1603
1603
  getOrCreateMeeting(input: CreateMeetingInput): Promise<MeetingRecord>;
1604
1604
  meetingBySlug(slug: string): Promise<MeetingRecord>;
1605
1605
  meeting(id: MeetingId): Promise<MeetingRecord>;
1606
- /** Keyset paged, `(scheduled_for, id)`. */
1606
+ /**
1607
+ * Keyset paged, `(scheduled_for, id)`. Every meeting the person can access, in
1608
+ * ALL their organizations — `organizationId` is an OPTIONAL page filter
1609
+ * (absent/null = all organizations), never the active organization
1610
+ * (active-org-is-never-a-list-filter.md). Access is decided by RLS.
1611
+ */
1607
1612
  listMeetings(args: {
1608
- organizationId: OrganizationId;
1613
+ organizationId?: OrganizationId | null;
1609
1614
  limit?: number;
1610
1615
  before?: {
1611
1616
  scheduledFor: string;
package/dist/index.d.ts CHANGED
@@ -1603,9 +1603,14 @@ interface MeetRepository {
1603
1603
  getOrCreateMeeting(input: CreateMeetingInput): Promise<MeetingRecord>;
1604
1604
  meetingBySlug(slug: string): Promise<MeetingRecord>;
1605
1605
  meeting(id: MeetingId): Promise<MeetingRecord>;
1606
- /** Keyset paged, `(scheduled_for, id)`. */
1606
+ /**
1607
+ * Keyset paged, `(scheduled_for, id)`. Every meeting the person can access, in
1608
+ * ALL their organizations — `organizationId` is an OPTIONAL page filter
1609
+ * (absent/null = all organizations), never the active organization
1610
+ * (active-org-is-never-a-list-filter.md). Access is decided by RLS.
1611
+ */
1607
1612
  listMeetings(args: {
1608
- organizationId: OrganizationId;
1613
+ organizationId?: OrganizationId | null;
1609
1614
  limit?: number;
1610
1615
  before?: {
1611
1616
  scheduledFor: string;
package/dist/index.js CHANGED
@@ -2233,9 +2233,10 @@ function createMeetRepository(options) {
2233
2233
  if (response.data === null) throw invalidResponse("meet.meeting", "no such meeting");
2234
2234
  return projectMeeting(response.data);
2235
2235
  },
2236
- async listMeetings({ organizationId, limit = 25, before = null }) {
2237
- requireOrg(organizationId, "meet.listMeetings");
2238
- let query = db.from(TABLES.meetings).select(MEETING_COLUMNS).eq("organization_id", organizationId).order("scheduled_for", { ascending: false }).order("id", { ascending: false }).limit(limit + 1);
2236
+ async listMeetings({ organizationId = null, limit = 25, before = null }) {
2237
+ let query = db.from(TABLES.meetings).select(MEETING_COLUMNS);
2238
+ if (organizationId !== null) query = query.eq("organization_id", organizationId);
2239
+ query = query.order("scheduled_for", { ascending: false }).order("id", { ascending: false }).limit(limit + 1);
2239
2240
  if (before !== null) {
2240
2241
  query = query.or(
2241
2242
  `scheduled_for.lt.${before.scheduledFor},and(scheduled_for.eq.${before.scheduledFor},id.lt.${before.id})`