@b1-road/types 0.1.0-alpha.1 → 0.1.0-alpha.2

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
@@ -97,6 +97,13 @@ interface Invitation {
97
97
  roleId: string;
98
98
  roleName: string;
99
99
  status: "pending" | "accepted" | "expired" | "cancelled" | "rejected";
100
+ /**
101
+ * How the invitation was accepted: `"manual"` (the user explicitly accepted)
102
+ * or `"auto"` (auto-linked when the invited user first signed in with a
103
+ * pending invitation). `null` while still pending — and for invitations
104
+ * accepted before this field existed.
105
+ */
106
+ acceptedVia: "manual" | "auto" | null;
100
107
  invitedAt: string;
101
108
  expiresAt: string;
102
109
  }
package/dist/index.d.ts CHANGED
@@ -97,6 +97,13 @@ interface Invitation {
97
97
  roleId: string;
98
98
  roleName: string;
99
99
  status: "pending" | "accepted" | "expired" | "cancelled" | "rejected";
100
+ /**
101
+ * How the invitation was accepted: `"manual"` (the user explicitly accepted)
102
+ * or `"auto"` (auto-linked when the invited user first signed in with a
103
+ * pending invitation). `null` while still pending — and for invitations
104
+ * accepted before this field existed.
105
+ */
106
+ acceptedVia: "manual" | "auto" | null;
100
107
  invitedAt: string;
101
108
  expiresAt: string;
102
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b1-road/types",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "Shared types and constants for every @b1-road SDK — entities, permission algebra, hosted API URLs.",
6
6
  "license": "MIT",