-
Notifications
You must be signed in to change notification settings - Fork 6
/
connectors.go
49 lines (44 loc) · 2.46 KB
/
connectors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// This file was auto-generated by Fern from our API Definition.
package api
type CreateConnectorRequest struct {
// A human-readable name for the connector.
Name string `json:"name" url:"-"`
// A description of the connector.
Description *string `json:"description,omitempty" url:"-"`
// The URL of the connector that will be used to search for documents.
Url string `json:"url" url:"-"`
// A list of fields to exclude from the prompt (fields remain in the document).
Excludes []string `json:"excludes,omitempty" url:"-"`
// The OAuth 2.0 configuration for the connector. Cannot be specified if service_auth is specified.
Oauth *CreateConnectorOAuth `json:"oauth,omitempty" url:"-"`
// Whether the connector is active or not.
Active *bool `json:"active,omitempty" url:"-"`
// Whether a chat request should continue or not if the request to this connector fails.
ContinueOnFailure *bool `json:"continue_on_failure,omitempty" url:"-"`
// The service to service authentication configuration for the connector. Cannot be specified if oauth is specified.
ServiceAuth *CreateConnectorServiceAuth `json:"service_auth,omitempty" url:"-"`
}
type ConnectorsListRequest struct {
// Maximum number of connectors to return [0, 100].
Limit *float64 `json:"-" url:"limit,omitempty"`
// Number of connectors to skip before returning results [0, inf].
Offset *float64 `json:"-" url:"offset,omitempty"`
}
type ConnectorsOAuthAuthorizeRequest struct {
// The URL to redirect to after the connector has been authorized.
AfterTokenRedirect *string `json:"-" url:"after_token_redirect,omitempty"`
}
type UpdateConnectorRequest struct {
// A human-readable name for the connector.
Name *string `json:"name,omitempty" url:"-"`
// The URL of the connector that will be used to search for documents.
Url *string `json:"url,omitempty" url:"-"`
// A list of fields to exclude from the prompt (fields remain in the document).
Excludes []string `json:"excludes,omitempty" url:"-"`
// The OAuth 2.0 configuration for the connector. Cannot be specified if service_auth is specified.
Oauth *CreateConnectorOAuth `json:"oauth,omitempty" url:"-"`
Active *bool `json:"active,omitempty" url:"-"`
ContinueOnFailure *bool `json:"continue_on_failure,omitempty" url:"-"`
// The service to service authentication configuration for the connector. Cannot be specified if oauth is specified.
ServiceAuth *CreateConnectorServiceAuth `json:"service_auth,omitempty" url:"-"`
}