@stable_sea/sdk 0.2.11 → 0.2.13

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/README.md CHANGED
@@ -53,6 +53,66 @@ keys and rotations reuse that data.
53
53
  WTGXX supports standard and instant settlement. FLTTX supports standard
54
54
  settlement; instant orders are refused in both production and sandbox.
55
55
 
56
+ ## Member administration and personal actions
57
+
58
+ Use `createStableSeaSessionClient` for your profile and security, team and API-key
59
+ administration, notifications, preferences and business support messages. It uses
60
+ the native sign-in, MFA and business-selection flow,
61
+ not a Live or Test API key. Use `https://api.stablesea.com`; the isolated
62
+ Test-key Sandbox does not serve member sessions.
63
+
64
+ ```ts
65
+ import { createStableSeaSessionClient } from "@stable_sea/sdk";
66
+
67
+ // authenticatedFetch is your transport retaining the existing sign-in cookies.
68
+ const member = createStableSeaSessionClient({
69
+ baseUrl: "https://api.stablesea.com",
70
+ fetch: authenticatedFetch,
71
+ });
72
+ const feed = await member.GET("/notifications/member_notifications");
73
+ if (feed.error) throw new Error("Could not read notifications");
74
+ console.log(feed.data.data);
75
+ ```
76
+
77
+ Node.js fetch does not retain cookies automatically. Supply your authenticated
78
+ transport. Call the typed sign-in and refresh operations explicitly; the client
79
+ does not perform authentication, cookie storage or retries automatically.
80
+ Existing login MFA, business membership, locks and permissions remain in force.
81
+ Member requests do not use the dated financial API contract header.
82
+
83
+ Member writes use `member.POST`, with each native operation's retry behavior.
84
+ They have no financial `mutation()` helper. Key creation and rotation require
85
+ an `Idempotency-Key`; other operations retain their documented native retry
86
+ behavior. After an
87
+ uncertain message send, match the returned `id` in the thread against the
88
+ `message_id` you sent before resending;
89
+ repeated sends can repeat notifications. Contact submissions must not retry
90
+ automatically. See the [member guide](https://docs.stablesea.com/api/#member-sessions)
91
+ for sign-in, session lifecycle and attachment retrieval, and the
92
+ [member reference](https://docs.stablesea.com/api/member-reference/) for fields.
93
+
94
+ List members at `GET /identity/members` and manage invitations at
95
+ `/identity/members/invites`. Creation returns invitation details, never the
96
+ redemption token delivered to the invitee. Invitation acceptance uses the
97
+ invitee's email-link token; administrators cannot accept on their behalf.
98
+ Member grants and activation use existing business permissions. Policy settings
99
+ retain their separate launch gate.
100
+
101
+ Manage Live and Test credentials at `/identity/api_keys`. Use an explicit scope
102
+ list and a unique issuance idempotency key. Test lifecycle operations have no
103
+ extra fresh two-factor prompt; Live operations retain their existing protection.
104
+ Key management requires the same permission as Terminal and never broadens an
105
+ existing credential's scopes implicitly.
106
+
107
+ Native refresh and extension retain their existing `Success` and `Message`
108
+ response keys. HTTP 200 with `Success: false` is a refusal. Sign-out returns an
109
+ empty HTTP 200 after durable revocation and cookie clearing. Preserve the refresh
110
+ cookie's `/platform_identity_api/auth/token` path; the session countdown is
111
+ advisory, not proof of authentication.
112
+
113
+ Generated types are exported as `SessionPaths`, `SessionOperations` and
114
+ `SessionComponents`; internal operator and excluded product operations are omitted.
115
+
56
116
  ## Idempotent writes
57
117
 
58
118
  Create one mutation handle for one logical write. Its `POST` method always sends