@wix/auth-management 1.0.28 → 1.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auth-management",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/auth-management_o-auth-apps": "1.0.14"
21
+ "@wix/auth-management_o-auth-apps": "1.0.15"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -43,5 +43,5 @@
43
43
  "fqdn": ""
44
44
  }
45
45
  },
46
- "falconPackageHash": "7ffa53cb1abc1d8840847ef00d8a105e303b38634e677570b97af67b"
46
+ "falconPackageHash": "def03fda673a17a6269e0f935f4b4421fff421ca5e90582588ec7fed"
47
47
  }
@@ -44,6 +44,19 @@ interface OAuthApp {
44
44
  allowSecretGeneration?: boolean | null;
45
45
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
46
46
  logoutUrl?: string | null;
47
+ /** OAuth application type. */
48
+ applicationType?: OAuthAppType;
49
+ }
50
+ /** OAuth application type. */
51
+ declare enum OAuthAppType {
52
+ /** OAuth app type is not specified. */
53
+ OAUTH_APP_TYPE_UNSPECIFIED = "OAUTH_APP_TYPE_UNSPECIFIED",
54
+ /** OAuth app type is a web application. */
55
+ WEB_APP = "WEB_APP",
56
+ /** OAuth app type is a mobile application. */
57
+ MOBILE = "MOBILE",
58
+ /** OAuth app type is some other type of application. */
59
+ OTHER = "OTHER"
47
60
  }
