@replit/connectors 0.15.0 → 0.16.1

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.1 (2026-01-14)
4
+
5
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/replit/connectors-ts-sdk/compare/v0.16.0...v0.16.1)
6
+
7
+ ### Chores
8
+
9
+ * break long lines in snippets into multiline ([cf7b9df](https://github.com/replit/connectors-ts-sdk/commit/cf7b9dfcd1b8ac340ea5c7f5334b69180683bf03))
10
+ * fix typo in descriptions ([b46a014](https://github.com/replit/connectors-ts-sdk/commit/b46a014a66859474c9a018c13a7deb081378f1e8))
11
+ * **internal:** codegen related update ([e30a7bb](https://github.com/replit/connectors-ts-sdk/commit/e30a7bb68283125ad0b8c6b8a389227399fcc563))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * add more examples ([8c6984d](https://github.com/replit/connectors-ts-sdk/commit/8c6984df518fb3cc26b4ab4f7da95790ee08e03a))
17
+
18
+ ## 0.16.0 (2025-12-16)
19
+
20
+ Full Changelog: [v0.15.0...v0.16.0](https://github.com/replit/connectors-ts-sdk/compare/v0.15.0...v0.16.0)
21
+
22
+ ### Features
23
+
24
+ * **sdk:** release ([6132e6c](https://github.com/replit/connectors-ts-sdk/commit/6132e6cbb04823bb7934bfbc87061f0ac4e9e451))
25
+
3
26
  ## 0.15.0 (2025-12-09)
4
27
 
5
28
  Full Changelog: [v0.14.0...v0.15.0](https://github.com/replit/connectors-ts-sdk/compare/v0.14.0...v0.15.0)
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Replit
189
+ Copyright 2026 Replit
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -121,6 +121,37 @@ On timeout, an `APIConnectionTimeoutError` is thrown.
121
121
 
122
122
  Note that requests which time out will be [retried twice by default](#retries).
123
123
 
124
+ ## Auto-pagination
125
+
126
+ List methods in the Replit API are paginated.
127
+ You can use the `for await … of` syntax to iterate through items across all pages:
128
+
129
+ ```ts
130
+ async function fetchAllListConnectorsResponses(params) {
131
+ const allListConnectorsResponses = [];
132
+ // Automatically fetches more pages as needed.
133
+ for await (const listConnectorsResponse of client.listConnectors()) {
134
+ allListConnectorsResponses.push(listConnectorsResponse);
135
+ }
136
+ return allListConnectorsResponses;
137
+ }
138
+ ```
139
+
140
+ Alternatively, you can request a single page at a time:
141
+
142
+ ```ts
143
+ let page = await client.listConnectors();
144
+ for (const listConnectorsResponse of page.items) {
145
+ console.log(listConnectorsResponse);
146
+ }
147
+
148
+ // Convenience methods are provided for manually paginating:
149
+ while (page.hasNextPage()) {
150
+ page = await page.getNextPage();
151
+ // ...
152
+ }
153
+ ```
154
+
124
155
  ## Advanced Usage
125
156
 
126
157
  ### Accessing raw Response data (e.g., headers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/connectors",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
4
4
  "description": "The official TypeScript library for the Replit API",
5
5
  "author": "Replit <support@repl.it>",
6
6
  "types": "./index.d.ts",
@@ -3866,6 +3866,10 @@ export declare namespace CreateConnectionResponse {
3866
3866
  }
3867
3867
  }
3868
3868
  interface PublicSettings {
3869
+ /**
3870
+ * Icon URL for the connection
3871
+ */
3872
+ icon_url?: string;
3869
3873
  /**
3870
3874
  * MCP transport type detected during connection
3871
3875
  */
@@ -12806,6 +12810,10 @@ export declare namespace GetConnectionResponse {
12806
12810
  }
12807
12811
  }
12808
12812
  interface PublicSettings {
12813
+ /**
12814
+ * Icon URL for the connection
12815
+ */
12816
+ icon_url?: string;
12809
12817
  /**
12810
12818
  * MCP transport type detected during connection
12811
12819
  */
@@ -17468,6 +17476,10 @@ export declare namespace ListConnectionsResponse {
17468
17476
  }
17469
17477
  }
17470
17478
  interface PublicSettings {
17479
+ /**
17480
+ * Icon URL for the connection
17481
+ */
17482
+ icon_url?: string;
17471
17483
  /**
17472
17484
  * MCP transport type detected during connection
17473
17485
  */
@@ -22894,7 +22906,7 @@ export interface ListCustomersResponse {
22894
22906
  */
22895
22907
  updated_at: string;
22896
22908
  }
22897
- export type ListEventsResponse = ListEventsResponse.UnionMember0 | ListEventsResponse.UnionMember1 | ListEventsResponse.UnionMember2 | ListEventsResponse.UnionMember3 | ListEventsResponse.UnionMember4 | ListEventsResponse.UnionMember5 | ListEventsResponse.UnionMember6 | ListEventsResponse.UnionMember7 | ListEventsResponse.UnionMember8 | ListEventsResponse.UnionMember9 | ListEventsResponse.UnionMember10 | ListEventsResponse.UnionMember11 | ListEventsResponse.UnionMember12 | ListEventsResponse.UnionMember13 | ListEventsResponse.UnionMember14 | ListEventsResponse.UnionMember15 | ListEventsResponse.UnionMember16 | ListEventsResponse.UnionMember17 | ListEventsResponse.UnionMember18 | ListEventsResponse.UnionMember19 | ListEventsResponse.UnionMember20;
22909
+ export type ListEventsResponse = ListEventsResponse.UnionMember0 | ListEventsResponse.UnionMember1 | ListEventsResponse.UnionMember2 | ListEventsResponse.UnionMember3 | ListEventsResponse.UnionMember4 | ListEventsResponse.UnionMember5 | ListEventsResponse.UnionMember6 | ListEventsResponse.UnionMember7 | ListEventsResponse.UnionMember8 | ListEventsResponse.UnionMember9 | ListEventsResponse.UnionMember10 | ListEventsResponse.UnionMember11 | ListEventsResponse.UnionMember12 | ListEventsResponse.UnionMember13 | ListEventsResponse.UnionMember14 | ListEventsResponse.UnionMember15 | ListEventsResponse.UnionMember16 | ListEventsResponse.UnionMember17 | ListEventsResponse.UnionMember18 | ListEventsResponse.UnionMember19 | ListEventsResponse.UnionMember20 | ListEventsResponse.UnionMember21;
22898
22910
  export declare namespace ListEventsResponse {
22899
22911
  interface UnionMember0 {
22900
22912
  data: unknown;
@@ -23251,7 +23263,7 @@ export declare namespace ListEventsResponse {
23251
23263
  }
23252
23264
  interface UnionMember16 {
23253
23265
  data: UnionMember16.Data;
23254
- name: 'connect.connection-checked';
23266
+ name: 'connect.connection-revoked';
23255
23267
  id?: string;
23256
23268
  connection_id?: string | null;
23257
23269
  connector_name?: string | null;
@@ -23267,6 +23279,33 @@ export declare namespace ListEventsResponse {
23267
23279
  webhook_name?: string | null;
23268
23280
  }
23269
23281
  namespace UnionMember16 {
23282
+ interface Data {
23283
+ /**
23284
+ * Must start with 'conn\_'
23285
+ */
23286
+ connection_id: string;
23287
+ connector_name: string;
23288
+ customer_id: string;
23289
+ }
23290
+ }
23291
+ interface UnionMember17 {
23292
+ data: UnionMember17.Data;
23293
+ name: 'connect.connection-checked';
23294
+ id?: string;
23295
+ connection_id?: string | null;
23296
+ connector_name?: string | null;
23297
+ customer_id?: string | null;
23298
+ org_id?: string | null;
23299
+ prompt?: string | null;
23300
+ timestamp?: string;
23301
+ user?: string | number | boolean | {
23302
+ [key: string]: unknown;
23303
+ } | Array<unknown> | null;
23304
+ user_id?: string | null;
23305
+ v?: string | null;
23306
+ webhook_name?: string | null;
23307
+ }
23308
+ namespace UnionMember17 {
23270
23309
  interface Data {
23271
23310
  /**
23272
23311
  * Must start with 'conn\_'
@@ -23277,7 +23316,7 @@ export declare namespace ListEventsResponse {
23277
23316
  status_message: string | null;
23278
23317
  }
23279
23318
  }
23280
- interface UnionMember17 {
23319
+ interface UnionMember18 {
23281
23320
  data: unknown;
23282
23321
  name: 'api.token-copied';
23283
23322
  id?: string;
@@ -23294,7 +23333,7 @@ export declare namespace ListEventsResponse {
23294
23333
  v?: string | null;
23295
23334
  webhook_name?: string | null;
23296
23335
  }
23297
- interface UnionMember18 {
23336
+ interface UnionMember19 {
23298
23337
  data: unknown;
23299
23338
  name: 'api.graphql-request';
23300
23339
  id?: string;
@@ -23311,7 +23350,7 @@ export declare namespace ListEventsResponse {
23311
23350
  v?: string | null;
23312
23351
  webhook_name?: string | null;
23313
23352
  }
23314
- interface UnionMember19 {
23353
+ interface UnionMember20 {
23315
23354
  data: unknown;
23316
23355
  name: 'api.rest-request';
23317
23356
  id?: string;
@@ -23328,8 +23367,8 @@ export declare namespace ListEventsResponse {
23328
23367
  v?: string | null;
23329
23368
  webhook_name?: string | null;
23330
23369
  }
23331
- interface UnionMember20 {
23332
- data: UnionMember20.Data;
23370
+ interface UnionMember21 {
23371
+ data: UnionMember21.Data;
23333
23372
  name: 'pageview';
23334
23373
  id?: string;
23335
23374
  connection_id?: string | null;
@@ -23345,7 +23384,7 @@ export declare namespace ListEventsResponse {
23345
23384
  v?: string | null;
23346
23385
  webhook_name?: string | null;
23347
23386
  }
23348
- namespace UnionMember20 {
23387
+ namespace UnionMember21 {
23349
23388
  interface Data {
23350
23389
  current_url: string;
23351
23390
  path: string;
@@ -27030,6 +27069,10 @@ export declare namespace PostConnectResponse {
27030
27069
  }
27031
27070
  }
27032
27071
  interface PublicSettings {
27072
+ /**
27073
+ * Icon URL for the connection
27074
+ */
27075
+ icon_url?: string;
27033
27076
  /**
27034
27077
  * MCP transport type detected during connection
27035
27078
  */
@@ -30739,7 +30782,7 @@ export interface ConnectorRpcParams {
30739
30782
  */
30740
30783
  connector_config_id: string;
30741
30784
  /**
30742
- * Body param:
30785
+ * Body param
30743
30786
  */
30744
30787
  input: {
30745
30788
  [key: string]: unknown;