@wix/sdk-types 1.5.5 → 1.5.6

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/build/index.d.mts CHANGED
@@ -43,7 +43,7 @@ type AuthenticationStrategy<Host = unknown> = {
43
43
  getAuthHeaders: (host: Host) => Promise<{
44
44
  headers: Record<string, string>;
45
45
  }>;
46
- decodeJWT?: (token: string) => {
46
+ decodeJWT?: (token: string, verifyCallerClaims?: boolean) => {
47
47
  decoded: {
48
48
  data: string;
49
49
  };
@@ -61,4 +61,9 @@ type EventDefinition<Payload = unknown> = {
61
61
  __payload: Payload;
62
62
  };
63
63
 
64
- export type { APIMetadata, AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, EventDefinition, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory };
64
+ type SPIDefinition<TInput, TResult> = {
65
+ __input: TInput;
66
+ __result: TResult;
67
+ };
68
+
69
+ export type { APIMetadata, AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, EventDefinition, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory, SPIDefinition };
package/build/index.d.ts CHANGED
@@ -43,7 +43,7 @@ type AuthenticationStrategy<Host = unknown> = {
43
43
  getAuthHeaders: (host: Host) => Promise<{
44
44
  headers: Record<string, string>;
45
45
  }>;
46
- decodeJWT?: (token: string) => {
46
+ decodeJWT?: (token: string, verifyCallerClaims?: boolean) => {
47
47
  decoded: {
48
48
  data: string;
49
49
  };
@@ -61,4 +61,9 @@ type EventDefinition<Payload = unknown> = {
61
61
  __payload: Payload;
62
62
  };
63
63
 
64
- export type { APIMetadata, AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, EventDefinition, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory };
64
+ type SPIDefinition<TInput, TResult> = {
65
+ __input: TInput;
66
+ __result: TResult;
67
+ };
68
+
69
+ export type { APIMetadata, AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, EventDefinition, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory, SPIDefinition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk-types",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -57,5 +57,5 @@
57
57
  "wallaby": {
58
58
  "autoDetect": true
59
59
  },
60
- "falconPackageHash": "f0f6e376656a0fd3d11a52abee48a3221555fb592d79139151371a34"
60
+ "falconPackageHash": "413000daa6e1e75d69913de2edf89efad884bb828fc97e9482f472a3"
61
61
  }