@zyphr-dev/node-sdk 0.1.32 → 0.1.34
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 +2245 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3139 -933
- package/dist/index.d.ts +3139 -933
- package/dist/index.js +2100 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +30 -0
- package/src/client.ts +9 -0
- package/src/src/apis/AuthOrganizationsApi.ts +823 -0
- package/src/src/apis/AuthUserProfileApi.ts +62 -0
- package/src/src/apis/DomainsApi.ts +73 -0
- package/src/src/apis/InboundEmailApi.ts +264 -0
- package/src/src/apis/MuseApi.ts +531 -0
- package/src/src/apis/index.ts +3 -0
- package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
- package/src/src/models/CreateOrganizationRequest.ts +82 -0
- package/src/src/models/InboundAttachmentUrlResponse.ts +88 -0
- package/src/src/models/InboundAttachmentUrlResponseData.ts +81 -0
- package/src/src/models/InboundEmail.ts +247 -0
- package/src/src/models/InboundEmailAttachment.ts +89 -0
- package/src/src/models/InboundEmailFrom.ts +73 -0
- package/src/src/models/InboundEmailListResponse.ts +88 -0
- package/src/src/models/InboundEmailListResponseMeta.ts +89 -0
- package/src/src/models/InboundEmailResponse.ts +88 -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/SetDomainInboundRequest.ts +65 -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 +27 -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
|
|
@@ -18,7 +19,9 @@ src/apis/DevicesApi.ts
|
|
|
18
19
|
src/apis/DomainsApi.ts
|
|
19
20
|
src/apis/EmailsApi.ts
|
|
20
21
|
src/apis/ExecutionsApi.ts
|
|
22
|
+
src/apis/InboundEmailApi.ts
|
|
21
23
|
src/apis/InboxApi.ts
|
|
24
|
+
src/apis/MuseApi.ts
|
|
22
25
|
src/apis/PushApi.ts
|
|
23
26
|
src/apis/SMSApi.ts
|
|
24
27
|
src/apis/SlackApi.ts
|
|
@@ -38,6 +41,7 @@ src/index.ts
|
|
|
38
41
|
src/models/AddDomain200Response.ts
|
|
39
42
|
src/models/AddDomain200ResponseMeta.ts
|
|
40
43
|
src/models/AddDomainRequest.ts
|
|
44
|
+
src/models/AddOrganizationMemberRequest.ts
|
|
41
45
|
src/models/AddTopicSubscribersRequest.ts
|
|
42
46
|
src/models/ApiError.ts
|
|
43
47
|
src/models/ApiErrorError.ts
|
|
@@ -93,6 +97,7 @@ src/models/ConvertAnonymousUserRequestOneOf1.ts
|
|
|
93
97
|
src/models/ConvertAnonymousUserRequestOneOf1AppleUser.ts
|
|
94
98
|
src/models/ConvertAnonymousUserRequestOneOf1AppleUserName.ts
|
|
95
99
|
src/models/CreateCategoryRequest.ts
|
|
100
|
+
src/models/CreateOrganizationRequest.ts
|
|
96
101
|
src/models/CreateSubscriberRequest.ts
|
|
97
102
|
src/models/CreateTemplateRequest.ts
|
|
98
103
|
src/models/CreateTopicRequest.ts
|
|
@@ -149,6 +154,14 @@ src/models/GetDomain200ResponseMeta.ts
|
|
|
149
154
|
src/models/GetWaaSEndpoint200Response.ts
|
|
150
155
|
src/models/GetWaaSUsage200Response.ts
|
|
151
156
|
src/models/InAppNotification.ts
|
|
157
|
+
src/models/InboundAttachmentUrlResponse.ts
|
|
158
|
+
src/models/InboundAttachmentUrlResponseData.ts
|
|
159
|
+
src/models/InboundEmail.ts
|
|
160
|
+
src/models/InboundEmailAttachment.ts
|
|
161
|
+
src/models/InboundEmailFrom.ts
|
|
162
|
+
src/models/InboundEmailListResponse.ts
|
|
163
|
+
src/models/InboundEmailListResponseMeta.ts
|
|
164
|
+
src/models/InboundEmailResponse.ts
|
|
152
165
|
src/models/InboxListMeta.ts
|
|
153
166
|
src/models/InboxListResponse.ts
|
|
154
167
|
src/models/InboxNotificationResponse.ts
|
|
@@ -202,6 +215,14 @@ src/models/OAuthTokensRefreshResponse.ts
|
|
|
202
215
|
src/models/OAuthTokensRefreshResponseData.ts
|
|
203
216
|
src/models/OAuthTokensResponse.ts
|
|
204
217
|
src/models/OAuthTokensResponseData.ts
|
|
218
|
+
src/models/Organization.ts
|
|
219
|
+
src/models/OrganizationListResponse.ts
|
|
220
|
+
src/models/OrganizationListResponseMeta.ts
|
|
221
|
+
src/models/OrganizationMembersListResponse.ts
|
|
222
|
+
src/models/OrganizationMembership.ts
|
|
223
|
+
src/models/OrganizationMembershipResponse.ts
|
|
224
|
+
src/models/OrganizationMembershipWithUser.ts
|
|
225
|
+
src/models/OrganizationResponse.ts
|
|
205
226
|
src/models/PaginationMeta.ts
|
|
206
227
|
src/models/PasswordRequirements.ts
|
|
207
228
|
src/models/PasswordRequirementsResponse.ts
|
|
@@ -288,6 +309,7 @@ src/models/SendWebhookTestEventRequest.ts
|
|
|
288
309
|
src/models/SessionListResponse.ts
|
|
289
310
|
src/models/SessionListResponseData.ts
|
|
290
311
|
src/models/SessionListResponseDataSessionInfo.ts
|
|
312
|
+
src/models/SetDomainInboundRequest.ts
|
|
291
313
|
src/models/SetPreferencesRequest.ts
|
|
292
314
|
src/models/SetPreferencesRequestPreferencesInner.ts
|
|
293
315
|
src/models/SignInAnonymouslyRequest.ts
|
|
@@ -314,6 +336,11 @@ src/models/SubscriberListResponse.ts
|
|
|
314
336
|
src/models/SubscriberPreference.ts
|
|
315
337
|
src/models/SubscriberResponse.ts
|
|
316
338
|
src/models/SuccessResult.ts
|
|
339
|
+
src/models/SwitchOrganizationRequest.ts
|
|
340
|
+
src/models/SwitchOrganizationResponse.ts
|
|
341
|
+
src/models/SwitchOrganizationResponseData.ts
|
|
342
|
+
src/models/SwitchOrganizationResponseDataTokens.ts
|
|
343
|
+
src/models/SwitchOrganizationResponseDataUser.ts
|
|
317
344
|
src/models/Template.ts
|
|
318
345
|
src/models/TemplateListResponse.ts
|
|
319
346
|
src/models/TemplateRenderResponse.ts
|
|
@@ -342,6 +369,8 @@ src/models/UnsubscribeRequest.ts
|
|
|
342
369
|
src/models/UnsubscribeResponse.ts
|
|
343
370
|
src/models/UpdateCategoryRequest.ts
|
|
344
371
|
src/models/UpdateEndUserRequest.ts
|
|
372
|
+
src/models/UpdateOrganizationMemberRoleRequest.ts
|
|
373
|
+
src/models/UpdateOrganizationRequest.ts
|
|
345
374
|
src/models/UpdateSubscriberPreferencesRequest.ts
|
|
346
375
|
src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
347
376
|
src/models/UpdateSubscriberRequest.ts
|
|
@@ -355,6 +384,7 @@ src/models/UpsertAuthEmailTemplateRequest.ts
|
|
|
355
384
|
src/models/UpsertSmsConfigRequest.ts
|
|
356
385
|
src/models/UserDevicesDeleteResponse.ts
|
|
357
386
|
src/models/UserDevicesDeleteResponseData.ts
|
|
387
|
+
src/models/V1MuseSubjectsSuggestPostRequest.ts
|
|
358
388
|
src/models/ValidateResetTokenRequest.ts
|
|
359
389
|
src/models/ValidateResetTokenResponse.ts
|
|
360
390
|
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,
|
|
@@ -30,6 +31,7 @@ import {
|
|
|
30
31
|
DevicesApi,
|
|
31
32
|
DomainsApi,
|
|
32
33
|
EmailsApi,
|
|
34
|
+
InboundEmailApi,
|
|
33
35
|
InboxApi,
|
|
34
36
|
PushApi,
|
|
35
37
|
SlackApi,
|
|
@@ -83,6 +85,8 @@ export class Zyphr {
|
|
|
83
85
|
readonly topics: TopicsApi;
|
|
84
86
|
readonly devices: DevicesApi;
|
|
85
87
|
readonly domains: DomainsApi;
|
|
88
|
+
/** Inbound (received) email — read access. Requires the `email:read` scope. */
|
|
89
|
+
readonly inbound: InboundEmailApi;
|
|
86
90
|
|
|
87
91
|
readonly waas: {
|
|
88
92
|
readonly applications: WaaSApplicationsApi;
|
|
@@ -102,6 +106,7 @@ export class Zyphr {
|
|
|
102
106
|
readonly mfa: AuthMFAApi;
|
|
103
107
|
readonly magicLinks: AuthMagicLinksApi;
|
|
104
108
|
readonly oauth: AuthOAuthApi;
|
|
109
|
+
readonly organizations: AuthOrganizationsApi;
|
|
105
110
|
readonly phone: AuthPhoneApi;
|
|
106
111
|
readonly profile: AuthUserProfileApi;
|
|
107
112
|
readonly webauthn: AuthWebAuthnApi;
|
|
@@ -133,6 +138,7 @@ export class Zyphr {
|
|
|
133
138
|
this.topics = new TopicsApi(config);
|
|
134
139
|
this.devices = new DevicesApi(config);
|
|
135
140
|
this.domains = new DomainsApi(config);
|
|
141
|
+
this.inbound = new InboundEmailApi(config);
|
|
136
142
|
|
|
137
143
|
this.waas = {
|
|
138
144
|
applications: new WaaSApplicationsApi(config),
|
|
@@ -152,6 +158,9 @@ export class Zyphr {
|
|
|
152
158
|
mfa: new AuthMFAApi(config),
|
|
153
159
|
magicLinks: new AuthMagicLinksApi(config),
|
|
154
160
|
oauth: new AuthOAuthApi(config),
|
|
161
|
+
// sc-5594 / epic-5587 — Auth-as-a-Service Organizations (Pro/Enterprise).
|
|
162
|
+
// Sub-tenant CRUD + membership + the active-org switch flow.
|
|
163
|
+
organizations: new AuthOrganizationsApi(config),
|
|
155
164
|
phone: new AuthPhoneApi(config),
|
|
156
165
|
profile: new AuthUserProfileApi(config),
|
|
157
166
|
webauthn: new AuthWebAuthnApi(config),
|