@newhomestar/sdk 0.8.13 → 0.8.14

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/events.js CHANGED
@@ -782,7 +782,7 @@ export async function withInboundEvent(db, msg, handler) {
782
782
  'Content-Type': 'application/json',
783
783
  },
784
784
  body: JSON.stringify({
785
- queue_name: queueName,
785
+ queue: queueName,
786
786
  msg_id: Number(msgId),
787
787
  }),
788
788
  });
@@ -892,7 +892,7 @@ export function startInboundConsumer(db, options) {
892
892
  'Authorization': `Bearer ${serviceToken}`,
893
893
  'Content-Type': 'application/json',
894
894
  },
895
- body: JSON.stringify({ queue_name: queueName, msg_id: msgId }),
895
+ body: JSON.stringify({ queue: queueName, msg_id: msgId }),
896
896
  });
897
897
  }
898
898
  catch (err) {
@@ -923,7 +923,7 @@ export function startInboundConsumer(db, options) {
923
923
  await fetch(`${eventsUrl}/events/queue/ack`, {
924
924
  method: 'POST',
925
925
  headers: { 'Authorization': `Bearer ${serviceToken}`, 'Content-Type': 'application/json' },
926
- body: JSON.stringify({ queue_name: queueName, msg_id: msgId }),
926
+ body: JSON.stringify({ queue: queueName, msg_id: msgId }),
927
927
  });
928
928
  }
929
929
  catch { /* best-effort */ }
package/dist/next.d.ts CHANGED
@@ -123,6 +123,19 @@ export interface NovaIamResourceDef {
123
123
  parent_resource_path?: string;
124
124
  /** Arbitrary metadata stored on the resource record */
125
125
  metadata?: Record<string, unknown>;
126
+ /**
127
+ * Free-text grouping bucket used by Odyssey's role-edit modal to render
128
+ * top-level sections (e.g. 'core', 'manage', 'admin'). When omitted, the
129
+ * resource inherits the service-level default declared at `iam.scope`, then
130
+ * falls back to inheriting from its `parent_resource_path` if still unset.
131
+ * Common values:
132
+ * - 'core' → end-user / day-to-day modules (employees, leave, etc.)
133
+ * - 'manage' → manager / supervisor surfaces
134
+ * - 'admin' → administrative tools and settings
135
+ * Free-form — any string is accepted; the UI renders unknown values
136
+ * alphabetically after the canonical core/manage/admin order.
137
+ */
138
+ scope?: string;
126
139
  }
127
140
  /**
128
141
  * FGA check declared on a novaEndpoint() — runtime-only.
@@ -803,6 +816,12 @@ export interface ServiceDef {
803
816
  */
804
817
  iam?: {
805
818
  resources: NovaIamResourceDef[];
819
+ /**
820
+ * Service-level default `scope` applied to every resource that doesn't
821
+ * declare one explicitly. Free-text — common values: 'core', 'manage',
822
+ * 'admin'. See `NovaIamResourceDef.scope` for full inheritance rules.
823
+ */
824
+ scope?: string;
806
825
  };
807
826
  }
808
827
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newhomestar/sdk",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "description": "Type-safe SDK for building Nova pipelines (workers & functions)",
5
5
  "homepage": "https://github.com/newhomestar/nova-node-sdk#readme",
6
6
  "bugs": {