@nangohq/types 0.42.14 → 0.42.16

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.
@@ -9,7 +9,6 @@ export type PostPublicTbaAuthorization = Endpoint<{
9
9
  };
10
10
  Querystring: {
11
11
  connection_id?: string | undefined;
12
- public_key: string;
13
12
  params?: Record<string, any> | undefined;
14
13
  hmac?: string | undefined;
15
14
  };
@@ -32,7 +31,6 @@ export type PostPublicTableauAuthorization = Endpoint<{
32
31
  };
33
32
  Querystring: {
34
33
  connection_id?: string | undefined;
35
- public_key: string;
36
34
  params?: Record<string, any> | undefined;
37
35
  hmac?: string | undefined;
38
36
  };
@@ -1,22 +1,23 @@
1
1
  import type { Endpoint } from '../api.js';
2
+ export interface ConnectSessionPayload {
3
+ allowed_integrations?: string[] | undefined;
4
+ integrations_config_defaults?: Record<string, {
5
+ connection_config: Record<string, unknown>;
6
+ }> | undefined;
7
+ end_user: {
8
+ id: string;
9
+ email: string;
10
+ display_name?: string | undefined;
11
+ };
12
+ organization?: {
13
+ id: string;
14
+ display_name?: string | undefined;
15
+ } | undefined;
16
+ }
2
17
  export type PostConnectSessions = Endpoint<{
3
18
  Method: 'POST';
4
19
  Path: '/connect/sessions';
5
- Body: {
6
- end_user: {
7
- id: string;
8
- email: string;
9
- display_name?: string | undefined;
10
- };
11
- organization?: {
12
- id: string;
13
- display_name?: string | undefined;
14
- } | undefined;
15
- allowed_integrations?: string[] | undefined;
16
- integrations_config_defaults?: Record<string, {
17
- connection_config: Record<string, unknown>;
18
- }> | undefined;
19
- };
20
+ Body: ConnectSessionPayload;
20
21
  Success: {
21
22
  data: {
22
23
  token: string;
@@ -28,21 +29,7 @@ export type GetConnectSession = Endpoint<{
28
29
  Method: 'GET';
29
30
  Path: '/connect/session';
30
31
  Success: {
31
- data: {
32
- allowed_integrations?: string[] | undefined;
33
- integrations_config_defaults?: Record<string, {
34
- connection_config: Record<string, unknown>;
35
- }> | undefined;
36
- end_user: {
37
- id: string;
38
- email: string;
39
- display_name?: string | undefined;
40
- };
41
- organization?: {
42
- id: string;
43
- display_name?: string | undefined;
44
- } | undefined;
45
- };
32
+ data: ConnectSessionPayload;
46
33
  };
47
34
  }>;
48
35
  export type DeleteConnectSession = Endpoint<{
@@ -57,6 +57,7 @@ export interface BaseProvider {
57
57
  scope_separator?: string;
58
58
  default_scopes?: string[];
59
59
  token_url?: string | TokenUrlObject;
60
+ token_url_encode?: boolean;
60
61
  token_params?: Record<string, string>;
61
62
  authorization_url_replacements?: Record<string, string>;
62
63
  redirect_uri_metadata?: string[];
package/dist/web/env.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export interface WindowEnv {
2
2
  apiUrl: string;
3
3
  publicUrl: string;
4
+ connectUrl: string;
4
5
  publicSentryKey: string;
5
6
  publicPosthogKey: string;
6
7
  publicPosthogPost: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.42.14",
3
+ "version": "0.42.16",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",