@zyphr-dev/node-sdk 0.1.31 → 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 +2204 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2214 -145
- package/dist/index.d.ts +2214 -145
- package/dist/index.js +2066 -157
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +28 -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/DomainsApi.ts +248 -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/DeleteDomainResponse.ts +90 -0
- package/src/src/models/DeleteDomainResponseData.ts +75 -0
- package/src/src/models/DomainResponse.ts +47 -1
- package/src/src/models/GetDomain200Response.ts +88 -0
- package/src/src/models/GetDomain200ResponseMeta.ts +65 -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/VerificationStatusResponse.ts +90 -0
- package/src/src/models/VerificationStatusResponseData.ts +148 -0
- package/src/src/models/VerifyDomainResponse.ts +90 -0
- package/src/src/models/VerifyDomainResponseData.ts +103 -0
- package/src/src/models/index.ts +26 -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
|
|
@@ -104,6 +108,8 @@ src/models/CreateWaaSEndpointResponse.ts
|
|
|
104
108
|
src/models/CreateWaaSEventType201Response.ts
|
|
105
109
|
src/models/CreateWaaSEventTypeRequest.ts
|
|
106
110
|
src/models/CreateWebhookRequest.ts
|
|
111
|
+
src/models/DeleteDomainResponse.ts
|
|
112
|
+
src/models/DeleteDomainResponseData.ts
|
|
107
113
|
src/models/DeleteResult.ts
|
|
108
114
|
src/models/DeleteResultData.ts
|
|
109
115
|
src/models/Device.ts
|
|
@@ -142,6 +148,8 @@ src/models/GenerateSubscriberToken200Response.ts
|
|
|
142
148
|
src/models/GenerateSubscriberToken200ResponseData.ts
|
|
143
149
|
src/models/GenerateSubscriberTokenRequest.ts
|
|
144
150
|
src/models/GenerateWaaSPortalToken201Response.ts
|
|
151
|
+
src/models/GetDomain200Response.ts
|
|
152
|
+
src/models/GetDomain200ResponseMeta.ts
|
|
145
153
|
src/models/GetWaaSEndpoint200Response.ts
|
|
146
154
|
src/models/GetWaaSUsage200Response.ts
|
|
147
155
|
src/models/InAppNotification.ts
|
|
@@ -198,6 +206,14 @@ src/models/OAuthTokensRefreshResponse.ts
|
|
|
198
206
|
src/models/OAuthTokensRefreshResponseData.ts
|
|
199
207
|
src/models/OAuthTokensResponse.ts
|
|
200
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
|
|
201
217
|
src/models/PaginationMeta.ts
|
|
202
218
|
src/models/PasswordRequirements.ts
|
|
203
219
|
src/models/PasswordRequirementsResponse.ts
|
|
@@ -310,6 +326,11 @@ src/models/SubscriberListResponse.ts
|
|
|
310
326
|
src/models/SubscriberPreference.ts
|
|
311
327
|
src/models/SubscriberResponse.ts
|
|
312
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
|
|
313
334
|
src/models/Template.ts
|
|
314
335
|
src/models/TemplateListResponse.ts
|
|
315
336
|
src/models/TemplateRenderResponse.ts
|
|
@@ -338,6 +359,8 @@ src/models/UnsubscribeRequest.ts
|
|
|
338
359
|
src/models/UnsubscribeResponse.ts
|
|
339
360
|
src/models/UpdateCategoryRequest.ts
|
|
340
361
|
src/models/UpdateEndUserRequest.ts
|
|
362
|
+
src/models/UpdateOrganizationMemberRoleRequest.ts
|
|
363
|
+
src/models/UpdateOrganizationRequest.ts
|
|
341
364
|
src/models/UpdateSubscriberPreferencesRequest.ts
|
|
342
365
|
src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
343
366
|
src/models/UpdateSubscriberRequest.ts
|
|
@@ -351,9 +374,14 @@ src/models/UpsertAuthEmailTemplateRequest.ts
|
|
|
351
374
|
src/models/UpsertSmsConfigRequest.ts
|
|
352
375
|
src/models/UserDevicesDeleteResponse.ts
|
|
353
376
|
src/models/UserDevicesDeleteResponseData.ts
|
|
377
|
+
src/models/V1MuseSubjectsSuggestPostRequest.ts
|
|
354
378
|
src/models/ValidateResetTokenRequest.ts
|
|
355
379
|
src/models/ValidateResetTokenResponse.ts
|
|
356
380
|
src/models/ValidateResetTokenResponseData.ts
|
|
381
|
+
src/models/VerificationStatusResponse.ts
|
|
382
|
+
src/models/VerificationStatusResponseData.ts
|
|
383
|
+
src/models/VerifyDomainResponse.ts
|
|
384
|
+
src/models/VerifyDomainResponseData.ts
|
|
357
385
|
src/models/VerifySmsConfigData.ts
|
|
358
386
|
src/models/VerifySmsConfigResponse.ts
|
|
359
387
|
src/models/WaaSApplication.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),
|