@replit/connectors 0.26.0 → 0.27.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/src/client.ts CHANGED
@@ -942,11 +942,19 @@ export class Replit {
942
942
  return () => controller.abort();
943
943
  }
944
944
 
945
- private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
945
+ private buildBody({ options }: { options: FinalRequestOptions }): {
946
946
  bodyHeaders: HeadersLike;
947
947
  body: BodyInit | undefined;
948
948
  } {
949
+ const { body, headers: rawHeaders } = options;
949
950
  if (!body) {
951
+ // A resource method always passes a `body` key when its operation defines a
952
+ // request body, even if the caller omitted an optional body param. Keep the
953
+ // content-type for those, and only elide it for operations with no body at
954
+ // all (e.g. GET/DELETE).
955
+ if (body == null && 'body' in options) {
956
+ return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
957
+ }
950
958
  return { bodyHeaders: undefined, body: undefined };
951
959
  }
952
960
  const headers = buildHeaders([rawHeaders]);
@@ -62,6 +62,11 @@ export interface Connector {
62
62
 
63
63
  logo_url?: string;
64
64
 
65
+ /**
66
+ * Optional extended, human-readable description of what this connector does
67
+ */
68
+ long_description?: string;
69
+
65
70
  /**
66
71
  * MCP server configuration, derived from connector metadata
67
72
  */
@@ -89,7 +94,7 @@ export interface Connector {
89
94
  */
90
95
  setup_guide?: Connector.SetupGuide;
91
96
 
92
- stage?: 'disabled' | 'staff' | 'eap' | 'beta' | 'ga' | 'alpha' | 'hidden' | 'deprecated';
97
+ stage?: 'disabled' | 'staff' | 'eap' | 'beta' | 'ga' | 'deprecated';
93
98
 
94
99
  /**
95
100
  * Replit's level of trust in this connector's connection experience, e.g.
@@ -794,7 +799,7 @@ export interface Integration {
794
799
 
795
800
  platforms?: Array<'web' | 'mobile' | 'desktop'> | null;
796
801
 
797
- stage?: 'alpha' | 'beta' | 'ga' | null;
802
+ stage?: 'beta' | 'ga' | null;
798
803
 
799
804
  version?: string | null;
800
805
  }
@@ -237886,6 +237891,8 @@ export namespace ListEventsResponse {
237886
237891
 
237887
237892
  export namespace UnionMember29 {
237888
237893
  export interface Data {
237894
+ billed: boolean;
237895
+
237889
237896
  billing_type: 'per_request' | 'stream_metered' | 'client_disconnect' | 'no_charge';
237890
237897
 
237891
237898
  cents: number;
@@ -237903,6 +237910,8 @@ export namespace ListEventsResponse {
237903
237910
  billable_item_id?: string;
237904
237911
 
237905
237912
  item_id?: string;
237913
+
237914
+ unbillable_reason?: string;
237906
237915
  }
237907
237916
  }
237908
237917
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.26.0'; // x-release-please-version
1
+ export const VERSION = '0.27.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.26.0";
1
+ export declare const VERSION = "0.27.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.26.0";
1
+ export declare const VERSION = "0.27.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.26.0'; // x-release-please-version
4
+ exports.VERSION = '0.27.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.26.0'; // x-release-please-version
1
+ export const VERSION = '0.27.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map