@zyphr-dev/node-sdk 0.1.32 → 0.1.33
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.cjs +1624 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1780 -237
- package/dist/index.d.ts +1780 -237
- package/dist/index.js +1530 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +20 -0
- package/src/client.ts +5 -0
- package/src/src/apis/AuthOrganizationsApi.ts +823 -0
- package/src/src/apis/AuthUserProfileApi.ts +62 -0
- package/src/src/apis/MuseApi.ts +531 -0
- package/src/src/apis/index.ts +2 -0
- package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
- package/src/src/models/CreateOrganizationRequest.ts +82 -0
- package/src/src/models/LoginRequest.ts +12 -0
- package/src/src/models/Organization.ts +137 -0
- package/src/src/models/OrganizationListResponse.ts +90 -0
- package/src/src/models/OrganizationListResponseMeta.ts +73 -0
- package/src/src/models/OrganizationMembersListResponse.ts +90 -0
- package/src/src/models/OrganizationMembership.ts +119 -0
- package/src/src/models/OrganizationMembershipResponse.ts +90 -0
- package/src/src/models/OrganizationMembershipWithUser.ts +135 -0
- package/src/src/models/OrganizationResponse.ts +90 -0
- package/src/src/models/RegisterRequest.ts +23 -0
- package/src/src/models/SwitchOrganizationRequest.ts +75 -0
- package/src/src/models/SwitchOrganizationResponse.ts +90 -0
- package/src/src/models/SwitchOrganizationResponseData.ts +99 -0
- package/src/src/models/SwitchOrganizationResponseDataTokens.ts +103 -0
- package/src/src/models/SwitchOrganizationResponseDataUser.ts +73 -0
- package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +66 -0
- package/src/src/models/UpdateOrganizationRequest.ts +81 -0
- package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +105 -0
- package/src/src/models/index.ts +18 -0
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ src/apis/AuthLoginApi.ts
|
|
|
8
8
|
src/apis/AuthMFAApi.ts
|
|
9
9
|
src/apis/AuthMagicLinksApi.ts
|
|
10
10
|
src/apis/AuthOAuthApi.ts
|
|
11
|
+
src/apis/AuthOrganizationsApi.ts
|
|
11
12
|
src/apis/AuthPasswordResetApi.ts
|
|
12
13
|
src/apis/AuthPhoneApi.ts
|
|
13
14
|
src/apis/AuthRegistrationApi.ts
|
|
@@ -19,6 +20,7 @@ src/apis/DomainsApi.ts
|
|
|
19
20
|
src/apis/EmailsApi.ts
|
|
20
21
|
src/apis/ExecutionsApi.ts
|
|
21
22
|
src/apis/InboxApi.ts
|
|
23
|
+
src/apis/MuseApi.ts
|
|
22
24
|
src/apis/PushApi.ts
|
|
23
25
|
src/apis/SMSApi.ts
|
|
24
26
|
src/apis/SlackApi.ts
|
|
@@ -38,6 +40,7 @@ src/index.ts
|
|
|
38
40
|
src/models/AddDomain200Response.ts
|
|
39
41
|
src/models/AddDomain200ResponseMeta.ts
|
|
40
42
|
src/models/AddDomainRequest.ts
|
|
43
|
+
src/models/AddOrganizationMemberRequest.ts
|
|
41
44
|
src/models/AddTopicSubscribersRequest.ts
|
|
42
45
|
src/models/ApiError.ts
|
|
43
46
|
src/models/ApiErrorError.ts
|
|
@@ -93,6 +96,7 @@ src/models/ConvertAnonymousUserRequestOneOf1.ts
|
|
|
93
96
|
src/models/ConvertAnonymousUserRequestOneOf1AppleUser.ts
|
|
94
97
|
src/models/ConvertAnonymousUserRequestOneOf1AppleUserName.ts
|
|
95
98
|
src/models/CreateCategoryRequest.ts
|
|
99
|
+
src/models/CreateOrganizationRequest.ts
|
|
96
100
|
src/models/CreateSubscriberRequest.ts
|
|
97
101
|
src/models/CreateTemplateRequest.ts
|
|
98
102
|
src/models/CreateTopicRequest.ts
|
|
@@ -202,6 +206,14 @@ src/models/OAuthTokensRefreshResponse.ts
|
|
|
202
206
|
src/models/OAuthTokensRefreshResponseData.ts
|
|
203
207
|
src/models/OAuthTokensResponse.ts
|
|
204
208
|
src/models/OAuthTokensResponseData.ts
|
|
209
|
+
src/models/Organization.ts
|
|
210
|
+
src/models/OrganizationListResponse.ts
|
|
211
|
+
src/models/OrganizationListResponseMeta.ts
|
|
212
|
+
src/models/OrganizationMembersListResponse.ts
|
|
213
|
+
src/models/OrganizationMembership.ts
|
|
214
|
+
src/models/OrganizationMembershipResponse.ts
|
|
215
|
+
src/models/OrganizationMembershipWithUser.ts
|
|
216
|
+
src/models/OrganizationResponse.ts
|
|
205
217
|
src/models/PaginationMeta.ts
|
|
206
218
|
src/models/PasswordRequirements.ts
|
|
207
219
|
src/models/PasswordRequirementsResponse.ts
|
|
@@ -314,6 +326,11 @@ src/models/SubscriberListResponse.ts
|
|
|
314
326
|
src/models/SubscriberPreference.ts
|
|
315
327
|
src/models/SubscriberResponse.ts
|
|
316
328
|
src/models/SuccessResult.ts
|
|
329
|
+
src/models/SwitchOrganizationRequest.ts
|
|
330
|
+
src/models/SwitchOrganizationResponse.ts
|
|
331
|
+
src/models/SwitchOrganizationResponseData.ts
|
|
332
|
+
src/models/SwitchOrganizationResponseDataTokens.ts
|
|
333
|
+
src/models/SwitchOrganizationResponseDataUser.ts
|
|
317
334
|
src/models/Template.ts
|
|
318
335
|
src/models/TemplateListResponse.ts
|
|
319
336
|
src/models/TemplateRenderResponse.ts
|
|
@@ -342,6 +359,8 @@ src/models/UnsubscribeRequest.ts
|
|
|
342
359
|
src/models/UnsubscribeResponse.ts
|
|
343
360
|
src/models/UpdateCategoryRequest.ts
|
|
344
361
|
src/models/UpdateEndUserRequest.ts
|
|
362
|
+
src/models/UpdateOrganizationMemberRoleRequest.ts
|
|
363
|
+
src/models/UpdateOrganizationRequest.ts
|
|
345
364
|
src/models/UpdateSubscriberPreferencesRequest.ts
|
|
346
365
|
src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
347
366
|
src/models/UpdateSubscriberRequest.ts
|
|
@@ -355,6 +374,7 @@ src/models/UpsertAuthEmailTemplateRequest.ts
|
|
|
355
374
|
src/models/UpsertSmsConfigRequest.ts
|
|
356
375
|
src/models/UserDevicesDeleteResponse.ts
|
|
357
376
|
src/models/UserDevicesDeleteResponseData.ts
|
|
377
|
+
src/models/V1MuseSubjectsSuggestPostRequest.ts
|
|
358
378
|
src/models/ValidateResetTokenRequest.ts
|
|
359
379
|
src/models/ValidateResetTokenResponse.ts
|
|
360
380
|
src/models/ValidateResetTokenResponseData.ts
|
package/src/client.ts
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
AuthMFAApi,
|
|
22
22
|
AuthMagicLinksApi,
|
|
23
23
|
AuthOAuthApi,
|
|
24
|
+
AuthOrganizationsApi,
|
|
24
25
|
AuthPasswordResetApi,
|
|
25
26
|
AuthPhoneApi,
|
|
26
27
|
AuthRegistrationApi,
|
|
@@ -102,6 +103,7 @@ export class Zyphr {
|
|
|
102
103
|
readonly mfa: AuthMFAApi;
|
|
103
104
|
readonly magicLinks: AuthMagicLinksApi;
|
|
104
105
|
readonly oauth: AuthOAuthApi;
|
|
106
|
+
readonly organizations: AuthOrganizationsApi;
|
|
105
107
|
readonly phone: AuthPhoneApi;
|
|
106
108
|
readonly profile: AuthUserProfileApi;
|
|
107
109
|
readonly webauthn: AuthWebAuthnApi;
|
|
@@ -152,6 +154,9 @@ export class Zyphr {
|
|
|
152
154
|
mfa: new AuthMFAApi(config),
|
|
153
155
|
magicLinks: new AuthMagicLinksApi(config),
|
|
154
156
|
oauth: new AuthOAuthApi(config),
|
|
157
|
+
// sc-5594 / epic-5587 — Auth-as-a-Service Organizations (Pro/Enterprise).
|
|
158
|
+
// Sub-tenant CRUD + membership + the active-org switch flow.
|
|
159
|
+
organizations: new AuthOrganizationsApi(config),
|
|
155
160
|
phone: new AuthPhoneApi(config),
|
|
156
161
|
profile: new AuthUserProfileApi(config),
|
|
157
162
|
webauthn: new AuthWebAuthnApi(config),
|