@stytch/vanilla-js 5.5.3 → 5.5.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.
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TaggedConnection } from './TaggedConnection';
3
+ export declare const DefaultAppDetails: ({ connection: connectionProp }: {
4
+ connection: TaggedConnection;
5
+ }) => React.JSX.Element;
3
6
  export declare const AppDetails: ({ connection: connectionProp }: {
4
7
  connection: TaggedConnection;
5
8
  }) => React.JSX.Element;
@@ -6,7 +6,7 @@ export declare const requiredKeys: Set<string>;
6
6
  export interface AttributeMappingState {
7
7
  attributeMapping: Record<string, string>;
8
8
  }
9
- interface AttributeMappingTableProps<TState> extends StateProps<TState> {
9
+ export interface AttributeMappingTableProps<TState> extends StateProps<TState> {
10
10
  editing: boolean;
11
11
  }
12
12
  type AttributeMapping = {
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { TaggedConnection } from './TaggedConnection';
3
+ export declare const CreateApplication: ({ connection: connectionProp }: {
4
+ connection: TaggedConnection;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { StateProps } from '../utils/useFormState';
3
+ import { SAMLTaggedConnection } from './TaggedConnection';
4
+ import { AttributeMappingState } from './AttributeMappingTable';
5
+ export interface DetailedAttributeMappingTableProps<TState> extends StateProps<TState> {
6
+ connection: SAMLTaggedConnection;
7
+ }
8
+ export declare const DetailedAttributeMappingTable: <TState extends AttributeMappingState>({ connection: connectionProp, localState, setLocalState, remoteState, }: DetailedAttributeMappingTableProps<TState>) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
@@ -4,11 +4,16 @@ import { ExternalTaggedConnection, OIDCTaggedConnection, SAMLTaggedConnection, T
4
4
  export type SamlKnownIdp = 'generic' | 'okta' | 'microsoft-entra' | 'google-workspace';
5
5
  export type OidcKnownIdp = 'generic' | 'okta' | 'microsoft-entra';
6
6
  export type KnownIdp = SamlKnownIdp | OidcKnownIdp;
7
- export type SamlSetupStep = 'copyToIdp' | 'copyFromIdp' | 'attributeMapping';
7
+ export type SamlSetupStep = 'createApplication' | 'copyToIdp' | 'copyFromIdp' | 'attributeMapping';
8
8
  export type SamlIdpValue = 'ssoUrl' | 'entityId' | 'certificate';
9
- export type OidcSetupStep = 'copyToIdp' | 'copyFromIdp';
9
+ export type OidcSetupStep = 'createApplication' | 'copyToIdp' | 'copyFromIdp';
10
+ export type SamlSupportedIdp = 'okta' | 'microsoft-entra' | 'google-workspace';
11
+ export type OidcSupportedIdp = 'okta' | 'microsoft-entra';
12
+ export type SamlSupportedManualConfigurationIdp = 'microsoft-entra' | 'google-workspace';
13
+ export type SamlSupportedAttributeMappingIdp = 'okta' | 'microsoft-entra' | 'google-workspace';
10
14
  export type SamlIdpInfo = {
11
15
  displayName: string;
16
+ copyToIdpDisplayName: string;
12
17
  setupOrder: SamlSetupStep[];
13
18
  idpValueOrder: SamlIdpValue[];
14
19
  acsUrlLabel: string;
@@ -20,6 +25,7 @@ export type SamlIdpInfo = {
20
25
  nameIdFormatLabel: string;
21
26
  nameIdFormatValue: string;
22
27
  attributeMappingLabel: string;
28
+ enableConfigureButton: boolean;
23
29
  };
24
30
  interface IssuerTransformer {
25
31
  issuerDerivedLabel: string;
@@ -28,6 +34,7 @@ interface IssuerTransformer {
28
34
  }
29
35
  export type OidcIdpInfo = {
30
36
  displayName: string;
37
+ copyToIdpDisplayName: string;
31
38
  setupOrder: OidcSetupStep[];
32
39
  redirectUrlLabel: string;
33
40
  clientIdLabel: string;
@@ -37,6 +44,7 @@ export type OidcIdpInfo = {
37
44
  export declare const samlIdpMap: {
38
45
  readonly generic: {
39
46
  readonly displayName: "Custom SAML";
47
+ readonly copyToIdpDisplayName: "your IdP";
40
48
  readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
41
49
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
42
50
  readonly acsUrlLabel: "ACS URL (Reply URL)";
@@ -48,10 +56,12 @@ export declare const samlIdpMap: {
48
56
  readonly nameIdFormatLabel: "Name ID Format";
49
57
  readonly nameIdFormatValue: "Primary Email Address";
50
58
  readonly attributeMappingLabel: "Attribute Mapping";
59
+ readonly enableConfigureButton: true;
51
60
  };
52
61
  readonly 'microsoft-entra': {
53
62
  readonly displayName: "Entra SAML";
54
- readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
63
+ readonly copyToIdpDisplayName: "Entra";
64
+ readonly setupOrder: ["createApplication", "copyToIdp", "attributeMapping", "copyFromIdp"];
55
65
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
56
66
  readonly acsUrlLabel: "Reply URL (Assertion Consumer Service URL)";
57
67
  readonly audienceUriLabel: "Identifier (Entity ID)";
@@ -62,10 +72,12 @@ export declare const samlIdpMap: {
62
72
  readonly nameIdFormatLabel: "Unique User Identifier (Name ID) Format";
63
73
  readonly nameIdFormatValue: "user.primaryauthoritativeemail";
64
74
  readonly attributeMappingLabel: "Claim Names";
75
+ readonly enableConfigureButton: true;
65
76
  };
66
77
  readonly okta: {
67
78
  readonly displayName: "Okta SAML";
68
- readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
79
+ readonly copyToIdpDisplayName: "Okta";
80
+ readonly setupOrder: ["createApplication", "copyToIdp", "attributeMapping", "copyFromIdp"];
69
81
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
70
82
  readonly acsUrlLabel: "Single sign-on URL";
71
83
  readonly audienceUriLabel: "Audience URI (SP Entity ID)";
@@ -76,10 +88,12 @@ export declare const samlIdpMap: {
76
88
  readonly nameIdFormatLabel: "Name ID Format";
77
89
  readonly nameIdFormatValue: "EmailAddress";
78
90
  readonly attributeMappingLabel: "Attribute Statements";
91
+ readonly enableConfigureButton: false;
79
92
  };
80
93
  readonly 'google-workspace': {
81
94
  readonly displayName: "Google SAML";
82
- readonly setupOrder: ["copyFromIdp", "copyToIdp", "attributeMapping"];
95
+ readonly copyToIdpDisplayName: "Google";
96
+ readonly setupOrder: ["createApplication", "copyFromIdp", "copyToIdp", "attributeMapping"];
83
97
  readonly idpValueOrder: ["entityId", "ssoUrl", "certificate"];
84
98
  readonly acsUrlLabel: "ACS URL";
85
99
  readonly audienceUriLabel: "Entity ID";
@@ -90,11 +104,13 @@ export declare const samlIdpMap: {
90
104
  readonly nameIdFormatLabel: "NameID Format";
91
105
  readonly nameIdFormatValue: "EMAIL; Basic Information > Primary email";
92
106
  readonly attributeMappingLabel: "Attribute Mapping";
107
+ readonly enableConfigureButton: true;
93
108
  };
94
109
  };
95
110
  export declare const oidcIdpMap: {
96
111
  readonly generic: {
97
112
  readonly displayName: "Custom OIDC";
113
+ readonly copyToIdpDisplayName: "your IdP";
98
114
  readonly setupOrder: ["copyToIdp", "copyFromIdp"];
99
115
  readonly redirectUrlLabel: "Redirect URI";
100
116
  readonly clientIdLabel: "Client ID";
@@ -103,7 +119,8 @@ export declare const oidcIdpMap: {
103
119
  };
104
120
  readonly 'microsoft-entra': {
105
121
  readonly displayName: "Entra OIDC";
106
- readonly setupOrder: ["copyToIdp", "copyFromIdp"];
122
+ readonly copyToIdpDisplayName: "Entra";
123
+ readonly setupOrder: ["createApplication", "copyToIdp", "copyFromIdp"];
107
124
  readonly redirectUrlLabel: "Redirect URI";
108
125
  readonly clientIdLabel: "Application (Client) ID";
109
126
  readonly clientSecretLabel: "Client Secret";
@@ -114,8 +131,9 @@ export declare const oidcIdpMap: {
114
131
  };
115
132
  readonly okta: {
116
133
  readonly displayName: "Okta OIDC";
117
- readonly setupOrder: ["copyToIdp", "copyFromIdp"];
118
- readonly redirectUrlLabel: "Sign-on Redirect URI";
134
+ readonly copyToIdpDisplayName: "Okta";
135
+ readonly setupOrder: ["createApplication", "copyToIdp", "copyFromIdp"];
136
+ readonly redirectUrlLabel: "Sign-in Redirect URI";
119
137
  readonly clientIdLabel: "Client ID";
120
138
  readonly clientSecretLabel: "Client Secret";
121
139
  readonly issuerLabel: "Okta URL (Issuer)";
@@ -148,4 +166,5 @@ type IdpAndConnectionInfoReturnType<TConnectionType extends ConnectionType> = ((
148
166
  export declare const getIdpAndConnectionInfo: <TConnectionType extends ConnectionType>(connection: TaggedConnection & {
149
167
  connectionType: TConnectionType;
150
168
  }) => IdpAndConnectionInfoReturnType<TConnectionType>;
169
+ export declare const typeToUserFriendlyName: (type: ConnectionType) => string;
151
170
  export {};
@@ -2,7 +2,8 @@ export declare const idpOptions: {
2
2
  readonly 'saml:google-workspace': {
3
3
  idp: {
4
4
  readonly displayName: "Google SAML";
5
- readonly setupOrder: ["copyFromIdp", "copyToIdp", "attributeMapping"];
5
+ readonly copyToIdpDisplayName: "Google";
6
+ readonly setupOrder: ["createApplication", "copyFromIdp", "copyToIdp", "attributeMapping"];
6
7
  readonly idpValueOrder: ["entityId", "ssoUrl", "certificate"];
7
8
  readonly acsUrlLabel: "ACS URL";
8
9
  readonly audienceUriLabel: "Entity ID";
@@ -13,6 +14,7 @@ export declare const idpOptions: {
13
14
  readonly nameIdFormatLabel: "NameID Format";
14
15
  readonly nameIdFormatValue: "EMAIL; Basic Information > Primary email";
15
16
  readonly attributeMappingLabel: "Attribute Mapping";
17
+ readonly enableConfigureButton: true;
16
18
  };
17
19
  idpName: "google-workspace";
18
20
  type: "saml";
@@ -20,7 +22,8 @@ export declare const idpOptions: {
20
22
  readonly 'saml:okta': {
21
23
  idp: {
22
24
  readonly displayName: "Okta SAML";
23
- readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
25
+ readonly copyToIdpDisplayName: "Okta";
26
+ readonly setupOrder: ["createApplication", "copyToIdp", "attributeMapping", "copyFromIdp"];
24
27
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
25
28
  readonly acsUrlLabel: "Single sign-on URL";
26
29
  readonly audienceUriLabel: "Audience URI (SP Entity ID)";
@@ -31,6 +34,7 @@ export declare const idpOptions: {
31
34
  readonly nameIdFormatLabel: "Name ID Format";
32
35
  readonly nameIdFormatValue: "EmailAddress";
33
36
  readonly attributeMappingLabel: "Attribute Statements";
37
+ readonly enableConfigureButton: false;
34
38
  };
35
39
  idpName: "okta";
36
40
  type: "saml";
@@ -38,8 +42,9 @@ export declare const idpOptions: {
38
42
  readonly 'oidc:okta': {
39
43
  idp: {
40
44
  readonly displayName: "Okta OIDC";
41
- readonly setupOrder: ["copyToIdp", "copyFromIdp"];
42
- readonly redirectUrlLabel: "Sign-on Redirect URI";
45
+ readonly copyToIdpDisplayName: "Okta";
46
+ readonly setupOrder: ["createApplication", "copyToIdp", "copyFromIdp"];
47
+ readonly redirectUrlLabel: "Sign-in Redirect URI";
43
48
  readonly clientIdLabel: "Client ID";
44
49
  readonly clientSecretLabel: "Client Secret";
45
50
  readonly issuerLabel: "Okta URL (Issuer)";
@@ -50,7 +55,8 @@ export declare const idpOptions: {
50
55
  readonly 'saml:microsoft-entra': {
51
56
  idp: {
52
57
  readonly displayName: "Entra SAML";
53
- readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
58
+ readonly copyToIdpDisplayName: "Entra";
59
+ readonly setupOrder: ["createApplication", "copyToIdp", "attributeMapping", "copyFromIdp"];
54
60
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
55
61
  readonly acsUrlLabel: "Reply URL (Assertion Consumer Service URL)";
56
62
  readonly audienceUriLabel: "Identifier (Entity ID)";
@@ -61,6 +67,7 @@ export declare const idpOptions: {
61
67
  readonly nameIdFormatLabel: "Unique User Identifier (Name ID) Format";
62
68
  readonly nameIdFormatValue: "user.primaryauthoritativeemail";
63
69
  readonly attributeMappingLabel: "Claim Names";
70
+ readonly enableConfigureButton: true;
64
71
  };
65
72
  idpName: "microsoft-entra";
66
73
  type: "saml";
@@ -68,7 +75,8 @@ export declare const idpOptions: {
68
75
  readonly 'oidc:microsoft-entra': {
69
76
  idp: {
70
77
  readonly displayName: "Entra OIDC";
71
- readonly setupOrder: ["copyToIdp", "copyFromIdp"];
78
+ readonly copyToIdpDisplayName: "Entra";
79
+ readonly setupOrder: ["createApplication", "copyToIdp", "copyFromIdp"];
72
80
  readonly redirectUrlLabel: "Redirect URI";
73
81
  readonly clientIdLabel: "Application (Client) ID";
74
82
  readonly clientSecretLabel: "Client Secret";
@@ -83,6 +91,7 @@ export declare const idpOptions: {
83
91
  readonly 'saml:generic': {
84
92
  idp: {
85
93
  readonly displayName: "Custom SAML";
94
+ readonly copyToIdpDisplayName: "your IdP";
86
95
  readonly setupOrder: ["copyToIdp", "attributeMapping", "copyFromIdp"];
87
96
  readonly idpValueOrder: ["ssoUrl", "entityId", "certificate"];
88
97
  readonly acsUrlLabel: "ACS URL (Reply URL)";
@@ -94,6 +103,7 @@ export declare const idpOptions: {
94
103
  readonly nameIdFormatLabel: "Name ID Format";
95
104
  readonly nameIdFormatValue: "Primary Email Address";
96
105
  readonly attributeMappingLabel: "Attribute Mapping";
106
+ readonly enableConfigureButton: true;
97
107
  };
98
108
  idpName: "generic";
99
109
  type: "saml";
@@ -101,6 +111,7 @@ export declare const idpOptions: {
101
111
  readonly 'oidc:generic': {
102
112
  idp: {
103
113
  readonly displayName: "Custom OIDC";
114
+ readonly copyToIdpDisplayName: "your IdP";
104
115
  readonly setupOrder: ["copyToIdp", "copyFromIdp"];
105
116
  readonly redirectUrlLabel: "Redirect URI";
106
117
  readonly clientIdLabel: "Client ID";
@@ -1429,7 +1429,7 @@ var B2BOneTapProvider = /*#__PURE__*/function () {
1429
1429
  }]);
1430
1430
  return B2BOneTapProvider;
1431
1431
  }();
1432
- var version = "5.5.3";
1432
+ var version = "5.5.4";
1433
1433
  var NetworkClient = /*#__PURE__*/function () {
1434
1434
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
1435
1435
  _classCallCheck(this, NetworkClient);
@@ -1430,7 +1430,7 @@ var B2BOneTapProvider = /*#__PURE__*/function () {
1430
1430
  }]);
1431
1431
  return B2BOneTapProvider;
1432
1432
  }();
1433
- var version = "5.5.3";
1433
+ var version = "5.5.4";
1434
1434
  var NetworkClient = /*#__PURE__*/function () {
1435
1435
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
1436
1436
  _classCallCheck(this, NetworkClient);