@wix/auto_sdk_connectors_connectors 1.0.2 → 1.0.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.
@@ -79,9 +79,9 @@ interface Connector extends ConnectorRegistrationOneOf {
79
79
  * WIX_APPS_ONLY audience are what protect this field: oauth-handler is the only writable() caller,
80
80
  * supplying the real value it already holds from the token exchange at creation; no other create or
81
81
  * update path can touch it. The producer only emits AccessKeyBindingPushed on a credential_state
82
- * transition, so a scopes-only change at the shared access key (no state transition) does not reach
83
- * this field after creation -- it reflects scopes as of the last state transition, not necessarily the
84
- * shared key's current scopes.
82
+ * transition or a change to external_identity_label, so a scopes-only change at the shared access key
83
+ * (neither of those) does not reach this field after creation -- it reflects scopes as of the last
84
+ * push (a state transition or a label change), not necessarily the shared key's current scopes.
85
85
  * @internal
86
86
  * @readonly
87
87
  */
@@ -688,36 +688,6 @@ interface DispatchByAccessKeyRequest {
688
688
  */
689
689
  idempotencyKey?: string;
690
690
  }
691
- interface ListMcpToolsRequest {
692
- /**
693
- * ID of the Connector whose callable MCP tools are requested.
694
- * @format GUID
695
- */
696
- connectorId: string;
697
- }
698
- interface ListMcpToolsResponse {
699
- /**
700
- * The server's advertised tools filtered by the connector's allowlist. Capped to match mcp_config.allowed_tools' own maximum; the runtime
701
- * rejects a provider advertisement it cannot fit rather than returning an unbounded payload.
702
- * @maxSize 200
703
- */
704
- tools?: McpTool[];
705
- }
706
- /** One MCP tool as advertised by the connector's MCP server. */
707
- interface McpTool {
708
- /**
709
- * Tool name, exactly as the server advertises it.
710
- * @maxLength 128
711
- */
712
- name?: string;
713
- /**
714
- * Human- and model-readable description of what the tool does, as provided by the server.
715
- * @maxLength 10000
716
- */
717
- description?: string;
718
- /** JSON Schema of the tool's arguments, as provided by the server. */
719
- inputSchema?: Record<string, any> | null;
720
- }
721
691
  /**
722
692
  * Retrieves one Connector in the caller's target account tenant. USER Connectors are visible
723
693
  * to their consenting user or to a server-signed app authorized by get_connector; ACCOUNT
@@ -730,7 +700,7 @@ interface McpTool {
730
700
  * @returns The requested Connector.
731
701
  * @fqn wix.connectors.v1.ConnectorsService.GetConnector
732
702
  */
733
- declare function getConnector(connectorId: string): Promise<NonNullablePaths<Connector, `predefinedRegistration.appId` | `predefinedRegistration.componentId` | `dynamicRegistration.registrationId` | `connectorSlug` | `exposure` | `credentialState` | `appId` | `componentId` | `registrationType`, 3>>;
703
+ declare function getConnector(connectorId: string): Promise<NonNullablePaths<Connector, `predefinedRegistration.appId` | `predefinedRegistration.componentId` | `dynamicRegistration.registrationId` | `connectorSlug` | `exposure` | `credentialState` | `appId` | `componentId` | `registrationType`, 1>>;
734
704
  /**
735
705
  * Moves a Connector to the trash bin, disconnecting it from future use.
736
706
  *
@@ -831,7 +801,7 @@ interface ConnectorsQueryBuilder {
831
801
  * @fqn wix.connectors.v1.ConnectorsService.QueryConnectors
832
802
  * @requiredField query
833
803
  */
834
- declare function typedQueryConnectors(query: ConnectorQuery): Promise<NonNullablePaths<QueryConnectorsResponse, `connectors` | `connectors.${number}.predefinedRegistration.appId` | `connectors.${number}.predefinedRegistration.componentId` | `connectors.${number}.dynamicRegistration.registrationId` | `connectors.${number}.connectorSlug` | `connectors.${number}.exposure` | `connectors.${number}.credentialState` | `connectors.${number}.appId` | `connectors.${number}.componentId` | `connectors.${number}.registrationType`, 5>>;
804
+ declare function typedQueryConnectors(query: ConnectorQuery): Promise<NonNullablePaths<QueryConnectorsResponse, `connectors` | `connectors.${number}.predefinedRegistration.appId` | `connectors.${number}.predefinedRegistration.componentId` | `connectors.${number}.dynamicRegistration.registrationId` | `connectors.${number}.connectorSlug` | `connectors.${number}.exposure` | `connectors.${number}.credentialState` | `connectors.${number}.appId` | `connectors.${number}.componentId` | `connectors.${number}.registrationType`, 3>>;
835
805
  interface ConnectorQuerySpec extends QuerySpec {
836
806
  paging: 'cursor';
837
807
  wql: [
@@ -914,7 +884,7 @@ declare const utils: {
914
884
  * @permissionId connectors:v1:connector:start_connect
915
885
  * @fqn wix.connectors.v1.ConnectorsService.StartConnect
916
886
  */
917
- declare function startConnect(options?: StartConnectOptions): Promise<NonNullablePaths<StartConnectResponse, `redirect.url` | `completed.accessKeyId` | `authorizationUrl`, 3>>;
887
+ declare function startConnect(options?: StartConnectOptions): Promise<NonNullablePaths<StartConnectResponse, `redirect.url` | `completed.accessKeyId` | `authorizationUrl`, 1>>;
918
888
  interface StartConnectOptions extends StartConnectOptionsOwnerOneOf {
919
889
  /** Curated connect: the connector app + CONNECTOR_CONFIG component. */
920
890
  predefinedRegistration?: PredefinedRegistration;
@@ -988,7 +958,7 @@ interface StartConnectOptionsOwnerOneOf {
988
958
  * @permissionId connectors:v1:connector:dispatcher:dispatch
989
959
  * @fqn wix.connectors.v1.ConnectorsDispatcherService.Dispatch
990
960
  */
991
- declare function dispatcherDispatch(connectorId: string, providerRequest: RawHttpRequest, options?: DispatcherDispatchOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
961
+ declare function dispatcherDispatch(connectorId: string, providerRequest: RawHttpRequest, options?: DispatcherDispatchOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
992
962
  interface DispatcherDispatchOptions {
993
963
  /**
994
964
  * Optional caller-supplied key making a retry of this dispatch safe: the same key on the same
@@ -1002,19 +972,5 @@ interface DispatcherDispatchOptions {
1002
972
  */
1003
973
  idempotencyKey?: string;
1004
974
  }
1005
- /**
1006
- * Deprecated: the MCP surface moved to connectors-mcp-proxy — speak MCP to it directly
1007
- * (its tools/list answer is filtered by the connector's allowlist the same way). This RPC
1008
- * keeps working for existing callers: the server's advertised tools/list filtered by
1009
- * ConnectorConfig.mcp_config.allowed_tools.
1010
- * @param connectorId - ID of the Connector whose callable MCP tools are requested.
1011
- * @internal
1012
- * @documentationMaturity preview
1013
- * @requiredField connectorId
1014
- * @permissionId connectors:v1:connector:dispatcher:list_mcp_tools
1015
- * @fqn wix.connectors.v1.ConnectorsDispatcherService.ListMcpTools
1016
- * @deprecated
1017
- */
1018
- declare function listMcpTools(connectorId: string): Promise<NonNullablePaths<ListMcpToolsResponse, `tools` | `tools.${number}.name` | `tools.${number}.description`, 4>>;
1019
975
 
1020
- export { type AccountInfo, type ActionEvent, type CommonQueryWithEntityContext, type Completed, type Connector, type ConnectorQuery, type ConnectorQuerySpec, type ConnectorRegistrationOneOf, type ConnectorsQueryBuilder, type ConnectorsQueryResult, type CreateConnectorRequest, type CreateConnectorResponse, CredentialState, type CredentialStateWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteConnectorRequest, type DeleteConnectorResponse, type DispatchByAccessKeyRequest, type DispatchRequest, type DispatcherDispatchOptions, type DomainEvent, type DomainEventBodyOneOf, type DynamicRegistration, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Exposure, type ExposureWithLiterals, type GetConnectorRequest, type GetConnectorResponse, type GrantedScopes, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ListMcpToolsRequest, type ListMcpToolsResponse, type McpTool, type MessageEnvelope, type PathParametersEntry, type PredefinedRegistration, type QueryConnectorsRequest, type QueryConnectorsResponse, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type Redirect, RegistrationType, type RegistrationTypeWithLiterals, type RestoreInfo, ScopeReportingState, type ScopeReportingStateWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type StartConnectOptions, type StartConnectOptionsOwnerOneOf, type StartConnectRequest, type StartConnectRequestOwnerOneOf, StartConnectRequestRegistrationType, type StartConnectRequestRegistrationTypeWithLiterals, type StartConnectResponse, type StartConnectResponseNextActionOneOf, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, deleteConnector, dispatcherDispatch, getConnector, listMcpTools, queryConnectors, startConnect, typedQueryConnectors, utils };
976
+ export { type AccountInfo, type ActionEvent, type CommonQueryWithEntityContext, type Completed, type Connector, type ConnectorQuery, type ConnectorQuerySpec, type ConnectorRegistrationOneOf, type ConnectorsQueryBuilder, type ConnectorsQueryResult, type CreateConnectorRequest, type CreateConnectorResponse, CredentialState, type CredentialStateWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteConnectorRequest, type DeleteConnectorResponse, type DispatchByAccessKeyRequest, type DispatchRequest, type DispatcherDispatchOptions, type DomainEvent, type DomainEventBodyOneOf, type DynamicRegistration, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Exposure, type ExposureWithLiterals, type GetConnectorRequest, type GetConnectorResponse, type GrantedScopes, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type PathParametersEntry, type PredefinedRegistration, type QueryConnectorsRequest, type QueryConnectorsResponse, type QueryParametersEntry, type RawHttpRequest, type RawHttpResponse, type Redirect, RegistrationType, type RegistrationTypeWithLiterals, type RestoreInfo, ScopeReportingState, type ScopeReportingStateWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type StartConnectOptions, type StartConnectOptionsOwnerOneOf, type StartConnectRequest, type StartConnectRequestOwnerOneOf, StartConnectRequestRegistrationType, type StartConnectRequestRegistrationTypeWithLiterals, type StartConnectResponse, type StartConnectResponseNextActionOneOf, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, deleteConnector, dispatcherDispatch, getConnector, queryConnectors, startConnect, typedQueryConnectors, utils };
@@ -1,4 +1,4 @@
1
- import { GetConnectorRequest as GetConnectorRequest$1, GetConnectorResponse as GetConnectorResponse$1, DeleteConnectorRequest as DeleteConnectorRequest$1, DeleteConnectorResponse as DeleteConnectorResponse$1, QueryConnectorsRequest as QueryConnectorsRequest$1, QueryConnectorsResponse as QueryConnectorsResponse$1, StartConnectRequest as StartConnectRequest$1, StartConnectResponse as StartConnectResponse$1, DispatchRequest as DispatchRequest$1, RawHttpResponse as RawHttpResponse$1, ListMcpToolsRequest as ListMcpToolsRequest$1, ListMcpToolsResponse as ListMcpToolsResponse$1 } from './index.typings.mjs';
1
+ import { GetConnectorRequest as GetConnectorRequest$1, GetConnectorResponse as GetConnectorResponse$1, DeleteConnectorRequest as DeleteConnectorRequest$1, DeleteConnectorResponse as DeleteConnectorResponse$1, QueryConnectorsRequest as QueryConnectorsRequest$1, QueryConnectorsResponse as QueryConnectorsResponse$1, StartConnectRequest as StartConnectRequest$1, StartConnectResponse as StartConnectResponse$1, DispatchRequest as DispatchRequest$1, RawHttpResponse as RawHttpResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -79,9 +79,9 @@ interface Connector extends ConnectorRegistrationOneOf {
79
79
  * WIX_APPS_ONLY audience are what protect this field: oauth-handler is the only writable() caller,
80
80
  * supplying the real value it already holds from the token exchange at creation; no other create or
81
81
  * update path can touch it. The producer only emits AccessKeyBindingPushed on a credential_state
82
- * transition, so a scopes-only change at the shared access key (no state transition) does not reach
83
- * this field after creation -- it reflects scopes as of the last state transition, not necessarily the
84
- * shared key's current scopes.
82
+ * transition or a change to external_identity_label, so a scopes-only change at the shared access key
83
+ * (neither of those) does not reach this field after creation -- it reflects scopes as of the last
84
+ * push (a state transition or a label change), not necessarily the shared key's current scopes.
85
85
  * @internal
86
86
  * @readonly
87
87
  */
@@ -732,36 +732,6 @@ interface DispatchByAccessKeyRequest {
732
732
  */
733
733
  idempotencyKey?: string;
734
734
  }
735
- interface ListMcpToolsRequest {
736
- /**
737
- * ID of the Connector whose callable MCP tools are requested.
738
- * @format GUID
739
- */
740
- connectorId: string;
741
- }
742
- interface ListMcpToolsResponse {
743
- /**
744
- * The server's advertised tools filtered by the connector's allowlist. Capped to match mcp_config.allowed_tools' own maximum; the runtime
745
- * rejects a provider advertisement it cannot fit rather than returning an unbounded payload.
746
- * @maxSize 200
747
- */
748
- tools?: McpTool[];
749
- }
750
- /** One MCP tool as advertised by the connector's MCP server. */
751
- interface McpTool {
752
- /**
753
- * Tool name, exactly as the server advertises it.
754
- * @maxLength 128
755
- */
756
- name?: string;
757
- /**
758
- * Human- and model-readable description of what the tool does, as provided by the server.
759
- * @maxLength 10000
760
- */
761
- description?: string;
762
- /** JSON Schema of the tool's arguments, as provided by the server. */
763
- inputSchema?: Record<string, any> | null;
764
- }
765
735
 
766
736
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
767
737
  getUrl: (context: any) => string;
@@ -784,8 +754,5 @@ declare function startConnect(): __PublicMethodMetaInfo<'POST', {}, StartConnect
784
754
  declare function dispatcherDispatch(): __PublicMethodMetaInfo<'POST', {
785
755
  connectorId: string;
786
756
  }, DispatchRequest$1, DispatchRequest, RawHttpResponse$1, RawHttpResponse>;
787
- declare function listMcpTools(): __PublicMethodMetaInfo<'GET', {
788
- connectorId: string;
789
- }, ListMcpToolsRequest$1, ListMcpToolsRequest, ListMcpToolsResponse$1, ListMcpToolsResponse>;
790
757
 
791
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type Completed as CompletedOriginal, type Connector as ConnectorOriginal, type ConnectorRegistrationOneOf as ConnectorRegistrationOneOfOriginal, type CreateConnectorRequest as CreateConnectorRequestOriginal, type CreateConnectorResponse as CreateConnectorResponseOriginal, CredentialState as CredentialStateOriginal, type CredentialStateWithLiterals as CredentialStateWithLiteralsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteConnectorRequest as DeleteConnectorRequestOriginal, type DeleteConnectorResponse as DeleteConnectorResponseOriginal, type DispatchByAccessKeyRequest as DispatchByAccessKeyRequestOriginal, type DispatchRequest as DispatchRequestOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicRegistration as DynamicRegistrationOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Exposure as ExposureOriginal, type ExposureWithLiterals as ExposureWithLiteralsOriginal, type GetConnectorRequest as GetConnectorRequestOriginal, type GetConnectorResponse as GetConnectorResponseOriginal, type GrantedScopes as GrantedScopesOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListMcpToolsRequest as ListMcpToolsRequestOriginal, type ListMcpToolsResponse as ListMcpToolsResponseOriginal, type McpTool as McpToolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PathParametersEntry as PathParametersEntryOriginal, type PredefinedRegistration as PredefinedRegistrationOriginal, type QueryConnectorsRequest as QueryConnectorsRequestOriginal, type QueryConnectorsResponse as QueryConnectorsResponseOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, type Redirect as RedirectOriginal, RegistrationType as RegistrationTypeOriginal, type RegistrationTypeWithLiterals as RegistrationTypeWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, ScopeReportingState as ScopeReportingStateOriginal, type ScopeReportingStateWithLiterals as ScopeReportingStateWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StartConnectRequest as StartConnectRequestOriginal, type StartConnectRequestOwnerOneOf as StartConnectRequestOwnerOneOfOriginal, StartConnectRequestRegistrationType as StartConnectRequestRegistrationTypeOriginal, type StartConnectRequestRegistrationTypeWithLiterals as StartConnectRequestRegistrationTypeWithLiteralsOriginal, type StartConnectResponseNextActionOneOf as StartConnectResponseNextActionOneOfOriginal, type StartConnectResponse as StartConnectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, deleteConnector, dispatcherDispatch, getConnector, listMcpTools, queryConnectors, startConnect };
758
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type Completed as CompletedOriginal, type Connector as ConnectorOriginal, type ConnectorRegistrationOneOf as ConnectorRegistrationOneOfOriginal, type CreateConnectorRequest as CreateConnectorRequestOriginal, type CreateConnectorResponse as CreateConnectorResponseOriginal, CredentialState as CredentialStateOriginal, type CredentialStateWithLiterals as CredentialStateWithLiteralsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteConnectorRequest as DeleteConnectorRequestOriginal, type DeleteConnectorResponse as DeleteConnectorResponseOriginal, type DispatchByAccessKeyRequest as DispatchByAccessKeyRequestOriginal, type DispatchRequest as DispatchRequestOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicRegistration as DynamicRegistrationOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Exposure as ExposureOriginal, type ExposureWithLiterals as ExposureWithLiteralsOriginal, type GetConnectorRequest as GetConnectorRequestOriginal, type GetConnectorResponse as GetConnectorResponseOriginal, type GrantedScopes as GrantedScopesOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PathParametersEntry as PathParametersEntryOriginal, type PredefinedRegistration as PredefinedRegistrationOriginal, type QueryConnectorsRequest as QueryConnectorsRequestOriginal, type QueryConnectorsResponse as QueryConnectorsResponseOriginal, type QueryParametersEntry as QueryParametersEntryOriginal, type RawHttpRequest as RawHttpRequestOriginal, type RawHttpResponse as RawHttpResponseOriginal, type Redirect as RedirectOriginal, RegistrationType as RegistrationTypeOriginal, type RegistrationTypeWithLiterals as RegistrationTypeWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, ScopeReportingState as ScopeReportingStateOriginal, type ScopeReportingStateWithLiterals as ScopeReportingStateWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StartConnectRequest as StartConnectRequestOriginal, type StartConnectRequestOwnerOneOf as StartConnectRequestOwnerOneOfOriginal, StartConnectRequestRegistrationType as StartConnectRequestRegistrationTypeOriginal, type StartConnectRequestRegistrationTypeWithLiterals as StartConnectRequestRegistrationTypeWithLiteralsOriginal, type StartConnectResponseNextActionOneOf as StartConnectResponseNextActionOneOfOriginal, type StartConnectResponse as StartConnectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, deleteConnector, dispatcherDispatch, getConnector, queryConnectors, startConnect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_connectors_connectors",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.connectors.v1.connector"
51
51
  }
52
52
  },
53
- "falconPackageHash": "2516d84196ccac90b9e071f117b6b2492f4605c9444f6e95d1e1666e"
53
+ "falconPackageHash": "f1e5aab20ad1e7b5cda70236ba1b0fb635c6e0cd30ca16e6131d2c86"
54
54
  }