@wix/auth-management 1.0.36 → 1.0.38
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.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/auth-management_o-auth-apps": "1.0.
|
|
24
|
+
"@wix/auth-management_o-auth-apps": "1.0.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"glob": "^10.4.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "16861a134bb2bca9a6a37d88301bd70445214272cab9669f35e351d7"
|
|
50
50
|
}
|
|
@@ -12,6 +12,10 @@ type Host<Environment = unknown> = {
|
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
14
14
|
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the environment, use for logging
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
15
19
|
/**
|
|
16
20
|
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
17
21
|
*/
|
|
@@ -63,16 +67,16 @@ type APIMetadata = {
|
|
|
63
67
|
packageName?: string;
|
|
64
68
|
};
|
|
65
69
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition
|
|
70
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
67
71
|
__type: 'event-definition';
|
|
68
72
|
type: Type;
|
|
69
73
|
isDomainEvent?: boolean;
|
|
70
74
|
transformations?: (envelope: unknown) => Payload;
|
|
71
75
|
__payload: Payload;
|
|
72
76
|
};
|
|
73
|
-
declare function EventDefinition
|
|
74
|
-
type EventHandler
|
|
75
|
-
type BuildEventDefinition
|
|
77
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
78
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
79
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
76
80
|
|
|
77
81
|
type ServicePluginMethodInput = {
|
|
78
82
|
request: any;
|
|
@@ -271,6 +275,72 @@ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends Excep
|
|
|
271
275
|
? Partial<Record<KeysType, never>>
|
|
272
276
|
: {});
|
|
273
277
|
|
|
278
|
+
/**
|
|
279
|
+
Returns a boolean for whether the given type is `never`.
|
|
280
|
+
|
|
281
|
+
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
|
|
282
|
+
@link https://stackoverflow.com/a/53984913/10292952
|
|
283
|
+
@link https://www.zhenghao.io/posts/ts-never
|
|
284
|
+
|
|
285
|
+
Useful in type utilities, such as checking if something does not occur.
|
|
286
|
+
|
|
287
|
+
@example
|
|
288
|
+
```
|
|
289
|
+
import type {IsNever, And} from 'type-fest';
|
|
290
|
+
|
|
291
|
+
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
|
|
292
|
+
type AreStringsEqual<A extends string, B extends string> =
|
|
293
|
+
And<
|
|
294
|
+
IsNever<Exclude<A, B>> extends true ? true : false,
|
|
295
|
+
IsNever<Exclude<B, A>> extends true ? true : false
|
|
296
|
+
>;
|
|
297
|
+
|
|
298
|
+
type EndIfEqual<I extends string, O extends string> =
|
|
299
|
+
AreStringsEqual<I, O> extends true
|
|
300
|
+
? never
|
|
301
|
+
: void;
|
|
302
|
+
|
|
303
|
+
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
|
|
304
|
+
if (input === output) {
|
|
305
|
+
process.exit(0);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
endIfEqual('abc', 'abc');
|
|
310
|
+
//=> never
|
|
311
|
+
|
|
312
|
+
endIfEqual('abc', '123');
|
|
313
|
+
//=> void
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
@category Type Guard
|
|
317
|
+
@category Utilities
|
|
318
|
+
*/
|
|
319
|
+
type IsNever<T> = [T] extends [never] ? true : false;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
An if-else-like type that resolves depending on whether the given type is `never`.
|
|
323
|
+
|
|
324
|
+
@see {@link IsNever}
|
|
325
|
+
|
|
326
|
+
@example
|
|
327
|
+
```
|
|
328
|
+
import type {IfNever} from 'type-fest';
|
|
329
|
+
|
|
330
|
+
type ShouldBeTrue = IfNever<never>;
|
|
331
|
+
//=> true
|
|
332
|
+
|
|
333
|
+
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
|
|
334
|
+
//=> 'bar'
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
@category Type Guard
|
|
338
|
+
@category Utilities
|
|
339
|
+
*/
|
|
340
|
+
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
|
|
341
|
+
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
|
|
342
|
+
);
|
|
343
|
+
|
|
274
344
|
/**
|
|
275
345
|
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
276
346
|
|
|
@@ -303,21 +373,19 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
|
303
373
|
|
|
304
374
|
@category Object
|
|
305
375
|
*/
|
|
306
|
-
type ConditionalKeys<Base, Condition> =
|
|
307
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
376
|
+
type ConditionalKeys<Base, Condition> =
|
|
308
377
|
{
|
|
309
378
|
// Map through all the keys of the given base type.
|
|
310
|
-
[Key in keyof Base]
|
|
379
|
+
[Key in keyof Base]-?:
|
|
311
380
|
// Pick only keys with types extending the given `Condition` type.
|
|
312
381
|
Base[Key] extends Condition
|
|
313
|
-
// Retain this key
|
|
314
|
-
|
|
382
|
+
// Retain this key
|
|
383
|
+
// If the value for the key extends never, only include it if `Condition` also extends never
|
|
384
|
+
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
|
|
315
385
|
// Discard this key since the condition fails.
|
|
316
386
|
: never;
|
|
317
|
-
|
|
318
387
|
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
319
|
-
}[keyof Base]
|
|
320
|
-
>;
|
|
388
|
+
}[keyof Base];
|
|
321
389
|
|
|
322
390
|
/**
|
|
323
391
|
Exclude keys from a shape that matches the given `Condition`.
|
|
@@ -367,7 +435,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
435
|
* can either be a REST module or a host module.
|
|
368
436
|
* This type is recursive, so it can describe nested modules.
|
|
369
437
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition
|
|
438
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
371
439
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
440
|
};
|
|
373
441
|
/**
|
|
@@ -380,7 +448,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
448
|
done: T;
|
|
381
449
|
recurse: T extends {
|
|
382
450
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition
|
|
451
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
452
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
453
|
-1,
|
|
386
454
|
0,
|
|
@@ -419,7 +487,7 @@ interface OAuthApp {
|
|
|
419
487
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
420
488
|
* @readonly
|
|
421
489
|
*/
|
|
422
|
-
_createdDate?: Date;
|
|
490
|
+
_createdDate?: Date | null;
|
|
423
491
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
424
492
|
name?: string | null;
|
|
425
493
|
/** Description of the OAuth app, as it appears in the dashboard. */
|
|
@@ -648,7 +716,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
648
716
|
version?: string;
|
|
649
717
|
/** A timestamp of the event. */
|
|
650
718
|
timestamp?: string;
|
|
651
|
-
/**
|
|
719
|
+
/**
|
|
720
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
721
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
722
|
+
*/
|
|
652
723
|
assets?: Asset[];
|
|
653
724
|
}
|
|
654
725
|
/** @oneof */
|
|
@@ -790,7 +861,16 @@ declare enum Namespace {
|
|
|
790
861
|
* There's a blank site behind the scene but it's blank).
|
|
791
862
|
* The Mobile company will be the owner of this namespace.
|
|
792
863
|
*/
|
|
793
|
-
BRANDED_FIRST = "BRANDED_FIRST"
|
|
864
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
865
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
866
|
+
NOWNIA = "NOWNIA",
|
|
867
|
+
/**
|
|
868
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
869
|
+
* The Partners company owns this namespace.
|
|
870
|
+
*/
|
|
871
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
872
|
+
/** Codux Headless Sites */
|
|
873
|
+
CODUX = "CODUX"
|
|
794
874
|
}
|
|
795
875
|
/** Site transferred to another user. */
|
|
796
876
|
interface SiteTransferred {
|
|
@@ -806,7 +886,7 @@ interface SiteDeleted {
|
|
|
806
886
|
}
|
|
807
887
|
interface DeleteContext {
|
|
808
888
|
/** When the meta site was deleted. */
|
|
809
|
-
dateDeleted?: Date;
|
|
889
|
+
dateDeleted?: Date | null;
|
|
810
890
|
/** A status. */
|
|
811
891
|
deleteStatus?: DeleteStatus;
|
|
812
892
|
/** A reason (flow). */
|
|
@@ -843,6 +923,8 @@ interface ServiceProvisioned {
|
|
|
843
923
|
originInstanceId?: string;
|
|
844
924
|
/** A version. */
|
|
845
925
|
version?: string | null;
|
|
926
|
+
/** The origin meta site id */
|
|
927
|
+
originMetaSiteId?: string | null;
|
|
846
928
|
}
|
|
847
929
|
interface ServiceRemoved {
|
|
848
930
|
/** Either UUID or EmbeddedServiceType. */
|
|
@@ -905,8 +987,8 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
905
987
|
slug?: string;
|
|
906
988
|
/** ID of the entity associated with the event. */
|
|
907
989
|
entityId?: string;
|
|
908
|
-
/** Event timestamp. */
|
|
909
|
-
eventTime?: Date;
|
|
990
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
991
|
+
eventTime?: Date | null;
|
|
910
992
|
/**
|
|
911
993
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
912
994
|
* (for example, GDPR).
|
|
@@ -934,6 +1016,9 @@ interface DomainEventBodyOneOf {
|
|
|
934
1016
|
interface EntityCreatedEvent {
|
|
935
1017
|
entity?: string;
|
|
936
1018
|
}
|
|
1019
|
+
interface RestoreInfo {
|
|
1020
|
+
deletedDate?: Date | null;
|
|
1021
|
+
}
|
|
937
1022
|
interface EntityUpdatedEvent {
|
|
938
1023
|
/**
|
|
939
1024
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -1035,8 +1120,8 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
1035
1120
|
slug?: string;
|
|
1036
1121
|
/** ID of the entity associated with the event. */
|
|
1037
1122
|
entityId?: string;
|
|
1038
|
-
/** Event timestamp. */
|
|
1039
|
-
eventTime?: Date;
|
|
1123
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1124
|
+
eventTime?: Date | null;
|
|
1040
1125
|
/**
|
|
1041
1126
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
1042
1127
|
* (for example, GDPR).
|
|
@@ -1075,7 +1160,7 @@ interface UpdateOAuthApp {
|
|
|
1075
1160
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
1076
1161
|
* @readonly
|
|
1077
1162
|
*/
|
|
1078
|
-
_createdDate?: Date;
|
|
1163
|
+
_createdDate?: Date | null;
|
|
1079
1164
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
1080
1165
|
name?: string | null;
|
|
1081
1166
|
/** Description of the OAuth app, as it appears in the dashboard. */
|
|
@@ -1211,27 +1296,9 @@ interface QueryOAuthAppsSignature {
|
|
|
1211
1296
|
*/
|
|
1212
1297
|
(): OAuthAppsQueryBuilder;
|
|
1213
1298
|
}
|
|
1214
|
-
declare const onOAuthAppCreated$1: EventDefinition
|
|
1215
|
-
declare const onOAuthAppUpdated$1: EventDefinition
|
|
1216
|
-
declare const onOAuthAppDeleted$1: EventDefinition
|
|
1217
|
-
|
|
1218
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1219
|
-
__type: 'event-definition';
|
|
1220
|
-
type: Type;
|
|
1221
|
-
isDomainEvent?: boolean;
|
|
1222
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1223
|
-
__payload: Payload;
|
|
1224
|
-
};
|
|
1225
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1226
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1227
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1228
|
-
|
|
1229
|
-
declare global {
|
|
1230
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1231
|
-
interface SymbolConstructor {
|
|
1232
|
-
readonly observable: symbol;
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1299
|
+
declare const onOAuthAppCreated$1: EventDefinition<OAuthAppCreatedEnvelope, "wix.headless.v1.o_auth_app_created">;
|
|
1300
|
+
declare const onOAuthAppUpdated$1: EventDefinition<OAuthAppUpdatedEnvelope, "wix.headless.v1.o_auth_app_updated">;
|
|
1301
|
+
declare const onOAuthAppDeleted$1: EventDefinition<OAuthAppDeletedEnvelope, "wix.headless.v1.o_auth_app_deleted">;
|
|
1235
1302
|
|
|
1236
1303
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1237
1304
|
|
|
@@ -1309,6 +1376,7 @@ type context_PlatformQueryPagingMethodOneOf = PlatformQueryPagingMethodOneOf;
|
|
|
1309
1376
|
type context_QueryOAuthAppsRequest = QueryOAuthAppsRequest;
|
|
1310
1377
|
type context_QueryOAuthAppsResponse = QueryOAuthAppsResponse;
|
|
1311
1378
|
type context_QueryOAuthAppsResponseNonNullableFields = QueryOAuthAppsResponseNonNullableFields;
|
|
1379
|
+
type context_RestoreInfo = RestoreInfo;
|
|
1312
1380
|
type context_ServiceProvisioned = ServiceProvisioned;
|
|
1313
1381
|
type context_ServiceRemoved = ServiceRemoved;
|
|
1314
1382
|
type context_SiteCreated = SiteCreated;
|
|
@@ -1347,7 +1415,7 @@ declare const context_onOAuthAppUpdated: typeof onOAuthAppUpdated;
|
|
|
1347
1415
|
declare const context_queryOAuthApps: typeof queryOAuthApps;
|
|
1348
1416
|
declare const context_updateOAuthApp: typeof updateOAuthApp;
|
|
1349
1417
|
declare namespace context {
|
|
1350
|
-
export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateOAuthAppRequest as CreateOAuthAppRequest, type context_CreateOAuthAppResponse as CreateOAuthAppResponse, type context_CreateOAuthAppResponseNonNullableFields as CreateOAuthAppResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DeleteContext as DeleteContext, type context_DeleteOAuthAppRequest as DeleteOAuthAppRequest, type context_DeleteOAuthAppResponse as DeleteOAuthAppResponse, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateOAuthAppSecretRequest as GenerateOAuthAppSecretRequest, type context_GenerateOAuthAppSecretResponse as GenerateOAuthAppSecretResponse, type context_GetOAuthAppRequest as GetOAuthAppRequest, type context_GetOAuthAppResponse as GetOAuthAppResponse, type context_GetOAuthAppResponseNonNullableFields as GetOAuthAppResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, type context_OAuthApp as OAuthApp, type context_OAuthAppCreatedEnvelope as OAuthAppCreatedEnvelope, type context_OAuthAppDeletedEnvelope as OAuthAppDeletedEnvelope, type context_OAuthAppNonNullableFields as OAuthAppNonNullableFields, context_OAuthAppType as OAuthAppType, type context_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type context_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type context_OAuthAppsQueryResult as OAuthAppsQueryResult, context_OAuthTechnologies as OAuthTechnologies, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, type context_PlatformQuery as PlatformQuery, type context_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type context_QueryOAuthAppsRequest as QueryOAuthAppsRequest, type context_QueryOAuthAppsResponse as QueryOAuthAppsResponse, type context_QueryOAuthAppsResponseNonNullableFields as QueryOAuthAppsResponseNonNullableFields, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateOAuthApp as UpdateOAuthApp, type context_UpdateOAuthAppRequest as UpdateOAuthAppRequest, type context_UpdateOAuthAppResponse as UpdateOAuthAppResponse, type context_UpdateOAuthAppResponseNonNullableFields as UpdateOAuthAppResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnOAuthAppCreatedType as _publicOnOAuthAppCreatedType, type context__publicOnOAuthAppDeletedType as _publicOnOAuthAppDeletedType, type context__publicOnOAuthAppUpdatedType as _publicOnOAuthAppUpdatedType, context_createOAuthApp as createOAuthApp, context_getOAuthApp as getOAuthApp, context_onOAuthAppCreated as onOAuthAppCreated, context_onOAuthAppDeleted as onOAuthAppDeleted, context_onOAuthAppUpdated as onOAuthAppUpdated, onOAuthAppCreated$1 as publicOnOAuthAppCreated, onOAuthAppDeleted$1 as publicOnOAuthAppDeleted, onOAuthAppUpdated$1 as publicOnOAuthAppUpdated, context_queryOAuthApps as queryOAuthApps, context_updateOAuthApp as updateOAuthApp };
|
|
1418
|
+
export { type context_ActionEvent as ActionEvent, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateOAuthAppRequest as CreateOAuthAppRequest, type context_CreateOAuthAppResponse as CreateOAuthAppResponse, type context_CreateOAuthAppResponseNonNullableFields as CreateOAuthAppResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DeleteContext as DeleteContext, type context_DeleteOAuthAppRequest as DeleteOAuthAppRequest, type context_DeleteOAuthAppResponse as DeleteOAuthAppResponse, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateOAuthAppSecretRequest as GenerateOAuthAppSecretRequest, type context_GenerateOAuthAppSecretResponse as GenerateOAuthAppSecretResponse, type context_GetOAuthAppRequest as GetOAuthAppRequest, type context_GetOAuthAppResponse as GetOAuthAppResponse, type context_GetOAuthAppResponseNonNullableFields as GetOAuthAppResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, type context_OAuthApp as OAuthApp, type context_OAuthAppCreatedEnvelope as OAuthAppCreatedEnvelope, type context_OAuthAppDeletedEnvelope as OAuthAppDeletedEnvelope, type context_OAuthAppNonNullableFields as OAuthAppNonNullableFields, context_OAuthAppType as OAuthAppType, type context_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type context_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type context_OAuthAppsQueryResult as OAuthAppsQueryResult, context_OAuthTechnologies as OAuthTechnologies, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, type context_PlatformQuery as PlatformQuery, type context_PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOf, type context_QueryOAuthAppsRequest as QueryOAuthAppsRequest, type context_QueryOAuthAppsResponse as QueryOAuthAppsResponse, type context_QueryOAuthAppsResponseNonNullableFields as QueryOAuthAppsResponseNonNullableFields, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_UpdateOAuthApp as UpdateOAuthApp, type context_UpdateOAuthAppRequest as UpdateOAuthAppRequest, type context_UpdateOAuthAppResponse as UpdateOAuthAppResponse, type context_UpdateOAuthAppResponseNonNullableFields as UpdateOAuthAppResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnOAuthAppCreatedType as _publicOnOAuthAppCreatedType, type context__publicOnOAuthAppDeletedType as _publicOnOAuthAppDeletedType, type context__publicOnOAuthAppUpdatedType as _publicOnOAuthAppUpdatedType, context_createOAuthApp as createOAuthApp, context_getOAuthApp as getOAuthApp, context_onOAuthAppCreated as onOAuthAppCreated, context_onOAuthAppDeleted as onOAuthAppDeleted, context_onOAuthAppUpdated as onOAuthAppUpdated, onOAuthAppCreated$1 as publicOnOAuthAppCreated, onOAuthAppDeleted$1 as publicOnOAuthAppDeleted, onOAuthAppUpdated$1 as publicOnOAuthAppUpdated, context_queryOAuthApps as queryOAuthApps, context_updateOAuthApp as updateOAuthApp };
|
|
1351
1419
|
}
|
|
1352
1420
|
|
|
1353
1421
|
export { context as oAuthApps };
|
|
@@ -12,6 +12,10 @@ type Host<Environment = unknown> = {
|
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
14
14
|
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Optional name of the environment, use for logging
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
15
19
|
/**
|
|
16
20
|
* Optional bast url to use for API requests, for example `www.wixapis.com`
|
|
17
21
|
*/
|
|
@@ -63,16 +67,16 @@ type APIMetadata = {
|
|
|
63
67
|
packageName?: string;
|
|
64
68
|
};
|
|
65
69
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition
|
|
70
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
67
71
|
__type: 'event-definition';
|
|
68
72
|
type: Type;
|
|
69
73
|
isDomainEvent?: boolean;
|
|
70
74
|
transformations?: (envelope: unknown) => Payload;
|
|
71
75
|
__payload: Payload;
|
|
72
76
|
};
|
|
73
|
-
declare function EventDefinition
|
|
74
|
-
type EventHandler
|
|
75
|
-
type BuildEventDefinition
|
|
77
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
78
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
79
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
76
80
|
|
|
77
81
|
type ServicePluginMethodInput = {
|
|
78
82
|
request: any;
|
|
@@ -271,6 +275,72 @@ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends Excep
|
|
|
271
275
|
? Partial<Record<KeysType, never>>
|
|
272
276
|
: {});
|
|
273
277
|
|
|
278
|
+
/**
|
|
279
|
+
Returns a boolean for whether the given type is `never`.
|
|
280
|
+
|
|
281
|
+
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
|
|
282
|
+
@link https://stackoverflow.com/a/53984913/10292952
|
|
283
|
+
@link https://www.zhenghao.io/posts/ts-never
|
|
284
|
+
|
|
285
|
+
Useful in type utilities, such as checking if something does not occur.
|
|
286
|
+
|
|
287
|
+
@example
|
|
288
|
+
```
|
|
289
|
+
import type {IsNever, And} from 'type-fest';
|
|
290
|
+
|
|
291
|
+
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
|
|
292
|
+
type AreStringsEqual<A extends string, B extends string> =
|
|
293
|
+
And<
|
|
294
|
+
IsNever<Exclude<A, B>> extends true ? true : false,
|
|
295
|
+
IsNever<Exclude<B, A>> extends true ? true : false
|
|
296
|
+
>;
|
|
297
|
+
|
|
298
|
+
type EndIfEqual<I extends string, O extends string> =
|
|
299
|
+
AreStringsEqual<I, O> extends true
|
|
300
|
+
? never
|
|
301
|
+
: void;
|
|
302
|
+
|
|
303
|
+
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
|
|
304
|
+
if (input === output) {
|
|
305
|
+
process.exit(0);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
endIfEqual('abc', 'abc');
|
|
310
|
+
//=> never
|
|
311
|
+
|
|
312
|
+
endIfEqual('abc', '123');
|
|
313
|
+
//=> void
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
@category Type Guard
|
|
317
|
+
@category Utilities
|
|
318
|
+
*/
|
|
319
|
+
type IsNever<T> = [T] extends [never] ? true : false;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
An if-else-like type that resolves depending on whether the given type is `never`.
|
|
323
|
+
|
|
324
|
+
@see {@link IsNever}
|
|
325
|
+
|
|
326
|
+
@example
|
|
327
|
+
```
|
|
328
|
+
import type {IfNever} from 'type-fest';
|
|
329
|
+
|
|
330
|
+
type ShouldBeTrue = IfNever<never>;
|
|
331
|
+
//=> true
|
|
332
|
+
|
|
333
|
+
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
|
|
334
|
+
//=> 'bar'
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
@category Type Guard
|
|
338
|
+
@category Utilities
|
|
339
|
+
*/
|
|
340
|
+
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
|
|
341
|
+
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
|
|
342
|
+
);
|
|
343
|
+
|
|
274
344
|
/**
|
|
275
345
|
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
|
276
346
|
|
|
@@ -303,21 +373,19 @@ type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
|
|
303
373
|
|
|
304
374
|
@category Object
|
|
305
375
|
*/
|
|
306
|
-
type ConditionalKeys<Base, Condition> =
|
|
307
|
-
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
|
376
|
+
type ConditionalKeys<Base, Condition> =
|
|
308
377
|
{
|
|
309
378
|
// Map through all the keys of the given base type.
|
|
310
|
-
[Key in keyof Base]
|
|
379
|
+
[Key in keyof Base]-?:
|
|
311
380
|
// Pick only keys with types extending the given `Condition` type.
|
|
312
381
|
Base[Key] extends Condition
|
|
313
|
-
// Retain this key
|
|
314
|
-
|
|
382
|
+
// Retain this key
|
|
383
|
+
// If the value for the key extends never, only include it if `Condition` also extends never
|
|
384
|
+
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
|
|
315
385
|
// Discard this key since the condition fails.
|
|
316
386
|
: never;
|
|
317
|
-
|
|
318
387
|
// Convert the produced object into a union type of the keys which passed the conditional test.
|
|
319
|
-
}[keyof Base]
|
|
320
|
-
>;
|
|
388
|
+
}[keyof Base];
|
|
321
389
|
|
|
322
390
|
/**
|
|
323
391
|
Exclude keys from a shape that matches the given `Condition`.
|
|
@@ -367,7 +435,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
435
|
* can either be a REST module or a host module.
|
|
368
436
|
* This type is recursive, so it can describe nested modules.
|
|
369
437
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition
|
|
438
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
|
|
371
439
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
440
|
};
|
|
373
441
|
/**
|
|
@@ -380,7 +448,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
448
|
done: T;
|
|
381
449
|
recurse: T extends {
|
|
382
450
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition
|
|
451
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
452
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
453
|
-1,
|
|
386
454
|
0,
|
|
@@ -419,7 +487,7 @@ interface OAuthApp {
|
|
|
419
487
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
420
488
|
* @readonly
|
|
421
489
|
*/
|
|
422
|
-
_createdDate?: Date;
|
|
490
|
+
_createdDate?: Date | null;
|
|
423
491
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
424
492
|
name?: string | null;
|
|
425
493
|
/** Description of the OAuth app, as it appears in the dashboard. */
|
|
@@ -648,7 +716,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
648
716
|
version?: string;
|
|
649
717
|
/** A timestamp of the event. */
|
|
650
718
|
timestamp?: string;
|
|
651
|
-
/**
|
|
719
|
+
/**
|
|
720
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
721
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
722
|
+
*/
|
|
652
723
|
assets?: Asset[];
|
|
653
724
|
}
|
|
654
725
|
/** @oneof */
|
|
@@ -790,7 +861,16 @@ declare enum Namespace {
|
|
|
790
861
|
* There's a blank site behind the scene but it's blank).
|
|
791
862
|
* The Mobile company will be the owner of this namespace.
|
|
792
863
|
*/
|
|
793
|
-
BRANDED_FIRST = "BRANDED_FIRST"
|
|
864
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
865
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
866
|
+
NOWNIA = "NOWNIA",
|
|
867
|
+
/**
|
|
868
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
869
|
+
* The Partners company owns this namespace.
|
|
870
|
+
*/
|
|
871
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
872
|
+
/** Codux Headless Sites */
|
|
873
|
+
CODUX = "CODUX"
|
|
794
874
|
}
|
|
795
875
|
/** Site transferred to another user. */
|
|
796
876
|
interface SiteTransferred {
|
|
@@ -806,7 +886,7 @@ interface SiteDeleted {
|
|
|
806
886
|
}
|
|
807
887
|
interface DeleteContext {
|
|
808
888
|
/** When the meta site was deleted. */
|
|
809
|
-
dateDeleted?: Date;
|
|
889
|
+
dateDeleted?: Date | null;
|
|
810
890
|
/** A status. */
|
|
811
891
|
deleteStatus?: DeleteStatus;
|
|
812
892
|
/** A reason (flow). */
|
|
@@ -843,6 +923,8 @@ interface ServiceProvisioned {
|
|
|
843
923
|
originInstanceId?: string;
|
|
844
924
|
/** A version. */
|
|
845
925
|
version?: string | null;
|
|
926
|
+
/** The origin meta site id */
|
|
927
|
+
originMetaSiteId?: string | null;
|
|
846
928
|
}
|
|
847
929
|
interface ServiceRemoved {
|
|
848
930
|
/** Either UUID or EmbeddedServiceType. */
|
|
@@ -905,8 +987,8 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
905
987
|
slug?: string;
|
|
906
988
|
/** ID of the entity associated with the event. */
|
|
907
989
|
entityId?: string;
|
|
908
|
-
/** Event timestamp. */
|
|
909
|
-
eventTime?: Date;
|
|
990
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
991
|
+
eventTime?: Date | null;
|
|
910
992
|
/**
|
|
911
993
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
912
994
|
* (for example, GDPR).
|
|
@@ -934,6 +1016,9 @@ interface DomainEventBodyOneOf {
|
|
|
934
1016
|
interface EntityCreatedEvent {
|
|
935
1017
|
entity?: string;
|
|
936
1018
|
}
|
|
1019
|
+
interface RestoreInfo {
|
|
1020
|
+
deletedDate?: Date | null;
|
|
1021
|
+
}
|
|
937
1022
|
interface EntityUpdatedEvent {
|
|
938
1023
|
/**
|
|
939
1024
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -1035,8 +1120,8 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
1035
1120
|
slug?: string;
|
|
1036
1121
|
/** ID of the entity associated with the event. */
|
|
1037
1122
|
entityId?: string;
|
|
1038
|
-
/** Event timestamp. */
|
|
1039
|
-
eventTime?: Date;
|
|
1123
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1124
|
+
eventTime?: Date | null;
|
|
1040
1125
|
/**
|
|
1041
1126
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
1042
1127
|
* (for example, GDPR).
|
|
@@ -1075,7 +1160,7 @@ interface UpdateOAuthApp {
|
|
|
1075
1160
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
1076
1161
|
* @readonly
|
|
1077
1162
|
*/
|
|
1078
|
-
_createdDate?: Date;
|
|
1163
|
+
_createdDate?: Date | null;
|
|
1079
1164
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
1080
1165
|
name?: string | null;
|
|
1081
1166
|
/** Description of the OAuth app, as it appears in the dashboard. */
|
|
@@ -1211,27 +1296,9 @@ interface QueryOAuthAppsSignature {
|
|
|
1211
1296
|
*/
|
|
1212
1297
|
(): OAuthAppsQueryBuilder;
|
|
1213
1298
|
}
|
|
1214
|
-
declare const onOAuthAppCreated$1: EventDefinition
|
|
1215
|
-
declare const onOAuthAppUpdated$1: EventDefinition
|
|
1216
|
-
declare const onOAuthAppDeleted$1: EventDefinition
|
|
1217
|
-
|
|
1218
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1219
|
-
__type: 'event-definition';
|
|
1220
|
-
type: Type;
|
|
1221
|
-
isDomainEvent?: boolean;
|
|
1222
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1223
|
-
__payload: Payload;
|
|
1224
|
-
};
|
|
1225
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1226
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1227
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1228
|
-
|
|
1229
|
-
declare global {
|
|
1230
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1231
|
-
interface SymbolConstructor {
|
|
1232
|
-
readonly observable: symbol;
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1299
|
+
declare const onOAuthAppCreated$1: EventDefinition<OAuthAppCreatedEnvelope, "wix.headless.v1.o_auth_app_created">;
|
|
1300
|
+
declare const onOAuthAppUpdated$1: EventDefinition<OAuthAppUpdatedEnvelope, "wix.headless.v1.o_auth_app_updated">;
|
|
1301
|
+
declare const onOAuthAppDeleted$1: EventDefinition<OAuthAppDeletedEnvelope, "wix.headless.v1.o_auth_app_deleted">;
|
|
1235
1302
|
|
|
1236
1303
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1237
1304
|
|
|
@@ -1309,6 +1376,7 @@ type index_d_PlatformQueryPagingMethodOneOf = PlatformQueryPagingMethodOneOf;
|
|
|
1309
1376
|
type index_d_QueryOAuthAppsRequest = QueryOAuthAppsRequest;
|
|
1310
1377
|
type index_d_QueryOAuthAppsResponse = QueryOAuthAppsResponse;
|
|
1311
1378
|
type index_d_QueryOAuthAppsResponseNonNullableFields = QueryOAuthAppsResponseNonNullableFields;
|
|
1379
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
1312
1380
|
type index_d_ServiceProvisioned = ServiceProvisioned;
|
|
1313
1381
|
type index_d_ServiceRemoved = ServiceRemoved;
|
|
1314
1382
|
type index_d_SiteCreated = SiteCreated;
|
|
@@ -1347,7 +1415,7 @@ declare const index_d_onOAuthAppUpdated: typeof onOAuthAppUpdated;
|
|
|
1347
1415
|
declare const index_d_queryOAuthApps: typeof queryOAuthApps;
|
|
1348
1416
|
declare const index_d_updateOAuthApp: typeof updateOAuthApp;
|
|
1349
1417
|
declare namespace index_d {
|
|
1350
|
-
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_OAuthAppNonNullableFields as OAuthAppNonNullableFields, index_d_OAuthAppType as OAuthAppType, type index_d_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type index_d_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type index_d_OAuthAppsQueryResult as OAuthAppsQueryResult, index_d_OAuthTechnologies as OAuthTechnologies, 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, type index_d__publicOnOAuthAppCreatedType as _publicOnOAuthAppCreatedType, type index_d__publicOnOAuthAppDeletedType as _publicOnOAuthAppDeletedType, type index_d__publicOnOAuthAppUpdatedType as _publicOnOAuthAppUpdatedType, 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, onOAuthAppCreated$1 as publicOnOAuthAppCreated, onOAuthAppDeleted$1 as publicOnOAuthAppDeleted, onOAuthAppUpdated$1 as publicOnOAuthAppUpdated, index_d_queryOAuthApps as queryOAuthApps, index_d_updateOAuthApp as updateOAuthApp };
|
|
1418
|
+
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_OAuthAppNonNullableFields as OAuthAppNonNullableFields, index_d_OAuthAppType as OAuthAppType, type index_d_OAuthAppUpdatedEnvelope as OAuthAppUpdatedEnvelope, type index_d_OAuthAppsQueryBuilder as OAuthAppsQueryBuilder, type index_d_OAuthAppsQueryResult as OAuthAppsQueryResult, index_d_OAuthTechnologies as OAuthTechnologies, 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_RestoreInfo as RestoreInfo, 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, type index_d__publicOnOAuthAppCreatedType as _publicOnOAuthAppCreatedType, type index_d__publicOnOAuthAppDeletedType as _publicOnOAuthAppDeletedType, type index_d__publicOnOAuthAppUpdatedType as _publicOnOAuthAppUpdatedType, 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, onOAuthAppCreated$1 as publicOnOAuthAppCreated, onOAuthAppDeleted$1 as publicOnOAuthAppDeleted, onOAuthAppUpdated$1 as publicOnOAuthAppUpdated, index_d_queryOAuthApps as queryOAuthApps, index_d_updateOAuthApp as updateOAuthApp };
|
|
1351
1419
|
}
|
|
1352
1420
|
|
|
1353
1421
|
export { index_d as oAuthApps };
|
|
@@ -9,7 +9,7 @@ interface OAuthApp$1 {
|
|
|
9
9
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
10
10
|
* @readonly
|
|
11
11
|
*/
|
|
12
|
-
createdDate?: Date;
|
|
12
|
+
createdDate?: Date | null;
|
|
13
13
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
14
14
|
name?: string | null;
|
|
15
15
|
/** Description of the OAuth app, as it appears in the dashboard. */
|
|
@@ -218,7 +218,7 @@ interface OAuthApp {
|
|
|
218
218
|
* Date and time the OAuth app was created, in ISO 8601 format.
|
|
219
219
|
* @readonly
|
|
220
220
|
*/
|
|
221
|
-
_createdDate?: Date;
|
|
221
|
+
_createdDate?: Date | null;
|
|
222
222
|
/** Display name of the OAuth app, as it appears in the dashboard. */
|
|
223
223
|
name?: string | null;
|
|
224
224
|
/** Description of the OAuth app, as it appears in the dashboard. */
|