@wix/auto_sdk_app-management_apps 1.0.2 → 1.0.4

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.
@@ -330,6 +330,21 @@ declare enum LoginPolicy {
330
330
  }
331
331
  /** @enumType */
332
332
  type LoginPolicyWithLiterals = LoginPolicy | 'LOGIN_POLICY_UNKNOWN' | 'LOGIN_POLICY_REQUIRED' | 'LOGIN_POLICY_OPTIONAL';
333
+ interface CompanionAppOptions {
334
+ /**
335
+ * ID of the site or account that owns the companion app.
336
+ * @format GUID
337
+ */
338
+ tenantId?: string;
339
+ /** Type of tenant that owns the companion app. */
340
+ tenantType?: TenantTypeWithLiterals;
341
+ }
342
+ declare enum TenantType {
343
+ SITE = "SITE",
344
+ ACCOUNT = "ACCOUNT"
345
+ }
346
+ /** @enumType */
347
+ type TenantTypeWithLiterals = TenantType | 'SITE' | 'ACCOUNT';
333
348
  interface DomainEvent extends DomainEventBodyOneOf {
334
349
  createdEvent?: EntityCreatedEvent;
335
350
  updatedEvent?: EntityUpdatedEvent;
@@ -1173,6 +1188,19 @@ interface SetCacheableAppResponse {
1173
1188
  /** The updated app */
1174
1189
  app?: V1App;
1175
1190
  }
1191
+ interface SetCompanionAppOptionsRequest {
1192
+ /**
1193
+ * ID of the companion app to update.
1194
+ * @format GUID
1195
+ */
1196
+ appId?: string;
1197
+ /** Owning site or account of the companion app. */
1198
+ companionAppOptions?: CompanionAppOptions;
1199
+ }
1200
+ interface SetCompanionAppOptionsResponse {
1201
+ /** Updated app. */
1202
+ app?: V1App;
1203
+ }
1176
1204
  interface SetComponentsMetadataRequest {
1177
1205
  /**
1178
1206
  * App id of the app to update
@@ -1510,4 +1538,4 @@ interface CreateSecondarySecretOptions {
1510
1538
  */
1511
1539
  declare function revokeSecret(appId: string, secretToRevoke: SecretToRevokeWithLiterals): Promise<RevokeSecretResponse>;
1512
1540
 
1513
- export { type AccountInfo, Action, type ActionEvent, type ActionWithLiterals, type ActivateSecondarySecretRequest, type ActivateSecondarySecretResponse, type AddressLocation, type App, type AppChangedEvent, type AppComponentMetadata, type AppOwnerChangedEvent, type AppSecrets, type AppSlugChanged, AppType, type AppTypeWithLiterals, type AppUriMessage, type AppUrls, type AppUrlsChangedInOldServiceEvent, type AppUrlsChangedInOldServiceEventChangedUrlOneOf, type AppVersionApproved, type AppVersionArchived, type AppVersionCreated, type AppVersionDeclined, type AppVersionDraftChanged, type AppVersionPublished, type AppVersionReleased, type AppVersionStateChanged, type AppVersionStateChangedStateOneOf, type AppVersionSubmitted, type AssociateServiceAppRequest, type AssociateServiceAppResponse, type ConsentOptions, type ContactEmails, type CreateAppRequest, type CreateAppResponse, type CreateSecondarySecretOptions, type CreateSecondarySecretRequest, type CreateSecondarySecretResponse, type CreateServiceAppRequest, type CreateServiceAppResponse, type CreatedBy, CreatedByType, type CreatedByTypeWithLiterals, type CursorPaging, type Cursors, type DeleteAppRequest, type DeleteAppResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ForceCascadeDeleteAppDecision, type ForceCascadeDeleteAppDecisionWithLiterals, type ForceCascadeDeleteAppRequest, type ForceCascadeDeleteAppResponse, type GenerateSlugRequest, type GenerateSlugResponse, type GetAppOptions, type GetAppRequest, type GetAppResponse, type GetNamespaceSuggestionByNameOptions, type GetNamespaceSuggestionByNameRequest, type GetNamespaceSuggestionByNameResponse, type GetNamespaceSuggestionOptions, type GetNamespaceSuggestionRequest, type GetNamespaceSuggestionResponse, type HostAppConfig, type IdentificationData, type IdentificationDataIdOneOf, type InstallationPreferences, type InstallationPreferencesOpenButtonOptionsOneOf, LoginPolicy, type LoginPolicyWithLiterals, type MessageEnvelope, NamespaceType, type NamespaceTypeWithLiterals, OpenButtonAction, type OpenButtonActionWithLiterals, type OpenComponentId, type Paging, type PagingMetadataV2, type PartialVersionOptions, PermissionLevel, type PermissionLevelWithLiterals, type QueryAppRequest, type QueryAppResponse, type QueryV2, type QueryV2PagingMethodOneOf, RedirectTarget, type RedirectTargetWithLiterals, type RedirectUrlMessage, type RenameCodeIdentifierRequest, type RenameCodeIdentifierResponse, type RenameSlugRequest, type RenameSlugResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RevokeSecretRequest, type RevokeSecretResponse, type RollbackSecretRequest, type RollbackSecretResponse, type RotateSecretRequest, type RotateSecretResponse, SecretToRevoke, type SecretToRevokeWithLiterals, type SetAppOwnerRequest, type SetAppOwnerResponse, type SetCacheableAppRequest, type SetCacheableAppResponse, type SetCodeIdentifierRequest, type SetCodeIdentifierResponse, type SetComponentsMetadataRequest, type SetComponentsMetadataResponse, type SetExceededSizeRequest, type SetExceededSizeResponse, type SetHipaaCompliantRequest, type SetHipaaCompliantResponse, type SetNamespaceOptions, type SetNamespaceRequest, type SetNamespaceResponse, type SetOwnershipTagRequest, type SetOwnershipTagResponse, type SetPrivateAppRequest, type SetPrivateAppResponse, ShowConsentBehaviour, type ShowConsentBehaviourWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SuggestCodeIdentifierRequest, type SuggestCodeIdentifierResponse, UninstallActions, type UninstallActionsWithLiterals, type UnreleasedChanges, type UpdateApp, type UpdateAppRequest, type UpdateAppResponse, type UpdateHostAppConfigRequest, type UpdateHostAppConfigResponse, type V1App, VersionStatus, type VersionStatusWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createApp, createSecondarySecret, generateSlug, getApp, getNamespaceSuggestion, getNamespaceSuggestionByName, revokeSecret, setNamespace, updateApp };
1541
+ export { type AccountInfo, Action, type ActionEvent, type ActionWithLiterals, type ActivateSecondarySecretRequest, type ActivateSecondarySecretResponse, type AddressLocation, type App, type AppChangedEvent, type AppComponentMetadata, type AppOwnerChangedEvent, type AppSecrets, type AppSlugChanged, AppType, type AppTypeWithLiterals, type AppUriMessage, type AppUrls, type AppUrlsChangedInOldServiceEvent, type AppUrlsChangedInOldServiceEventChangedUrlOneOf, type AppVersionApproved, type AppVersionArchived, type AppVersionCreated, type AppVersionDeclined, type AppVersionDraftChanged, type AppVersionPublished, type AppVersionReleased, type AppVersionStateChanged, type AppVersionStateChangedStateOneOf, type AppVersionSubmitted, type AssociateServiceAppRequest, type AssociateServiceAppResponse, type CompanionAppOptions, type ConsentOptions, type ContactEmails, type CreateAppRequest, type CreateAppResponse, type CreateSecondarySecretOptions, type CreateSecondarySecretRequest, type CreateSecondarySecretResponse, type CreateServiceAppRequest, type CreateServiceAppResponse, type CreatedBy, CreatedByType, type CreatedByTypeWithLiterals, type CursorPaging, type Cursors, type DeleteAppRequest, type DeleteAppResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ForceCascadeDeleteAppDecision, type ForceCascadeDeleteAppDecisionWithLiterals, type ForceCascadeDeleteAppRequest, type ForceCascadeDeleteAppResponse, type GenerateSlugRequest, type GenerateSlugResponse, type GetAppOptions, type GetAppRequest, type GetAppResponse, type GetNamespaceSuggestionByNameOptions, type GetNamespaceSuggestionByNameRequest, type GetNamespaceSuggestionByNameResponse, type GetNamespaceSuggestionOptions, type GetNamespaceSuggestionRequest, type GetNamespaceSuggestionResponse, type HostAppConfig, type IdentificationData, type IdentificationDataIdOneOf, type InstallationPreferences, type InstallationPreferencesOpenButtonOptionsOneOf, LoginPolicy, type LoginPolicyWithLiterals, type MessageEnvelope, NamespaceType, type NamespaceTypeWithLiterals, OpenButtonAction, type OpenButtonActionWithLiterals, type OpenComponentId, type Paging, type PagingMetadataV2, type PartialVersionOptions, PermissionLevel, type PermissionLevelWithLiterals, type QueryAppRequest, type QueryAppResponse, type QueryV2, type QueryV2PagingMethodOneOf, RedirectTarget, type RedirectTargetWithLiterals, type RedirectUrlMessage, type RenameCodeIdentifierRequest, type RenameCodeIdentifierResponse, type RenameSlugRequest, type RenameSlugResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RevokeSecretRequest, type RevokeSecretResponse, type RollbackSecretRequest, type RollbackSecretResponse, type RotateSecretRequest, type RotateSecretResponse, SecretToRevoke, type SecretToRevokeWithLiterals, type SetAppOwnerRequest, type SetAppOwnerResponse, type SetCacheableAppRequest, type SetCacheableAppResponse, type SetCodeIdentifierRequest, type SetCodeIdentifierResponse, type SetCompanionAppOptionsRequest, type SetCompanionAppOptionsResponse, type SetComponentsMetadataRequest, type SetComponentsMetadataResponse, type SetExceededSizeRequest, type SetExceededSizeResponse, type SetHipaaCompliantRequest, type SetHipaaCompliantResponse, type SetNamespaceOptions, type SetNamespaceRequest, type SetNamespaceResponse, type SetOwnershipTagRequest, type SetOwnershipTagResponse, type SetPrivateAppRequest, type SetPrivateAppResponse, ShowConsentBehaviour, type ShowConsentBehaviourWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SuggestCodeIdentifierRequest, type SuggestCodeIdentifierResponse, TenantType, type TenantTypeWithLiterals, UninstallActions, type UninstallActionsWithLiterals, type UnreleasedChanges, type UpdateApp, type UpdateAppRequest, type UpdateAppResponse, type UpdateHostAppConfigRequest, type UpdateHostAppConfigResponse, type V1App, VersionStatus, type VersionStatusWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createApp, createSecondarySecret, generateSlug, getApp, getNamespaceSuggestion, getNamespaceSuggestionByName, revokeSecret, setNamespace, updateApp };
@@ -34,6 +34,7 @@ __export(index_typings_exports, {
34
34
  ShowConsentBehaviour: () => ShowConsentBehaviour,
35
35
  SortOrder: () => SortOrder,
36
36
  Status: () => Status,
37
+ TenantType: () => TenantType,
37
38
  UninstallActions: () => UninstallActions,
38
39
  VersionStatus: () => VersionStatus,
39
40
  WebhookIdentityType: () => WebhookIdentityType,
@@ -465,6 +466,11 @@ var LoginPolicy = /* @__PURE__ */ ((LoginPolicy2) => {
465
466
  LoginPolicy2["LOGIN_POLICY_OPTIONAL"] = "LOGIN_POLICY_OPTIONAL";
466
467
  return LoginPolicy2;
467
468
  })(LoginPolicy || {});
469
+ var TenantType = /* @__PURE__ */ ((TenantType2) => {
470
+ TenantType2["SITE"] = "SITE";
471
+ TenantType2["ACCOUNT"] = "ACCOUNT";
472
+ return TenantType2;
473
+ })(TenantType || {});
468
474
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
469
475
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
470
476
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -771,6 +777,7 @@ async function revokeSecret2(appId, secretToRevoke) {
771
777
  ShowConsentBehaviour,
772
778
  SortOrder,
773
779
  Status,
780
+ TenantType,
774
781
  UninstallActions,
775
782
  VersionStatus,
776
783
  WebhookIdentityType,