zitejs 0.9.135 → 0.9.136
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.
|
@@ -42,6 +42,7 @@ declare const FIELDS_BY_TYPE: {
|
|
|
42
42
|
granola: readonly string[];
|
|
43
43
|
dropbox: readonly string[];
|
|
44
44
|
amazonS3: readonly string[];
|
|
45
|
+
snowflake: readonly string[];
|
|
45
46
|
};
|
|
46
47
|
/** A service type `integrations.get` serves: one used through its npm package with a token. */
|
|
47
48
|
export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
|
|
@@ -53,6 +53,9 @@ const FIELDS_BY_TYPE = {
|
|
|
53
53
|
// The IAM key alone reaches nothing: every call needs the region and the
|
|
54
54
|
// bucket, and S3-compatible providers need the endpoint too.
|
|
55
55
|
amazonS3: extras("keyId", "region", "bucket", "endpoint", "pathPrefix"),
|
|
56
|
+
// The SQL API lives on each account's own host, and the token is pinned to
|
|
57
|
+
// one role; the warehouse is optional and falls back to the user's default.
|
|
58
|
+
snowflake: extras("accountUrl", "role", "warehouse"),
|
|
56
59
|
};
|
|
57
60
|
/** Per service type: `accessToken`, then its extra labels sorted (Salesforce `instanceUrl`). */
|
|
58
61
|
exports.CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
|
|
@@ -64,6 +67,7 @@ exports.OPTIONAL_CREDENTIAL_FIELDS = {
|
|
|
64
67
|
jira: ["siteUrl"],
|
|
65
68
|
// Only S3-compatible providers set an endpoint, and a prefix is opt-in.
|
|
66
69
|
amazonS3: ["endpoint", "pathPrefix"],
|
|
70
|
+
snowflake: ["warehouse"],
|
|
67
71
|
};
|
|
68
72
|
/**
|
|
69
73
|
* Types the runtime never serves: those with a generated client (Airtable, email,
|
|
@@ -42,6 +42,7 @@ declare const FIELDS_BY_TYPE: {
|
|
|
42
42
|
granola: readonly string[];
|
|
43
43
|
dropbox: readonly string[];
|
|
44
44
|
amazonS3: readonly string[];
|
|
45
|
+
snowflake: readonly string[];
|
|
45
46
|
};
|
|
46
47
|
/** A service type `integrations.get` serves: one used through its npm package with a token. */
|
|
47
48
|
export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
|
|
@@ -50,6 +50,9 @@ const FIELDS_BY_TYPE = {
|
|
|
50
50
|
// The IAM key alone reaches nothing: every call needs the region and the
|
|
51
51
|
// bucket, and S3-compatible providers need the endpoint too.
|
|
52
52
|
amazonS3: extras("keyId", "region", "bucket", "endpoint", "pathPrefix"),
|
|
53
|
+
// The SQL API lives on each account's own host, and the token is pinned to
|
|
54
|
+
// one role; the warehouse is optional and falls back to the user's default.
|
|
55
|
+
snowflake: extras("accountUrl", "role", "warehouse"),
|
|
53
56
|
};
|
|
54
57
|
/** Per service type: `accessToken`, then its extra labels sorted (Salesforce `instanceUrl`). */
|
|
55
58
|
export const CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
|
|
@@ -61,6 +64,7 @@ export const OPTIONAL_CREDENTIAL_FIELDS = {
|
|
|
61
64
|
jira: ["siteUrl"],
|
|
62
65
|
// Only S3-compatible providers set an endpoint, and a prefix is opt-in.
|
|
63
66
|
amazonS3: ["endpoint", "pathPrefix"],
|
|
67
|
+
snowflake: ["warehouse"],
|
|
64
68
|
};
|
|
65
69
|
/**
|
|
66
70
|
* Types the runtime never serves: those with a generated client (Airtable, email,
|