@replit/connectors 0.18.0 → 0.20.0
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/CHANGELOG.md +21 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js +8 -8
- package/client.js.map +1 -1
- package/client.mjs +8 -8
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/top-level.d.mts +234 -29
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +234 -29
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +37 -37
- package/src/resources/index.ts +7 -7
- package/src/resources/top-level.ts +640 -232
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/client.ts
CHANGED
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
ConnectorRpcResponse,
|
|
28
28
|
CreateConnectionParams,
|
|
29
29
|
CreateConnectionResponse,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
CreateConnectorConfigParams,
|
|
31
|
+
CreateConnectorConfigResponse,
|
|
32
32
|
CreateTokenParams,
|
|
33
33
|
CreateTokenResponse,
|
|
34
34
|
DeleteAssignmentParams,
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
ListConnectionsParams,
|
|
45
45
|
ListConnectionsResponse,
|
|
46
46
|
ListConnectionsResponsesOffsetPagination,
|
|
47
|
+
ListConnectorConfigsParams,
|
|
48
|
+
ListConnectorConfigsResponse,
|
|
49
|
+
ListConnectorConfigsResponsesOffsetPagination,
|
|
47
50
|
ListConnectorsParams,
|
|
48
51
|
ListConnectorsResponse,
|
|
49
52
|
ListConnectorsResponsesOffsetPagination,
|
|
50
|
-
ListConnnectorConfigsParams,
|
|
51
|
-
ListConnnectorConfigsResponse,
|
|
52
|
-
ListConnnectorConfigsResponsesOffsetPagination,
|
|
53
53
|
ListEventsParams,
|
|
54
54
|
ListEventsResponse,
|
|
55
55
|
ListEventsResponsesOffsetPagination,
|
|
@@ -59,8 +59,8 @@ import {
|
|
|
59
59
|
PreConfigureConnectorResponse,
|
|
60
60
|
PreConnectParams,
|
|
61
61
|
PreConnectResponse,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
UpsertConnectorConfigParams,
|
|
63
|
+
UpsertConnectorConfigResponse,
|
|
64
64
|
} from './resources/top-level';
|
|
65
65
|
import { APIPromise } from './core/api-promise';
|
|
66
66
|
import { type Fetch } from './internal/builtin-types';
|
|
@@ -283,10 +283,10 @@ export class Replit {
|
|
|
283
283
|
return this.post('/v2/connection', { body, ...options });
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
|
|
287
|
-
body: TopLevelAPI.
|
|
286
|
+
createConnectorConfig(
|
|
287
|
+
body: TopLevelAPI.CreateConnectorConfigParams,
|
|
288
288
|
options?: RequestOptions,
|
|
289
|
-
): APIPromise<TopLevelAPI.
|
|
289
|
+
): APIPromise<TopLevelAPI.CreateConnectorConfigResponse> {
|
|
290
290
|
return this.post('/v2/connector-config', { body, ...options });
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -370,6 +370,23 @@ export class Replit {
|
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
/**
|
|
374
|
+
* List Configured Connectors
|
|
375
|
+
*/
|
|
376
|
+
listConnectorConfigs(
|
|
377
|
+
query: TopLevelAPI.ListConnectorConfigsParams | null | undefined = {},
|
|
378
|
+
options?: RequestOptions,
|
|
379
|
+
): Pagination.PagePromise<
|
|
380
|
+
ListConnectorConfigsResponsesOffsetPagination,
|
|
381
|
+
TopLevelAPI.ListConnectorConfigsResponse
|
|
382
|
+
> {
|
|
383
|
+
return this.getAPIList(
|
|
384
|
+
'/v2/connector-config',
|
|
385
|
+
Pagination.OffsetPagination<TopLevelAPI.ListConnectorConfigsResponse>,
|
|
386
|
+
{ query, ...options },
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
373
390
|
/**
|
|
374
391
|
* List all connectors to understand what integrations are available to configure
|
|
375
392
|
*/
|
|
@@ -383,23 +400,6 @@ export class Replit {
|
|
|
383
400
|
});
|
|
384
401
|
}
|
|
385
402
|
|
|
386
|
-
/**
|
|
387
|
-
* List Configured Connectors
|
|
388
|
-
*/
|
|
389
|
-
listConnnectorConfigs(
|
|
390
|
-
query: TopLevelAPI.ListConnnectorConfigsParams | null | undefined = {},
|
|
391
|
-
options?: RequestOptions,
|
|
392
|
-
): Pagination.PagePromise<
|
|
393
|
-
ListConnnectorConfigsResponsesOffsetPagination,
|
|
394
|
-
TopLevelAPI.ListConnnectorConfigsResponse
|
|
395
|
-
> {
|
|
396
|
-
return this.getAPIList(
|
|
397
|
-
'/v2/connector-config',
|
|
398
|
-
Pagination.OffsetPagination<TopLevelAPI.ListConnnectorConfigsResponse>,
|
|
399
|
-
{ query, ...options },
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
403
|
/**
|
|
404
404
|
* List all events for an organization
|
|
405
405
|
*/
|
|
@@ -434,11 +434,11 @@ export class Replit {
|
|
|
434
434
|
return this.post('/v1/connect/pre-connect', { body, ...options });
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
|
|
437
|
+
upsertConnectorConfig(
|
|
438
438
|
id: string,
|
|
439
|
-
body: TopLevelAPI.
|
|
439
|
+
body: TopLevelAPI.UpsertConnectorConfigParams,
|
|
440
440
|
options?: RequestOptions,
|
|
441
|
-
): APIPromise<TopLevelAPI.
|
|
441
|
+
): APIPromise<TopLevelAPI.UpsertConnectorConfigResponse> {
|
|
442
442
|
return this.put(path`/v2/connector-config/${id}`, { body, ...options });
|
|
443
443
|
}
|
|
444
444
|
|
|
@@ -1010,7 +1010,7 @@ export declare namespace Replit {
|
|
|
1010
1010
|
type CheckConnectionResponse as CheckConnectionResponse,
|
|
1011
1011
|
type ConnectorRpcResponse as ConnectorRpcResponse,
|
|
1012
1012
|
type CreateConnectionResponse as CreateConnectionResponse,
|
|
1013
|
-
type
|
|
1013
|
+
type CreateConnectorConfigResponse as CreateConnectorConfigResponse,
|
|
1014
1014
|
type CreateTokenResponse as CreateTokenResponse,
|
|
1015
1015
|
type DeleteAssignmentResponse as DeleteAssignmentResponse,
|
|
1016
1016
|
type DeleteConnectionResponse as DeleteConnectionResponse,
|
|
@@ -1019,32 +1019,32 @@ export declare namespace Replit {
|
|
|
1019
1019
|
type GetConnectionResponse as GetConnectionResponse,
|
|
1020
1020
|
type ListAssignmentsResponse as ListAssignmentsResponse,
|
|
1021
1021
|
type ListConnectionsResponse as ListConnectionsResponse,
|
|
1022
|
+
type ListConnectorConfigsResponse as ListConnectorConfigsResponse,
|
|
1022
1023
|
type ListConnectorsResponse as ListConnectorsResponse,
|
|
1023
|
-
type ListConnnectorConfigsResponse as ListConnnectorConfigsResponse,
|
|
1024
1024
|
type ListEventsResponse as ListEventsResponse,
|
|
1025
1025
|
type PostConnectResponse as PostConnectResponse,
|
|
1026
1026
|
type PreConfigureConnectorResponse as PreConfigureConnectorResponse,
|
|
1027
1027
|
type PreConnectResponse as PreConnectResponse,
|
|
1028
|
-
type
|
|
1028
|
+
type UpsertConnectorConfigResponse as UpsertConnectorConfigResponse,
|
|
1029
1029
|
type ListConnectionsResponsesOffsetPagination as ListConnectionsResponsesOffsetPagination,
|
|
1030
|
+
type ListConnectorConfigsResponsesOffsetPagination as ListConnectorConfigsResponsesOffsetPagination,
|
|
1030
1031
|
type ListConnectorsResponsesOffsetPagination as ListConnectorsResponsesOffsetPagination,
|
|
1031
|
-
type ListConnnectorConfigsResponsesOffsetPagination as ListConnnectorConfigsResponsesOffsetPagination,
|
|
1032
1032
|
type ListEventsResponsesOffsetPagination as ListEventsResponsesOffsetPagination,
|
|
1033
1033
|
type AssignConnectionParams as AssignConnectionParams,
|
|
1034
1034
|
type ConnectorRpcParams as ConnectorRpcParams,
|
|
1035
1035
|
type CreateConnectionParams as CreateConnectionParams,
|
|
1036
|
-
type
|
|
1036
|
+
type CreateConnectorConfigParams as CreateConnectorConfigParams,
|
|
1037
1037
|
type CreateTokenParams as CreateTokenParams,
|
|
1038
1038
|
type DeleteAssignmentParams as DeleteAssignmentParams,
|
|
1039
1039
|
type GetConectorConfigParams as GetConectorConfigParams,
|
|
1040
1040
|
type GetConnectionParams as GetConnectionParams,
|
|
1041
1041
|
type ListConnectionsParams as ListConnectionsParams,
|
|
1042
|
+
type ListConnectorConfigsParams as ListConnectorConfigsParams,
|
|
1042
1043
|
type ListConnectorsParams as ListConnectorsParams,
|
|
1043
|
-
type ListConnnectorConfigsParams as ListConnnectorConfigsParams,
|
|
1044
1044
|
type ListEventsParams as ListEventsParams,
|
|
1045
1045
|
type PostConnectParams as PostConnectParams,
|
|
1046
1046
|
type PreConfigureConnectorParams as PreConfigureConnectorParams,
|
|
1047
1047
|
type PreConnectParams as PreConnectParams,
|
|
1048
|
-
type
|
|
1048
|
+
type UpsertConnectorConfigParams as UpsertConnectorConfigParams,
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export {
|
|
|
7
7
|
type CheckConnectionResponse,
|
|
8
8
|
type ConnectorRpcResponse,
|
|
9
9
|
type CreateConnectionResponse,
|
|
10
|
-
type
|
|
10
|
+
type CreateConnectorConfigResponse,
|
|
11
11
|
type CreateTokenResponse,
|
|
12
12
|
type DeleteAssignmentResponse,
|
|
13
13
|
type DeleteConnectionResponse,
|
|
@@ -16,31 +16,31 @@ export {
|
|
|
16
16
|
type GetConnectionResponse,
|
|
17
17
|
type ListAssignmentsResponse,
|
|
18
18
|
type ListConnectionsResponse,
|
|
19
|
+
type ListConnectorConfigsResponse,
|
|
19
20
|
type ListConnectorsResponse,
|
|
20
|
-
type ListConnnectorConfigsResponse,
|
|
21
21
|
type ListEventsResponse,
|
|
22
22
|
type PostConnectResponse,
|
|
23
23
|
type PreConfigureConnectorResponse,
|
|
24
24
|
type PreConnectResponse,
|
|
25
|
-
type
|
|
25
|
+
type UpsertConnectorConfigResponse,
|
|
26
26
|
type AssignConnectionParams,
|
|
27
27
|
type ConnectorRpcParams,
|
|
28
28
|
type CreateConnectionParams,
|
|
29
|
-
type
|
|
29
|
+
type CreateConnectorConfigParams,
|
|
30
30
|
type CreateTokenParams,
|
|
31
31
|
type DeleteAssignmentParams,
|
|
32
32
|
type GetConectorConfigParams,
|
|
33
33
|
type GetConnectionParams,
|
|
34
34
|
type ListConnectionsParams,
|
|
35
|
+
type ListConnectorConfigsParams,
|
|
35
36
|
type ListConnectorsParams,
|
|
36
|
-
type ListConnnectorConfigsParams,
|
|
37
37
|
type ListEventsParams,
|
|
38
38
|
type PostConnectParams,
|
|
39
39
|
type PreConfigureConnectorParams,
|
|
40
40
|
type PreConnectParams,
|
|
41
|
-
type
|
|
41
|
+
type UpsertConnectorConfigParams,
|
|
42
42
|
type ListConnectionsResponsesOffsetPagination,
|
|
43
|
+
type ListConnectorConfigsResponsesOffsetPagination,
|
|
43
44
|
type ListConnectorsResponsesOffsetPagination,
|
|
44
|
-
type ListConnnectorConfigsResponsesOffsetPagination,
|
|
45
45
|
type ListEventsResponsesOffsetPagination,
|
|
46
46
|
} from './top-level';
|