@wix/auto_sdk_connectors_connectors 1.0.0 → 1.0.2

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.
@@ -75,10 +75,12 @@ interface Connector extends ConnectorRegistrationOneOf {
75
75
  * identically here. Carried as the GrantedScopes message rather than a bare repeated string so a
76
76
  * provider that never reports scopes (reporting_state NOT_REPORTED) stays distinguishable from one
77
77
  * that explicitly reported an empty set (REPORTED with no scopes); flattening the two would turn an
78
- * unknown into a false negative for anyone reading this field. Server-owned: no create or update path
79
- * accepts a caller-supplied value for it. The producer only emits AccessKeyBindingPushed on a
80
- * credential_state transition, so a scopes-only change at the shared access key (no state transition)
81
- * does not reach this field -- it reflects scopes as of the last state transition, not necessarily the
78
+ * unknown into a false negative for anyone reading this field. INTERNAL exposure plus CreateConnector's
79
+ * WIX_APPS_ONLY audience are what protect this field: oauth-handler is the only writable() caller,
80
+ * supplying the real value it already holds from the token exchange at creation; no other create or
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
82
84
  * shared key's current scopes.
83
85
  * @internal
84
86
  * @readonly
@@ -92,12 +94,17 @@ interface Connector extends ConnectorRegistrationOneOf {
92
94
  * decision (dispatch, revocation, anything that gates behavior) must keep reading
93
95
  * connectors-access-keys-store synchronously. The same rule covers filtering by this field: a query
94
96
  * for credential_state == ACTIVE returns what the platform last believed, never a permission to use
95
- * those bindings. UNKNOWN_CREDENTIAL_STATE means no push has ever arrived for the bound access key --
96
- * including every row that predates this projection -- and is never a signal of a healthy connection.
97
- * Server-owned: no create or update path accepts a caller-supplied value for it. When a push carries
98
- * the source event's own timestamp, that timestamp is tracked on the domain row (not exposed on this
99
- * contract) and a later push older than the stored value is dropped; a push with no timestamp only
100
- * ever initializes a row that has never recorded one, never overwrites an already-timestamped
97
+ * those bindings. UNKNOWN_CREDENTIAL_STATE means the row predates this projection, or its creator's
98
+ * own upstream state was itself unknown at creation -- never a signal of a healthy connection either
99
+ * way; every new row otherwise gets the real value at creation.
100
+ * readOnly plus CreateConnector's WIX_APPS_ONLY audience are what protect this field: it is
101
+ * writable() only on that one RPC, so only oauth-handler can supply the real value at creation; every
102
+ * other create or update path still can't touch it. Deliberately NOT field_exposure = INTERNAL, so
103
+ * this field stays filterable/visible to the same external callers as SiteConnector's sibling field,
104
+ * which was never internal. When a push
105
+ * carries the source event's own timestamp, that timestamp is tracked on the domain row (not exposed
106
+ * on this contract) and a later push older than the stored value is dropped; a push with no timestamp
107
+ * only ever initializes a row that has never recorded one, never overwrites an already-timestamped
101
108
  * snapshot.
102
109
  * @readonly
103
110
  */
@@ -693,6 +700,38 @@ interface RawHttpResponse {
693
700
  statusCode?: number | null;
694
701
  headers?: HeadersEntry[];
695
702
  }
703
+ interface DispatchByAccessKeyRequest {
704
+ /**
705
+ * ID of the ConnectorAccessKey to dispatch under. Never authorization by itself — the caller's
706
+ * Plazma grant on this method is what authorizes the call; this id only selects the credential.
707
+ * @format GUID
708
+ */
709
+ accessKeyId?: string;
710
+ /**
711
+ * The connector app that declares the CONNECTOR_CONFIG component to authorize this dispatch
712
+ * against. Supplied directly because there is no connector binding to resolve it from.
713
+ * @format GUID
714
+ */
715
+ appId?: string;
716
+ /**
717
+ * The CONNECTOR_CONFIG component within that app, whose dispatch policy governs this request.
718
+ * @format GUID
719
+ */
720
+ componentId?: string;
721
+ /** Raw provider request. Callers must not include credentials; Wix injects them at dispatch. */
722
+ providerRequest?: RawHttpRequest;
723
+ /**
724
+ * Optional caller-supplied key making a retry of this dispatch safe: the same key on the same
725
+ * access key will not produce a second provider attempt through Wix. Scoped to the access key,
726
+ * so callers need only make it unique per access key. Guarantees at-most-once ATTEMPT by Wix — it
727
+ * cannot guarantee the provider applied the effect at most once when an attempt's outcome is
728
+ * unknown (timeout, connection reset). For that, include the provider's own idempotency header in
729
+ * provider_request. A repeated key fails with a duplicate-dispatch error rather than replaying the
730
+ * original response, which Wix does not retain; callers needing it must store it themselves.
731
+ * @maxLength 128
732
+ */
733
+ idempotencyKey?: string;
734
+ }
696
735
  interface ListMcpToolsRequest {
697
736
  /**
698
737
  * ID of the Connector whose callable MCP tools are requested.
@@ -749,4 +788,4 @@ declare function listMcpTools(): __PublicMethodMetaInfo<'GET', {
749
788
  connectorId: string;
750
789
  }, ListMcpToolsRequest$1, ListMcpToolsRequest, ListMcpToolsResponse$1, ListMcpToolsResponse>;
751
790
 
752
- 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 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_connectors_connectors",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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": "89928584315838bbbbd27e99d8d029799400ffff4f50f15e55111b34"
53
+ "falconPackageHash": "2516d84196ccac90b9e071f117b6b2492f4605c9444f6e95d1e1666e"
54
54
  }