48
61
  interface IdentificationData extends IdentificationDataIdOneOf {
49
62
  /** ID of a site visitor that has not logged in to the site. */
@@ -177,6 +190,8 @@ interface UpdateOAuthApp {
177
190
  allowSecretGeneration?: boolean | null;
178
191
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
179
192
  logoutUrl?: string | null;
193
+ /** OAuth application type. */
194
+ applicationType?: OAuthAppType;
180
195
  }
181
196
  interface QueryOffsetResult {
182
197
  currentPage: number | undefined;
@@ -257,14 +272,17 @@ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: Ev
257
272
  declare function createOAuthApp$1(httpClient: HttpClient): (oAuthApp: OAuthApp) => Promise<OAuthApp & {
258
273
  allowedRedirectUris: string[];
259
274
  allowedRedirectDomains: string[];
275
+ applicationType: OAuthAppType;
260
276
  }>;
261
277
  declare function getOAuthApp$1(httpClient: HttpClient): (oAuthAppId: string) => Promise<OAuthApp & {
262
278
  allowedRedirectUris: string[];
263
279
  allowedRedirectDomains: string[];
280
+ applicationType: OAuthAppType;
264
281
  }>;
265
282
  declare function updateOAuthApp$1(httpClient: HttpClient): (_id: string | null, oAuthApp: UpdateOAuthApp) => Promise<OAuthApp & {
266
283
  allowedRedirectUris: string[];
267
284
  allowedRedirectDomains: string[];
285
+ applicationType: OAuthAppType;
268
286
  }>;
269
287
  declare function queryOAuthApps$1(httpClient: HttpClient): () => OAuthAppsQueryBuilder;
270
288
  declare const onOAuthAppCreated$1: EventDefinition<OAuthAppCreatedEnvelope, "wix.headless.v1.o_auth_app_created">;
@@ -44,6 +44,19 @@ interface OAuthApp {
44
44
  allowSecretGeneration?: boolean | null;
45
45
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
46
46
  logoutUrl?: string | null;
47
+ /** OAuth application type. */
48
+ applicationType?: OAuthAppType;
49
+ }
50
+ /** OAuth application type. */
51
+ declare enum OAuthAppType {
52
+ /** OAuth app type is not specified. */
53
+ OAUTH_APP_TYPE_UNSPECIFIED = "OAUTH_APP_TYPE_UNSPECIFIED",
54
+ /** OAuth app type is a web application. */
55
+ WEB_APP = "WEB_APP",
56
+ /** OAuth app type is a mobile application. */
57
+ MOBILE = "MOBILE",
58
+ /** OAuth app type is some other type of application. */
59
+ OTHER = "OTHER"
47
60
  }
48
61
  interface CreateOAuthAppRequest {
49
62
  /** OAuth app to create. */
@@ -547,24 +560,28 @@ interface CreateOAuthAppResponseNonNullableFields {
547
560
  oAuthApp?: {
548
561
  allowedRedirectUris: string[];
549
562
  allowedRedirectDomains: string[];
563
+ applicationType: OAuthAppType;
550
564
  };
551
565
  }
552
566
  interface GetOAuthAppResponseNonNullableFields {
553
567
  oAuthApp?: {
554
568
  allowedRedirectUris: string[];
555
569
  allowedRedirectDomains: string[];
570
+ applicationType: OAuthAppType;
556
571
  };
557
572
  }
558
573
  interface UpdateOAuthAppResponseNonNullableFields {
559
574
  oAuthApp?: {
560
575
  allowedRedirectUris: string[];
561
576
  allowedRedirectDomains: string[];
577
+ applicationType: OAuthAppType;
562
578
  };
563
579
  }
564
580
  interface QueryOAuthAppsResponseNonNullableFields {
565
581
  oAuthApps: {
566
582
  allowedRedirectUris: string[];
567
583
  allowedRedirectDomains: string[];
584
+ applicationType: OAuthAppType;
568
585
  }[];
569
586
  }
570
587
  interface BaseEventMetadata {
@@ -669,6 +686,8 @@ interface UpdateOAuthApp {
669
686
  allowSecretGeneration?: boolean | null;
670
687
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
671
688
  logoutUrl?: string | null;
689
+ /** OAuth application type. */
690
+ applicationType?: OAuthAppType;
672
691
  }
673
692
  interface QueryOffsetResult {
674
693
  currentPage: number | undefined;
@@ -748,14 +767,17 @@ declare const __metadata: {
748
767
  declare function createOAuthApp(httpClient: HttpClient): (oAuthApp: OAuthApp) => Promise<OAuthApp & {
749
768
  allowedRedirectUris: string[];
750
769
  allowedRedirectDomains: string[];
770
+ applicationType: OAuthAppType;
751
771
  }>;
752
772
  declare function getOAuthApp(httpClient: HttpClient): (oAuthAppId: string) => Promise<OAuthApp & {
753
773
  allowedRedirectUris: string[];
754
774
  allowedRedirectDomains: string[];
775
+ applicationType: OAuthAppType;
755
776
  }>;
756
777
  declare function updateOAuthApp(httpClient: HttpClient): (_id: string | null, oAuthApp: UpdateOAuthApp) => Promise<OAuthApp & {
757
778
  allowedRedirectUris: string[];
758
779
  allowedRedirectDomains: string[];
780
+ applicationType: OAuthAppType;
759
781
  }>;
760
782
  declare function queryOAuthApps(httpClient: HttpClient): () => OAuthAppsQueryBuilder;
761
783
  declare const onOAuthAppCreated: EventDefinition<OAuthAppCreatedEnvelope, "wix.headless.v1.o_auth_app_created">;
@@ -798,6 +820,8 @@ type index_d_NamespaceChanged = NamespaceChanged;
798
820
  type index_d_OAuthApp = OAuthApp;
799
821
  type index_d_OAuthAppCreatedEnvelope = OAuthAppCreatedEnvelope;
800
822
  type index_d_OAuthAppDeletedEnvelope = OAuthAppDeletedEnvelope;
823
+ type index_d_OAuthAppType = OAuthAppType;
824
+ declare const index_d_OAuthAppType: typeof OAuthAppType;
801
825
  type index_d_OAuthAppUpdatedEnvelope = OAuthAppUpdatedEnvelope;
802
826
  type index_d_OAuthAppsQueryBuilder = OAuthAppsQueryBuilder;
803
827
  type index_d_OAuthAppsQueryResult = OAuthAppsQueryResult;
@@ -844,7 +868,7 @@ declare const index_d_onOAuthAppUpdated: typeof onOAuthAppUpdated;
844
868
  declare const index_d_queryOAuthApps: typeof queryOAuthApps;
845
869
  declare const index_d_updateOAuthApp: typeof updateOAuthApp;
846
870
  declare namespace index_d {
847
- export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateOAuthAppRequest as CreateOAuthAppRequest, type index_d_CreateOAuthAppResponse as CreateOAuthAppResponse, type index_d_CreateOAuthAppResponseNonNullableFields as CreateOAuthAppResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteOAuthAppRequest as DeleteOAuthAppRequest, type index_d_DeleteOAuthAppResponse as DeleteOAuthAppResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateOAuthAppSecretRequest as GenerateOAuthAppSecretRequest, type index_d_GenerateOAuthAppSecretResponse as GenerateOAuthAppSecretResponse, type index_d_GetOAuthAppRequest as GetOAuthAppRequest, type index_d_GetOAuthAppResponse as GetOAuthAppResponse, type index_d_GetOAuthAppResponseNonNullableFields as GetOAuthAppResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_OAuthApp as OAuthApp, type index_d_OAuthAppCreatedEnvelope as OAuthAppCreatedEnvelope, type index_d_OAuthAppDeletedEnvelope as OAuthAppDeletedEnvelope, type index_d_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type index_d_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type index_d_OAuthAppsQueryResult as OAuthAppsQueryResult, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_PlatformQuery as PlatformQuery, type index_d_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type index_d_QueryOAuthAppsRequest as QueryOAuthAppsRequest, type index_d_QueryOAuthAppsResponse as QueryOAuthAppsResponse, type index_d_QueryOAuthAppsResponseNonNullableFields as QueryOAuthAppsResponseNonNullableFields, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateOAuthApp as UpdateOAuthApp, type index_d_UpdateOAuthAppRequest as UpdateOAuthAppRequest, type index_d_UpdateOAuthAppResponse as UpdateOAuthAppResponse, type index_d_UpdateOAuthAppResponseNonNullableFields as UpdateOAuthAppResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createOAuthApp as createOAuthApp, index_d_getOAuthApp as getOAuthApp, index_d_onOAuthAppCreated as onOAuthAppCreated, index_d_onOAuthAppDeleted as onOAuthAppDeleted, index_d_onOAuthAppUpdated as onOAuthAppUpdated, index_d_queryOAuthApps as queryOAuthApps, index_d_updateOAuthApp as updateOAuthApp };
871
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateOAuthAppRequest as CreateOAuthAppRequest, type index_d_CreateOAuthAppResponse as CreateOAuthAppResponse, type index_d_CreateOAuthAppResponseNonNullableFields as CreateOAuthAppResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteOAuthAppRequest as DeleteOAuthAppRequest, type index_d_DeleteOAuthAppResponse as DeleteOAuthAppResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateOAuthAppSecretRequest as GenerateOAuthAppSecretRequest, type index_d_GenerateOAuthAppSecretResponse as GenerateOAuthAppSecretResponse, type index_d_GetOAuthAppRequest as GetOAuthAppRequest, type index_d_GetOAuthAppResponse as GetOAuthAppResponse, type index_d_GetOAuthAppResponseNonNullableFields as GetOAuthAppResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_OAuthApp as OAuthApp, type index_d_OAuthAppCreatedEnvelope as OAuthAppCreatedEnvelope, type index_d_OAuthAppDeletedEnvelope as OAuthAppDeletedEnvelope, index_d_OAuthAppType as OAuthAppType, type index_d_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type index_d_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type index_d_OAuthAppsQueryResult as OAuthAppsQueryResult, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_PlatformQuery as PlatformQuery, type index_d_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type index_d_QueryOAuthAppsRequest as QueryOAuthAppsRequest, type index_d_QueryOAuthAppsResponse as QueryOAuthAppsResponse, type index_d_QueryOAuthAppsResponseNonNullableFields as QueryOAuthAppsResponseNonNullableFields, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateOAuthApp as UpdateOAuthApp, type index_d_UpdateOAuthAppRequest as UpdateOAuthAppRequest, type index_d_UpdateOAuthAppResponse as UpdateOAuthAppResponse, type index_d_UpdateOAuthAppResponseNonNullableFields as UpdateOAuthAppResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createOAuthApp as createOAuthApp, index_d_getOAuthApp as getOAuthApp, index_d_onOAuthAppCreated as onOAuthAppCreated, index_d_onOAuthAppDeleted as onOAuthAppDeleted, index_d_onOAuthAppUpdated as onOAuthAppUpdated, index_d_queryOAuthApps as queryOAuthApps, index_d_updateOAuthApp as updateOAuthApp };
848
872
  }
849
873
 
850
874
  export { index_d as oAuthApps };
@@ -44,6 +44,19 @@ interface OAuthApp$1 {
44
44
  allowSecretGeneration?: boolean | null;
45
45
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
46
46
  logoutUrl?: string | null;
47
+ /** OAuth application type. */
48
+ applicationType?: OAuthAppType$1;
49
+ }
50
+ /** OAuth application type. */
51
+ declare enum OAuthAppType$1 {
52
+ /** OAuth app type is not specified. */
53
+ OAUTH_APP_TYPE_UNSPECIFIED = "OAUTH_APP_TYPE_UNSPECIFIED",
54
+ /** OAuth app type is a web application. */
55
+ WEB_APP = "WEB_APP",
56
+ /** OAuth app type is a mobile application. */
57
+ MOBILE = "MOBILE",
58
+ /** OAuth app type is some other type of application. */
59
+ OTHER = "OTHER"
47
60
  }
48
61
  interface CreateOAuthAppRequest$1 {
49
62
  /** OAuth app to create. */
@@ -156,6 +169,7 @@ interface CreateOAuthAppResponseNonNullableFields$1 {
156
169
  allowedDomains: string[];
157
170
  allowedRedirectUris: string[];
158
171
  allowedRedirectDomains: string[];
172
+ applicationType: OAuthAppType$1;
159
173
  };
160
174
  }
161
175
  interface GetOAuthAppResponseNonNullableFields$1 {
@@ -163,6 +177,7 @@ interface GetOAuthAppResponseNonNullableFields$1 {
163
177
  allowedDomains: string[];
164
178
  allowedRedirectUris: string[];
165
179
  allowedRedirectDomains: string[];
180
+ applicationType: OAuthAppType$1;
166
181
  };
167
182
  }
168
183
  interface UpdateOAuthAppResponseNonNullableFields$1 {
@@ -170,6 +185,7 @@ interface UpdateOAuthAppResponseNonNullableFields$1 {
170
185
  allowedDomains: string[];
171
186
  allowedRedirectUris: string[];
172
187
  allowedRedirectDomains: string[];
188
+ applicationType: OAuthAppType$1;
173
189
  };
174
190
  }
175
191
  interface QueryOAuthAppsResponseNonNullableFields$1 {
@@ -177,6 +193,7 @@ interface QueryOAuthAppsResponseNonNullableFields$1 {
177
193
  allowedDomains: string[];
178
194
  allowedRedirectUris: string[];
179
195
  allowedRedirectDomains: string[];
196
+ applicationType: OAuthAppType$1;
180
197
  }[];
181
198
  }
182
199
 
@@ -226,6 +243,19 @@ interface OAuthApp {
226
243
  allowSecretGeneration?: boolean | null;
227
244
  /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
228
245
  logoutUrl?: string | null;
246
+ /** OAuth application type. */
247
+ applicationType?: OAuthAppType;
248
+ }
249
+ /** OAuth application type. */
250
+ declare enum OAuthAppType {
251
+ /** OAuth app type is not specified. */
252
+ OAUTH_APP_TYPE_UNSPECIFIED = "OAUTH_APP_TYPE_UNSPECIFIED",
253
+ /** OAuth app type is a web application. */
254
+ WEB_APP = "WEB_APP",
255
+ /** OAuth app type is a mobile application. */
256
+ MOBILE = "MOBILE",
257
+ /** OAuth app type is some other type of application. */
258
+ OTHER = "OTHER"
229
259
  }
230
260
  interface CreateOAuthAppRequest {
231
261
  /** OAuth app to create. */
@@ -337,24 +367,28 @@ interface CreateOAuthAppResponseNonNullableFields {
337
367
  oAuthApp?: {
338
368
  allowedRedirectUris: string[];
339
369
  allowedRedirectDomains: string[];
370
+ applicationType: OAuthAppType;
340
371
  };
341
372
  }
342
373
  interface GetOAuthAppResponseNonNullableFields {
343
374
  oAuthApp?: {
344
375
  allowedRedirectUris: string[];
345
376
  allowedRedirectDomains: string[];
377
+ applicationType: OAuthAppType;
346
378
  };
347
379
  }
348
380
  interface UpdateOAuthAppResponseNonNullableFields {
349
381
  oAuthApp?: {
350
382
  allowedRedirectUris: string[];
351
383
  allowedRedirectDomains: string[];
384
+ applicationType: OAuthAppType;
352
385
  };
353
386
  }
354
387
  interface QueryOAuthAppsResponseNonNullableFields {
355
388
  oAuthApps: {
356
389
  allowedRedirectUris: string[];
357
390
  allowedRedirectDomains: string[];
391
+ applicationType: OAuthAppType;
358
392
  }[];
359
393
  }
360
394