@bigfootai/bigfoot-types 5.4.251 → 5.4.255
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/dist/agent-execution.d.ts +1 -15
- package/dist/agent-execution.d.ts.map +1 -1
- package/dist/agent-execution.js +0 -14
- package/dist/agent-execution.js.map +1 -1
- package/dist/block-type.d.ts +2 -1
- package/dist/block-type.d.ts.map +1 -1
- package/dist/block-type.js +1 -0
- package/dist/block-type.js.map +1 -1
- package/dist/connected-provider.d.ts.map +1 -1
- package/dist/connected-provider.js.map +1 -1
- package/dist/field.d.ts +33 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +28 -0
- package/dist/field.js.map +1 -1
- package/dist/function-input.d.ts +61 -0
- package/dist/function-input.d.ts.map +1 -0
- package/dist/function-input.js +74 -0
- package/dist/function-input.js.map +1 -0
- package/dist/function-invocation.d.ts +36 -0
- package/dist/function-invocation.d.ts.map +1 -0
- package/dist/function-invocation.js +54 -0
- package/dist/function-invocation.js.map +1 -0
- package/dist/function-metadata.d.ts +49 -0
- package/dist/function-metadata.d.ts.map +1 -0
- package/dist/function-metadata.js +71 -0
- package/dist/function-metadata.js.map +1 -0
- package/dist/highlight.d.ts +6 -0
- package/dist/highlight.d.ts.map +1 -0
- package/dist/highlight.js +6 -0
- package/dist/highlight.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/installed-function.d.ts +45 -0
- package/dist/installed-function.d.ts.map +1 -0
- package/dist/installed-function.js +64 -0
- package/dist/installed-function.js.map +1 -0
- package/dist/metadata/providers/atlassian.d.ts.map +1 -1
- package/dist/metadata/providers/atlassian.js +1 -0
- package/dist/metadata/providers/atlassian.js.map +1 -1
- package/dist/metadata/providers/databricks.d.ts.map +1 -1
- package/dist/metadata/providers/databricks.js +1 -0
- package/dist/metadata/providers/databricks.js.map +1 -1
- package/dist/metadata/providers/fathom.d.ts.map +1 -1
- package/dist/metadata/providers/fathom.js +1 -0
- package/dist/metadata/providers/fathom.js.map +1 -1
- package/dist/metadata/providers/g2.d.ts.map +1 -1
- package/dist/metadata/providers/g2.js +1 -0
- package/dist/metadata/providers/g2.js.map +1 -1
- package/dist/metadata/providers/gong.d.ts.map +1 -1
- package/dist/metadata/providers/gong.js +1 -0
- package/dist/metadata/providers/gong.js.map +1 -1
- package/dist/metadata/providers/google.d.ts +15 -0
- package/dist/metadata/providers/google.d.ts.map +1 -1
- package/dist/metadata/providers/google.js +151 -1
- package/dist/metadata/providers/google.js.map +1 -1
- package/dist/metadata/providers/granola.d.ts.map +1 -1
- package/dist/metadata/providers/granola.js +1 -0
- package/dist/metadata/providers/granola.js.map +1 -1
- package/dist/metadata/providers/hubspot.d.ts.map +1 -1
- package/dist/metadata/providers/hubspot.js +1 -0
- package/dist/metadata/providers/hubspot.js.map +1 -1
- package/dist/metadata/providers/linear.d.ts.map +1 -1
- package/dist/metadata/providers/linear.js +1 -0
- package/dist/metadata/providers/linear.js.map +1 -1
- package/dist/metadata/providers/linkedin.d.ts.map +1 -1
- package/dist/metadata/providers/linkedin.js +1 -0
- package/dist/metadata/providers/linkedin.js.map +1 -1
- package/dist/metadata/providers/microsoft.d.ts.map +1 -1
- package/dist/metadata/providers/microsoft.js +2 -0
- package/dist/metadata/providers/microsoft.js.map +1 -1
- package/dist/metadata/providers/noded.d.ts.map +1 -1
- package/dist/metadata/providers/noded.js +1 -0
- package/dist/metadata/providers/noded.js.map +1 -1
- package/dist/metadata/providers/salesforce.d.ts.map +1 -1
- package/dist/metadata/providers/salesforce.js +1 -0
- package/dist/metadata/providers/salesforce.js.map +1 -1
- package/dist/metadata/providers/slack.d.ts.map +1 -1
- package/dist/metadata/providers/slack.js +1 -0
- package/dist/metadata/providers/slack.js.map +1 -1
- package/dist/metadata/providers/zoom.d.ts.map +1 -1
- package/dist/metadata/providers/zoom.js +1 -0
- package/dist/metadata/providers/zoom.js.map +1 -1
- package/dist/provider.d.ts +12 -3
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +4 -0
- package/dist/provider.js.map +1 -1
- package/dist/recommendation.d.ts +14 -1
- package/dist/recommendation.d.ts.map +1 -1
- package/dist/recommendation.js +12 -0
- package/dist/recommendation.js.map +1 -1
- package/dist/recurrence-rfc.d.ts +22 -0
- package/dist/recurrence-rfc.d.ts.map +1 -0
- package/dist/recurrence-rfc.js +23 -0
- package/dist/recurrence-rfc.js.map +1 -0
- package/dist/section.d.ts +7 -0
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +12 -0
- package/dist/section.js.map +1 -0
- package/dist/types.d.ts +140 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +86 -4
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/agent-execution.ts +0 -29
- package/src/block-type.ts +1 -0
- package/src/connected-provider.ts +6 -0
- package/src/field.ts +47 -0
- package/src/function-input.ts +108 -0
- package/src/function-invocation.ts +73 -0
- package/src/function-metadata.ts +87 -0
- package/src/index.ts +4 -0
- package/src/installed-function.ts +81 -0
- package/src/metadata/providers/atlassian.ts +1 -0
- package/src/metadata/providers/databricks.ts +1 -0
- package/src/metadata/providers/fathom.ts +1 -0
- package/src/metadata/providers/g2.ts +1 -0
- package/src/metadata/providers/gong.ts +1 -0
- package/src/metadata/providers/google.ts +186 -1
- package/src/metadata/providers/granola.ts +1 -0
- package/src/metadata/providers/hubspot.ts +1 -0
- package/src/metadata/providers/linear.ts +1 -0
- package/src/metadata/providers/linkedin.ts +1 -0
- package/src/metadata/providers/microsoft.ts +2 -0
- package/src/metadata/providers/noded.ts +1 -0
- package/src/metadata/providers/salesforce.ts +1 -0
- package/src/metadata/providers/slack.ts +1 -0
- package/src/metadata/providers/zoom.ts +1 -0
- package/src/provider.ts +12 -0
- package/src/recommendation.ts +24 -0
- package/src/types.ts +235 -3
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import type { Block } from './block.js';
|
|
2
1
|
import type { TenantRef } from './shared-primitive.js';
|
|
3
2
|
import { SharedPrimitive } from './shared-primitive.js';
|
|
4
3
|
import type { SharingTag } from './sharing-tag.js';
|
|
5
|
-
|
|
6
|
-
export interface ExecutionOutputResultItem {
|
|
7
|
-
_id: string;
|
|
8
|
-
block?: Block | null;
|
|
9
|
-
recommendation?: Recommendation | null;
|
|
10
|
-
type: 'block' | 'recommendation';
|
|
11
|
-
}
|
|
12
|
-
export interface ExecutionOutputResult {
|
|
13
|
-
createdItems: ExecutionOutputResultItem[];
|
|
14
|
-
outputType: 'create' | 'notify' | 'prompt';
|
|
15
|
-
}
|
|
16
|
-
export declare const ExecutionOutputResultQL = "\ntype ExecutionOutputResultItem {\n\t_id: ID!\n\tblock: Block\n\trecommendation: Recommendation\n\ttype: String!\n}\n\ntype ExecutionOutputResult {\n\tcreatedItems: [ExecutionOutputResultItem!]!\n\toutputType: String!\n}";
|
|
17
|
-
export declare const AgentExecutionQL = "\ntype AgentExecution {\n\t\n _id: ID!\n archived: Boolean!\n dateArchived: Float\n dateCreated: Float!\n dateUpdated: Float!\n tenantIdCreated: String\n sharingTags: [SharingTag]!\n\tsubscriptionPubSubType: String\n\tagentId: ID!\n\tdateCompleted: Float\n\tdateErrored: Float\n\tdateStarted: Float!\n\texecutionDetails: String\n\toutputResults: [ExecutionOutputResult!]\n\tstatus: String!\n\tsummary: String\n\ttriggerType: String!\n}";
|
|
4
|
+
export declare const AgentExecutionQL = "\ntype AgentExecution {\n\t\n _id: ID!\n archived: Boolean!\n dateArchived: Float\n dateCreated: Float!\n dateUpdated: Float!\n tenantIdCreated: String\n sharingTags: [SharingTag]!\n\tsubscriptionPubSubType: String\n\tagentId: ID!\n\tdateCompleted: Float\n\tdateErrored: Float\n\tdateStarted: Float!\n\texecutionDetails: String\n\tstatus: String!\n\tsummary: String\n\ttriggerType: String!\n}";
|
|
18
5
|
export declare class AgentExecution extends SharedPrimitive {
|
|
19
6
|
agentId: string;
|
|
20
7
|
dateCompleted?: number;
|
|
21
8
|
dateErrored?: number;
|
|
22
9
|
dateStarted: number;
|
|
23
10
|
executionDetails?: string;
|
|
24
|
-
outputResults?: ExecutionOutputResult[];
|
|
25
11
|
status: 'pending' | 'completed' | 'errored' | 'halted' | 'timed_out';
|
|
26
12
|
summary?: string;
|
|
27
13
|
triggerType: 'absence' | 'change' | 'freeform' | 'presence';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-execution.d.ts","sourceRoot":"","sources":["../src/agent-execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent-execution.d.ts","sourceRoot":"","sources":["../src/agent-execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,oZAW3B,CAAC;AAEH,qBAAa,cAAe,SAAQ,eAAe;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;gBAG3D,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,EAC3D,WAAW,EAAE,UAAU,EAAE;CAQ1B;AAED,eAAO,MAAM,0BAA0B,2EAIrC,CAAC;AACH,MAAM,WAAW,wBAAwB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/agent-execution.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { SharedPrimitive, SharedPrimitiveFields } from './shared-primitive.js';
|
|
2
|
-
export const ExecutionOutputResultQL = `
|
|
3
|
-
type ExecutionOutputResultItem {
|
|
4
|
-
_id: ID!
|
|
5
|
-
block: Block
|
|
6
|
-
recommendation: Recommendation
|
|
7
|
-
type: String!
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type ExecutionOutputResult {
|
|
11
|
-
createdItems: [ExecutionOutputResultItem!]!
|
|
12
|
-
outputType: String!
|
|
13
|
-
}`;
|
|
14
2
|
export const AgentExecutionQL = `
|
|
15
3
|
type AgentExecution {
|
|
16
4
|
${SharedPrimitiveFields}
|
|
@@ -19,7 +7,6 @@ type AgentExecution {
|
|
|
19
7
|
dateErrored: Float
|
|
20
8
|
dateStarted: Float!
|
|
21
9
|
executionDetails: String
|
|
22
|
-
outputResults: [ExecutionOutputResult!]
|
|
23
10
|
status: String!
|
|
24
11
|
summary: String
|
|
25
12
|
triggerType: String!
|
|
@@ -30,7 +17,6 @@ export class AgentExecution extends SharedPrimitive {
|
|
|
30
17
|
dateErrored;
|
|
31
18
|
dateStarted;
|
|
32
19
|
executionDetails;
|
|
33
|
-
outputResults;
|
|
34
20
|
status;
|
|
35
21
|
summary;
|
|
36
22
|
triggerType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-execution.js","sourceRoot":"","sources":["../src/agent-execution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-execution.js","sourceRoot":"","sources":["../src/agent-execution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAG/E,MAAM,CAAC,MAAM,gBAAgB,GAAG;;GAE7B,qBAAqB;;;;;;;;;EAStB,CAAC;AAEH,MAAM,OAAO,cAAe,SAAQ,eAAe;IAClD,OAAO,CAAS;IAChB,aAAa,CAAU;IACvB,WAAW,CAAU;IACrB,WAAW,CAAS;IACpB,gBAAgB,CAAU;IAC1B,MAAM,CAA+D;IACrE,OAAO,CAAU;IACjB,WAAW,CAAiD;IAE5D,YACC,MAAiB,EACjB,OAAe,EACf,WAA2D,EAC3D,WAAyB;QAEzB,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IACzB,CAAC;CACD;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;EAIxC,CAAC"}
|
package/dist/block-type.d.ts
CHANGED
package/dist/block-type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-type.d.ts","sourceRoot":"","sources":["../src/block-type.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACpB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS,CAAE,sCAAsC;IACrD,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc,CAAE,2BAA2B;IACpD,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,GAAG,QAAQ;
|
|
1
|
+
{"version":3,"file":"block-type.d.ts","sourceRoot":"","sources":["../src/block-type.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACpB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS,CAAE,sCAAsC;IACrD,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc,CAAE,2BAA2B;IACpD,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,UAAU,eAAe;CACzB"}
|
package/dist/block-type.js
CHANGED
package/dist/block-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-type.js","sourceRoot":"","sources":["../src/block-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"block-type.js","sourceRoot":"","sources":["../src/block-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAuBX;AAvBD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,8CAAiC,CAAA;IACjC,8BAAiB,CAAA;IACjB,4CAA+B,CAAA;IAC/B,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,oCAAuB,CAAA;IACvB,wBAAW,CAAA;IACX,sCAAyB,CAAA;AAC1B,CAAC,EAvBW,SAAS,KAAT,SAAS,QAuBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-provider.d.ts","sourceRoot":"","sources":["../src/connected-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,iCAAiC,oFAG5C,CAAC;AAEH,MAAM,WAAW,+BAA+B;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,qFAG/B,CAAC;AAEH,MAAM,WAAW,kBAAkB;IAClC,aAAa,CAAC,EAAE,+BAA+B,CAAC;CAChD;AAED,eAAO,MAAM,YAAY,0HAMvB,CAAC;
|
|
1
|
+
{"version":3,"file":"connected-provider.d.ts","sourceRoot":"","sources":["../src/connected-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,iCAAiC,oFAG5C,CAAC;AAEH,MAAM,WAAW,+BAA+B;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,qFAG/B,CAAC;AAEH,MAAM,WAAW,kBAAkB;IAClC,aAAa,CAAC,EAAE,+BAA+B,CAAC;CAChD;AAED,eAAO,MAAM,YAAY,0HAMvB,CAAC;AAQH,MAAM,WAAW,UAAU;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UA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AE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-provider.js","sourceRoot":"","sources":["../src/connected-provider.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;EAG/C,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;EAGlC,CAAC;AAMH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;EAM1B,CAAC;
|
|
1
|
+
{"version":3,"file":"connected-provider.js","sourceRoot":"","sources":["../src/connected-provider.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;EAG/C,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;EAGlC,CAAC;AAMH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;EAM1B,CAAC;AAwBH,MAAM,CAAC,MAAM,8BAA8B,GAAG;;;;;EAK5C,CAAC;AAQH,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;EAKjD,CAAC;AAQH,MAAM,CAAC,MAAM,0CAA0C,GAAG;;;;;EAKxD,CAAC;AAQH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;EAajC,CAAC;AAgBH,MAAM,CAAC,MAAM,8BAA8B,GAAG;;;EAG5C,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG;;;;EAIpD,CAAC;AAOH,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;;;EAK9C,CAAC;AAQH,MAAM,CAAC,MAAM,oCAAoC,GAAG;;;;EAIlD,CAAC;AAOH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;EAIpC,CAAC;AAOH,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;EAG/C,CAAC;AAMH,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;EAI1C,CAAC;AAOH,MAAM,CAAC,MAAM,2BAA2B,GAAG;;;;;;;;EAQzC,CAAC"}
|
package/dist/field.d.ts
CHANGED
|
@@ -9,7 +9,38 @@ export type FieldSource = 'custom' | 'system';
|
|
|
9
9
|
export type ExtractionMode = 'direct' | 'research';
|
|
10
10
|
export declare const SystemOfRecordQL = "\nenum SystemOfRecord {\n noded\n}";
|
|
11
11
|
export type SystemOfRecord = 'noded';
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Vendor-agnostic pointer to an external resource the user must pick.
|
|
14
|
+
* When a Field carries a `resourceRef`, the client renders a vendor-
|
|
15
|
+
* specific picker (Google Drive, Slack channel, Salesforce lookup, …)
|
|
16
|
+
* keyed on `${provider}:${application}:${kind}`. The picker stores the
|
|
17
|
+
* canonical id on `FieldValue.id` and the human-readable label on
|
|
18
|
+
* `FieldValue.value`; adapters use `readResourceId` (or equivalent) to
|
|
19
|
+
* pull the id back out at runtime.
|
|
20
|
+
*
|
|
21
|
+
* `constraints` is intentionally a free-form bag so each vendor can
|
|
22
|
+
* carry filters without bumping this shape — Drive uses `mimeTypes`,
|
|
23
|
+
* Salesforce uses `sobject`, Slack uses `channelTypes`, etc.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ResourceRefConstraintsQL = "\ntype ResourceRefConstraints {\n\tmimeTypes: [String!]\n\trole: String\n\tsobject: String\n\tchannelTypes: [String!]\n}";
|
|
26
|
+
export interface ResourceRefConstraints {
|
|
27
|
+
mimeTypes?: string[];
|
|
28
|
+
/** Whether the picker should request read or write affinity. Drive
|
|
29
|
+
* uses this to choose between viewer-style and editor-style pick UX. */
|
|
30
|
+
role?: 'read' | 'write';
|
|
31
|
+
/** Salesforce lookup — restrict to a specific sObject. */
|
|
32
|
+
sobject?: string;
|
|
33
|
+
/** Slack channel picker — restrict to public, private, dm, etc. */
|
|
34
|
+
channelTypes?: string[];
|
|
35
|
+
}
|
|
36
|
+
export declare const ResourceRefQL = "\ntype ResourceRef {\n\tprovider: String!\n\tapplication: String!\n\tkind: String!\n\tconstraints: ResourceRefConstraints\n}";
|
|
37
|
+
export interface ResourceRef {
|
|
38
|
+
provider: string;
|
|
39
|
+
application: string;
|
|
40
|
+
kind: string;
|
|
41
|
+
constraints?: ResourceRefConstraints;
|
|
42
|
+
}
|
|
43
|
+
export declare const FieldQL = "\ntype Field {\n label: String!\n\tname: String!\n\tdateCreated: Float\n\tdescription: String!\n\tenabled: Boolean!\n\textractionMode: String\n\tprompt: String\n\timportant: Boolean\n\tstatus: Boolean\n\tpriority: Boolean\n\ttagType: TagType\n\ttagSubType: String\n\tfieldType: String!\n\tfieldVariation: String\n\tmaximumCharacters: Int\n\tmapFrom: [String]\n\treadOnly: Boolean\n options: [Option]\n\tvisible: Boolean!\n\tsource: FieldSource!\n\tsystemOfRecord: SystemOfRecord\n\tcomputed: Boolean\n\tdataSource: DataReference\n\tdataReferences: [DataReference!]\n\tresourceRef: ResourceRef\n}";
|
|
13
44
|
export interface Field {
|
|
14
45
|
label: string;
|
|
15
46
|
name: string;
|
|
@@ -35,5 +66,6 @@ export interface Field {
|
|
|
35
66
|
computed?: boolean;
|
|
36
67
|
dataSource?: DataReference;
|
|
37
68
|
dataReferences?: DataReference[];
|
|
69
|
+
resourceRef?: ResourceRef;
|
|
38
70
|
}
|
|
39
71
|
//# sourceMappingURL=field.d.ts.map
|
package/dist/field.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../src/field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAA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
|
|
7
7
|
enum SystemOfRecord {
|
|
8
8
|
noded
|
|
9
9
|
}`;
|
|
10
|
+
/**
|
|
11
|
+
* Vendor-agnostic pointer to an external resource the user must pick.
|
|
12
|
+
* When a Field carries a `resourceRef`, the client renders a vendor-
|
|
13
|
+
* specific picker (Google Drive, Slack channel, Salesforce lookup, …)
|
|
14
|
+
* keyed on `${provider}:${application}:${kind}`. The picker stores the
|
|
15
|
+
* canonical id on `FieldValue.id` and the human-readable label on
|
|
16
|
+
* `FieldValue.value`; adapters use `readResourceId` (or equivalent) to
|
|
17
|
+
* pull the id back out at runtime.
|
|
18
|
+
*
|
|
19
|
+
* `constraints` is intentionally a free-form bag so each vendor can
|
|
20
|
+
* carry filters without bumping this shape — Drive uses `mimeTypes`,
|
|
21
|
+
* Salesforce uses `sobject`, Slack uses `channelTypes`, etc.
|
|
22
|
+
*/
|
|
23
|
+
export const ResourceRefConstraintsQL = `
|
|
24
|
+
type ResourceRefConstraints {
|
|
25
|
+
mimeTypes: [String!]
|
|
26
|
+
role: String
|
|
27
|
+
sobject: String
|
|
28
|
+
channelTypes: [String!]
|
|
29
|
+
}`;
|
|
30
|
+
export const ResourceRefQL = `
|
|
31
|
+
type ResourceRef {
|
|
32
|
+
provider: String!
|
|
33
|
+
application: String!
|
|
34
|
+
kind: String!
|
|
35
|
+
constraints: ResourceRefConstraints
|
|
36
|
+
}`;
|
|
10
37
|
export const FieldQL = `
|
|
11
38
|
type Field {
|
|
12
39
|
label: String!
|
|
@@ -33,5 +60,6 @@ type Field {
|
|
|
33
60
|
computed: Boolean
|
|
34
61
|
dataSource: DataReference
|
|
35
62
|
dataReferences: [DataReference!]
|
|
63
|
+
resourceRef: ResourceRef
|
|
36
64
|
}`;
|
|
37
65
|
//# sourceMappingURL=field.js.map
|
package/dist/field.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","sourceRoot":"","sources":["../src/field.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;EAI3B,CAAC;AAMH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;EAG9B,CAAC;AAIH,MAAM,CAAC,MAAM,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["../src/field.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;EAI3B,CAAC;AAMH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;EAG9B,CAAC;AAIH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;EAMtC,CAAC;AAYH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;EAM3B,CAAC;AAQH,MAAM,CAAC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BrB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Field } from './field.js';
|
|
2
|
+
import type { FieldValue } from './field-value.js';
|
|
3
|
+
import type { TagType } from './tag-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* Discriminator for how a function input's value is sourced at execute time. The tenant
|
|
6
|
+
* picks one of these at install time per input; the `UserInput` mode means the value
|
|
7
|
+
* is collected from the user at execute time rather than pre-filled.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum FunctionInputSourceKind {
|
|
10
|
+
Literal = "literal",
|
|
11
|
+
TagSignal = "tagSignal",
|
|
12
|
+
Generated = "generated",
|
|
13
|
+
UserInput = "userInput"
|
|
14
|
+
}
|
|
15
|
+
export declare const TagSignalSourceQL = "\ntype TagSignalSource {\n\ttagType: TagType!\n\ttagSubType: String\n\tsignalProvider: String!\n\tsignalApplication: String!\n\tsignalTable: String!\n\tsignalFieldName: String!\n}";
|
|
16
|
+
export declare const TagSignalSourceInputQL = "\ninput TagSignalSourceInput {\n\ttagType: TagType!\n\ttagSubType: String\n\tsignalProvider: String!\n\tsignalApplication: String!\n\tsignalTable: String!\n\tsignalFieldName: String!\n}";
|
|
17
|
+
export interface TagSignalSource {
|
|
18
|
+
tagType: TagType;
|
|
19
|
+
tagSubType?: string;
|
|
20
|
+
signalProvider: string;
|
|
21
|
+
signalApplication: string;
|
|
22
|
+
signalTable: string;
|
|
23
|
+
signalFieldName: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const GeneratedSourceQL = "\ntype GeneratedSource {\n\tprompt: String!\n}";
|
|
26
|
+
export declare const GeneratedSourceInputQL = "\ninput GeneratedSourceInput {\n\tprompt: String!\n}";
|
|
27
|
+
export interface GeneratedSource {
|
|
28
|
+
prompt: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Flat GraphQL representation of FunctionInputValueSource — Apollo unions are awkward
|
|
32
|
+
* to work with in this codebase, so we follow the Recommendation pattern of a `kind`
|
|
33
|
+
* discriminator plus optional sub-objects for each variant.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FunctionInputValueSourceQL = "\ntype FunctionInputValueSource {\n\tkind: String!\n\tliteralValue: FieldValue\n\ttagSignal: TagSignalSource\n\tgenerated: GeneratedSource\n}";
|
|
36
|
+
export declare const FunctionInputValueSourceInputQL = "\ninput FunctionInputValueSourceInput {\n\tkind: String!\n\tliteralValue: FieldValueInput\n\ttagSignal: TagSignalSourceInput\n\tgenerated: GeneratedSourceInput\n}";
|
|
37
|
+
export type FunctionInputValueSource = {
|
|
38
|
+
kind: FunctionInputSourceKind.Literal;
|
|
39
|
+
literalValue: FieldValue;
|
|
40
|
+
} | {
|
|
41
|
+
kind: FunctionInputSourceKind.TagSignal;
|
|
42
|
+
tagSignal: TagSignalSource;
|
|
43
|
+
} | {
|
|
44
|
+
kind: FunctionInputSourceKind.Generated;
|
|
45
|
+
generated: GeneratedSource;
|
|
46
|
+
} | {
|
|
47
|
+
kind: FunctionInputSourceKind.UserInput;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* A FunctionInput is structurally a Field plus a `valueSource` that says how
|
|
51
|
+
* the input should be sourced at execute time. Reusing the Field shape lets
|
|
52
|
+
* function inputs participate in all the existing field UX primitives —
|
|
53
|
+
* visible/readOnly/important/prompt, fieldType/fieldVariation, options, etc.
|
|
54
|
+
*/
|
|
55
|
+
export declare const FunctionInputQL = "\ntype FunctionInput {\n\tfield: Field!\n\tvalueSource: FunctionInputValueSource!\n}";
|
|
56
|
+
export declare const FunctionInputInputQL = "\ninput FunctionInputInput {\n\tfield: FieldInput!\n\tvalueSource: FunctionInputValueSourceInput!\n}";
|
|
57
|
+
export interface FunctionInput {
|
|
58
|
+
field: Field;
|
|
59
|
+
valueSource: FunctionInputValueSource;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=function-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-input.d.ts","sourceRoot":"","sources":["../src/function-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C;;;;GAIG;AACH,oBAAY,uBAAuB;IAClC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;CACvB;AAED,eAAO,MAAM,iBAAiB,wLAQ5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,8LAQjC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,mDAG5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,yDAGjC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,kJAMrC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uKAM1C,CAAC;AAEH,MAAM,MAAM,wBAAwB,GACjC;IAAE,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC;IAAC,YAAY,EAAE,UAAU,CAAA;CAAE,GACnE;IAAE,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAA;CAAE,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,yFAI1B,CAAC;AAEH,eAAO,MAAM,oBAAoB,yGAI/B,CAAC;AAEH,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,wBAAwB,CAAC;CACtC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Discriminator for how a function input's value is sourced at execute time. The tenant
|
|
3
|
+
* picks one of these at install time per input; the `UserInput` mode means the value
|
|
4
|
+
* is collected from the user at execute time rather than pre-filled.
|
|
5
|
+
*/
|
|
6
|
+
export var FunctionInputSourceKind;
|
|
7
|
+
(function (FunctionInputSourceKind) {
|
|
8
|
+
FunctionInputSourceKind["Literal"] = "literal";
|
|
9
|
+
FunctionInputSourceKind["TagSignal"] = "tagSignal";
|
|
10
|
+
FunctionInputSourceKind["Generated"] = "generated";
|
|
11
|
+
FunctionInputSourceKind["UserInput"] = "userInput";
|
|
12
|
+
})(FunctionInputSourceKind || (FunctionInputSourceKind = {}));
|
|
13
|
+
export const TagSignalSourceQL = `
|
|
14
|
+
type TagSignalSource {
|
|
15
|
+
tagType: TagType!
|
|
16
|
+
tagSubType: String
|
|
17
|
+
signalProvider: String!
|
|
18
|
+
signalApplication: String!
|
|
19
|
+
signalTable: String!
|
|
20
|
+
signalFieldName: String!
|
|
21
|
+
}`;
|
|
22
|
+
export const TagSignalSourceInputQL = `
|
|
23
|
+
input TagSignalSourceInput {
|
|
24
|
+
tagType: TagType!
|
|
25
|
+
tagSubType: String
|
|
26
|
+
signalProvider: String!
|
|
27
|
+
signalApplication: String!
|
|
28
|
+
signalTable: String!
|
|
29
|
+
signalFieldName: String!
|
|
30
|
+
}`;
|
|
31
|
+
export const GeneratedSourceQL = `
|
|
32
|
+
type GeneratedSource {
|
|
33
|
+
prompt: String!
|
|
34
|
+
}`;
|
|
35
|
+
export const GeneratedSourceInputQL = `
|
|
36
|
+
input GeneratedSourceInput {
|
|
37
|
+
prompt: String!
|
|
38
|
+
}`;
|
|
39
|
+
/**
|
|
40
|
+
* Flat GraphQL representation of FunctionInputValueSource — Apollo unions are awkward
|
|
41
|
+
* to work with in this codebase, so we follow the Recommendation pattern of a `kind`
|
|
42
|
+
* discriminator plus optional sub-objects for each variant.
|
|
43
|
+
*/
|
|
44
|
+
export const FunctionInputValueSourceQL = `
|
|
45
|
+
type FunctionInputValueSource {
|
|
46
|
+
kind: String!
|
|
47
|
+
literalValue: FieldValue
|
|
48
|
+
tagSignal: TagSignalSource
|
|
49
|
+
generated: GeneratedSource
|
|
50
|
+
}`;
|
|
51
|
+
export const FunctionInputValueSourceInputQL = `
|
|
52
|
+
input FunctionInputValueSourceInput {
|
|
53
|
+
kind: String!
|
|
54
|
+
literalValue: FieldValueInput
|
|
55
|
+
tagSignal: TagSignalSourceInput
|
|
56
|
+
generated: GeneratedSourceInput
|
|
57
|
+
}`;
|
|
58
|
+
/**
|
|
59
|
+
* A FunctionInput is structurally a Field plus a `valueSource` that says how
|
|
60
|
+
* the input should be sourced at execute time. Reusing the Field shape lets
|
|
61
|
+
* function inputs participate in all the existing field UX primitives —
|
|
62
|
+
* visible/readOnly/important/prompt, fieldType/fieldVariation, options, etc.
|
|
63
|
+
*/
|
|
64
|
+
export const FunctionInputQL = `
|
|
65
|
+
type FunctionInput {
|
|
66
|
+
field: Field!
|
|
67
|
+
valueSource: FunctionInputValueSource!
|
|
68
|
+
}`;
|
|
69
|
+
export const FunctionInputInputQL = `
|
|
70
|
+
input FunctionInputInput {
|
|
71
|
+
field: FieldInput!
|
|
72
|
+
valueSource: FunctionInputValueSourceInput!
|
|
73
|
+
}`;
|
|
74
|
+
//# sourceMappingURL=function-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-input.js","sourceRoot":"","sources":["../src/function-input.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,kDAAuB,CAAA;IACvB,kDAAuB,CAAA;AACxB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;EAQ/B,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;EAQpC,CAAC;AAWH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;EAG/B,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;EAGpC,CAAC;AAMH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;EAMxC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG;;;;;;EAM7C,CAAC;AAQH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;EAI7B,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;EAIlC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Block } from './block.js';
|
|
2
|
+
import { BusinessObject } from './business-object.js';
|
|
3
|
+
import type { FieldValue } from './field-value.js';
|
|
4
|
+
import type { TenantRef } from './shared-primitive.js';
|
|
5
|
+
import type { SharingTag } from './sharing-tag.js';
|
|
6
|
+
/**
|
|
7
|
+
* Status of a single function execution. Execution is synchronous from the
|
|
8
|
+
* caller's perspective, so the document only ever lands in a terminal state
|
|
9
|
+
* (Completed or Errored). There is no Pending/Running state because the
|
|
10
|
+
* mutation does not return until the adapter call has resolved.
|
|
11
|
+
*/
|
|
12
|
+
export declare enum FunctionInvocationStatus {
|
|
13
|
+
Completed = "completed",
|
|
14
|
+
Errored = "errored"
|
|
15
|
+
}
|
|
16
|
+
export declare const FunctionInvocationQL = "\ntype FunctionInvocation implements Block & BusinessObject {\n _id: ID!\n archived: Boolean!\n dateArchived: Float\n dateCreated: Float!\n dateUpdated: Float!\n tenantIdCreated: String\n sharingTags: [SharingTag]!\n\tsubscriptionPubSubType: String\n access: String!\n activities(size: Int): [BlockActivity]\n editors: [Editor]\n blockType: String!\n direction: String\n document: String\n text: String\n summary: String\n\tdates: [EntityEntry]\n\tlocations: [EntityEntry]\n\temails: [String]\n\tbusinessObjects: [BusinessObjectLink]\n\tfavorite: Boolean!\n\tsnoozed: Boolean!\n\tdateDue: Float\n\tdateRemindMe: Float\n\tdateAssociated: Float\n\tdateMatched: Float\n\tstatus: TaskStatus\n\trangeId: String\n\tparentReferenceBlock: ReferenceBlock\n\toriginReferenceBlock: ReferenceBlock\n\tgeneratedReferenceBlock: ReferenceBlock\n\ttemplateReferenceBlock: ReferenceBlock\n\treactions: [Reaction]\n\tfeedback: BlockFeedbackState!\n\ttitle: String\n\ttagRecommendations: [BlockTagRecommendation!]\n\tcreator: BlockCreator\n\ttemplate: BlockTemplate\n provider: String\n application: String\n uri: String!\n processingStage: String!\n processingAttempts: Int!\n dateProcessed: Float!\n externalId: String!\n processingReason: String\n iconUrl: String\n\tfunctionId: String!\n\tfunctionName: String!\n\tconnectionId: String!\n\tcontextTagId: String\n\tvalues: [FieldValue]!\n\tinvocationStatus: String!\n\toutputUrl: String\n\terrorMessage: String\n\tattachmentBlockId: String\n}";
|
|
17
|
+
/**
|
|
18
|
+
* BusinessObject representing one execution of an InstalledFunction. The URL
|
|
19
|
+
* (if any) returned by the adapter is captured here and then handed to the
|
|
20
|
+
* existing BusinessObjectIngestionRequest pipeline so attachments are ingested
|
|
21
|
+
* the same way as any other URL referenced inside Noded.
|
|
22
|
+
*/
|
|
23
|
+
export declare class FunctionInvocation extends BusinessObject {
|
|
24
|
+
functionId: string;
|
|
25
|
+
functionName: string;
|
|
26
|
+
connectionId: string;
|
|
27
|
+
contextTagId?: string;
|
|
28
|
+
values: FieldValue[];
|
|
29
|
+
invocationStatus: FunctionInvocationStatus;
|
|
30
|
+
outputUrl?: string;
|
|
31
|
+
errorMessage?: string;
|
|
32
|
+
attachmentBlockId?: string;
|
|
33
|
+
constructor(tenant: TenantRef, sharingTags: SharingTag[], provider: string, application: string, uri: string, externalId: string, functionId: string, functionName: string, connectionId: string, values: FieldValue[], invocationStatus: FunctionInvocationStatus);
|
|
34
|
+
}
|
|
35
|
+
export declare function isFunctionInvocation(block: Pick<Block, 'blockType'>): block is FunctionInvocation;
|
|
36
|
+
//# sourceMappingURL=function-invocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-invocation.d.ts","sourceRoot":"","sources":["../src/function-invocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,cAAc,EAAwB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;GAKG;AACH,oBAAY,wBAAwB;IACnC,SAAS,cAAc;IACvB,OAAO,YAAY;CACnB;AAED,eAAO,MAAM,oBAAoB,g+CAW/B,CAAC;AAEH;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;gBAG1B,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,UAAU,EAAE,EACzB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,UAAU,EAAE,EACpB,gBAAgB,EAAE,wBAAwB;CAS3C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,KAAK,IAAI,kBAAkB,CAEjG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BlockType } from './block-type.js';
|
|
2
|
+
import { BusinessObject, BusinessObjectFields } from './business-object.js';
|
|
3
|
+
/**
|
|
4
|
+
* Status of a single function execution. Execution is synchronous from the
|
|
5
|
+
* caller's perspective, so the document only ever lands in a terminal state
|
|
6
|
+
* (Completed or Errored). There is no Pending/Running state because the
|
|
7
|
+
* mutation does not return until the adapter call has resolved.
|
|
8
|
+
*/
|
|
9
|
+
export var FunctionInvocationStatus;
|
|
10
|
+
(function (FunctionInvocationStatus) {
|
|
11
|
+
FunctionInvocationStatus["Completed"] = "completed";
|
|
12
|
+
FunctionInvocationStatus["Errored"] = "errored";
|
|
13
|
+
})(FunctionInvocationStatus || (FunctionInvocationStatus = {}));
|
|
14
|
+
export const FunctionInvocationQL = `
|
|
15
|
+
type FunctionInvocation implements Block & BusinessObject {${BusinessObjectFields}
|
|
16
|
+
functionId: String!
|
|
17
|
+
functionName: String!
|
|
18
|
+
connectionId: String!
|
|
19
|
+
contextTagId: String
|
|
20
|
+
values: [FieldValue]!
|
|
21
|
+
invocationStatus: String!
|
|
22
|
+
outputUrl: String
|
|
23
|
+
errorMessage: String
|
|
24
|
+
attachmentBlockId: String
|
|
25
|
+
}`;
|
|
26
|
+
/**
|
|
27
|
+
* BusinessObject representing one execution of an InstalledFunction. The URL
|
|
28
|
+
* (if any) returned by the adapter is captured here and then handed to the
|
|
29
|
+
* existing BusinessObjectIngestionRequest pipeline so attachments are ingested
|
|
30
|
+
* the same way as any other URL referenced inside Noded.
|
|
31
|
+
*/
|
|
32
|
+
export class FunctionInvocation extends BusinessObject {
|
|
33
|
+
functionId;
|
|
34
|
+
functionName;
|
|
35
|
+
connectionId;
|
|
36
|
+
contextTagId;
|
|
37
|
+
values;
|
|
38
|
+
invocationStatus;
|
|
39
|
+
outputUrl;
|
|
40
|
+
errorMessage;
|
|
41
|
+
attachmentBlockId;
|
|
42
|
+
constructor(tenant, sharingTags, provider, application, uri, externalId, functionId, functionName, connectionId, values, invocationStatus) {
|
|
43
|
+
super(tenant, sharingTags, BlockType.Invocation, provider, application, uri, externalId);
|
|
44
|
+
this.functionId = functionId;
|
|
45
|
+
this.functionName = functionName;
|
|
46
|
+
this.connectionId = connectionId;
|
|
47
|
+
this.values = values;
|
|
48
|
+
this.invocationStatus = invocationStatus;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function isFunctionInvocation(block) {
|
|
52
|
+
return block.blockType === BlockType.Invocation;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=function-invocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-invocation.js","sourceRoot":"","sources":["../src/function-invocation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,i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unctionInput } from './function-input.js';
|
|
3
|
+
import { Metadata } from './metadata.js';
|
|
4
|
+
import type { TagType } from './tag-type.js';
|
|
5
|
+
/**
|
|
6
|
+
* Whether a function produces a URL we should ingest. `required` means the
|
|
7
|
+
* adapter must return one; `optional` means the adapter may return one; `none`
|
|
8
|
+
* means no URL is expected and any returned value is discarded.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum FunctionOutputUrl {
|
|
11
|
+
None = "none",
|
|
12
|
+
Optional = "optional",
|
|
13
|
+
Required = "required"
|
|
14
|
+
}
|
|
15
|
+
export declare const FunctionMetadataInputQL = "\ninput FunctionMetadataInput {\n\tlabel: String!\n description: String!\n\tmetadataType: String!\n\tprovider: String\n\tapplication: String\n\tconfigurationFields: [FieldInput!]!\n\tinputs: [FunctionInputInput!]\n\toutputUrl: String!\n\tfireAndForget: Boolean!\n\tinvocationGuidance: String\n\ttagSubType: String\n\ttagType: TagType\n}";
|
|
16
|
+
export declare const FunctionMetadataQL = "\ntype FunctionMetadata {\n label: String!\n description: String!\n\tmetadataType: String!\n\treferences: [String]\n\tclassifiers: [String]!\n\tthreshold: Float!\n\tprovider: String\n\tapplication: String\n\tconfigurationFields: [Field!]!\n\tinputs: [FunctionInput!]\n\toutputUrl: String!\n\tfireAndForget: Boolean!\n\tinvocationGuidance: String\n\ttagSubType: String\n\ttagType: TagType\n}";
|
|
17
|
+
/**
|
|
18
|
+
* Provider-declared definition of a function. The provider declares two
|
|
19
|
+
* distinct schemas:
|
|
20
|
+
*
|
|
21
|
+
* - `configurationFields` — static, asked once at install time. Identifies
|
|
22
|
+
* *which instance* of the function this tenant is installing (e.g. which
|
|
23
|
+
* Slides template, which Slack channel). Values are always literal — the
|
|
24
|
+
* tenant types them in. Stored on the resulting InstalledFunction.
|
|
25
|
+
*
|
|
26
|
+
* - `inputs` — per-invocation fields the user fills (or the input resolver
|
|
27
|
+
* sources) at execute time. These may be empty at metadata-declaration
|
|
28
|
+
* time and discovered by the provider *after* the configuration is
|
|
29
|
+
* supplied (via `/install/function/inputs`). In that case the
|
|
30
|
+
* tenant's bound `FunctionInput[]` (with valueSource per input) is
|
|
31
|
+
* persisted on the InstalledFunction.
|
|
32
|
+
*/
|
|
33
|
+
export declare class FunctionMetadata extends Metadata {
|
|
34
|
+
configurationFields: Field[];
|
|
35
|
+
inputs?: FunctionInput[];
|
|
36
|
+
outputUrl: FunctionOutputUrl;
|
|
37
|
+
fireAndForget: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Provider-supplied default for "when should the conversational agent
|
|
40
|
+
* pick this function?". Tenant-customizable at install time via
|
|
41
|
+
* `InstalledFunction.invocationGuidance`. Used verbatim by the chat
|
|
42
|
+
* agent to decide whether a user's request maps to this function.
|
|
43
|
+
*/
|
|
44
|
+
invocationGuidance?: string;
|
|
45
|
+
tagSubType?: string;
|
|
46
|
+
tagType?: TagType;
|
|
47
|
+
constructor(label: string, description: string, metadataType: string, configurationFields: Field[], outputUrl: FunctionOutputUrl, fireAndForget: boolean, inputs?: FunctionInput[], classifiers?: string[], threshold?: number);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=function-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-metadata.d.ts","sourceRoot":"","sources":["../src/function-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAuC,MAAM,eAAe,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C;;;;GAIG;AACH,oBAAY,iBAAiB;IAC5B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACrB;AAED,eAAO,MAAM,uBAAuB,sVASlC,CAAC;AAEH,eAAO,MAAM,kBAAkB,6YAS7B,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gBAAiB,SAAQ,QAAQ;IAC7C,mBAAmB,EAAE,KAAK,EAAE,CAAC;IAC7B,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;gBAGjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,KAAK,EAAE,EAC5B,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,OAAO,EACtB,MAAM,GAAE,aAAa,EAAO,EAC5B,WAAW,GAAE,MAAM,EAAO,EAC1B,SAAS,SAAI;CAQd"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Metadata, MetadataFields, MetadataInputFields } from './metadata.js';
|
|
2
|
+
/**
|
|
3
|
+
* Whether a function produces a URL we should ingest. `required` means the
|
|
4
|
+
* adapter must return one; `optional` means the adapter may return one; `none`
|
|
5
|
+
* means no URL is expected and any returned value is discarded.
|
|
6
|
+
*/
|
|
7
|
+
export var FunctionOutputUrl;
|
|
8
|
+
(function (FunctionOutputUrl) {
|
|
9
|
+
FunctionOutputUrl["None"] = "none";
|
|
10
|
+
FunctionOutputUrl["Optional"] = "optional";
|
|
11
|
+
FunctionOutputUrl["Required"] = "required";
|
|
12
|
+
})(FunctionOutputUrl || (FunctionOutputUrl = {}));
|
|
13
|
+
export const FunctionMetadataInputQL = `
|
|
14
|
+
input FunctionMetadataInput {${MetadataInputFields}
|
|
15
|
+
configurationFields: [FieldInput!]!
|
|
16
|
+
inputs: [FunctionInputInput!]
|
|
17
|
+
outputUrl: String!
|
|
18
|
+
fireAndForget: Boolean!
|
|
19
|
+
invocationGuidance: String
|
|
20
|
+
tagSubType: String
|
|
21
|
+
tagType: TagType
|
|
22
|
+
}`;
|
|
23
|
+
export const FunctionMetadataQL = `
|
|
24
|
+
type FunctionMetadata {${MetadataFields}
|
|
25
|
+
configurationFields: [Field!]!
|
|
26
|
+
inputs: [FunctionInput!]
|
|
27
|
+
outputUrl: String!
|
|
28
|
+
fireAndForget: Boolean!
|
|
29
|
+
invocationGuidance: String
|
|
30
|
+
tagSubType: String
|
|
31
|
+
tagType: TagType
|
|
32
|
+
}`;
|
|
33
|
+
/**
|
|
34
|
+
* Provider-declared definition of a function. The provider declares two
|
|
35
|
+
* distinct schemas:
|
|
36
|
+
*
|
|
37
|
+
* - `configurationFields` — static, asked once at install time. Identifies
|
|
38
|
+
* *which instance* of the function this tenant is installing (e.g. which
|
|
39
|
+
* Slides template, which Slack channel). Values are always literal — the
|
|
40
|
+
* tenant types them in. Stored on the resulting InstalledFunction.
|
|
41
|
+
*
|
|
42
|
+
* - `inputs` — per-invocation fields the user fills (or the input resolver
|
|
43
|
+
* sources) at execute time. These may be empty at metadata-declaration
|
|
44
|
+
* time and discovered by the provider *after* the configuration is
|
|
45
|
+
* supplied (via `/install/function/inputs`). In that case the
|
|
46
|
+
* tenant's bound `FunctionInput[]` (with valueSource per input) is
|
|
47
|
+
* persisted on the InstalledFunction.
|
|
48
|
+
*/
|
|
49
|
+
export class FunctionMetadata extends Metadata {
|
|
50
|
+
configurationFields;
|
|
51
|
+
inputs;
|
|
52
|
+
outputUrl;
|
|
53
|
+
fireAndForget;
|
|
54
|
+
/**
|
|
55
|
+
* Provider-supplied default for "when should the conversational agent
|
|
56
|
+
* pick this function?". Tenant-customizable at install time via
|
|
57
|
+
* `InstalledFunction.invocationGuidance`. Used verbatim by the chat
|
|
58
|
+
* agent to decide whether a user's request maps to this function.
|
|
59
|
+
*/
|
|
60
|
+
invocationGuidance;
|
|
61
|
+
tagSubType;
|
|
62
|
+
tagType;
|
|
63
|
+
constructor(label, description, metadataType, configurationFields, outputUrl, fireAndForget, inputs = [], classifiers = [], threshold = 0) {
|
|
64
|
+
super(label, description, metadataType, classifiers, threshold);
|
|
65
|
+
this.configurationFields = configurationFields;
|
|
66
|
+
this.inputs = inputs;
|
|
67
|
+
this.outputUrl = outputUrl;
|
|
68
|
+
this.fireAndForget = fireAndForget;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=function-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-metadata.js","sourceRoot":"","sources":["../src/function-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG9E;;;;GAIG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;AACtB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;+BACR,mBAAmB;;;;;;;;EAQhD,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG;yBACT,cAAc;;;;;;;;EAQrC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,gBAAiB,SAAQ,QAAQ;IAC7C,mBAAmB,CAAU;IAC7B,MAAM,CAAmB;IACzB,SAAS,CAAoB;IAC7B,aAAa,CAAU;IACvB;;;;;OAKG;IACH,kBAAkB,CAAU;IAC5B,UAAU,CAAU;IACpB,OAAO,CAAW;IAElB,YACC,KAAa,EACb,WAAmB,EACnB,YAAoB,EACpB,mBAA4B,EAC5B,SAA4B,EAC5B,aAAsB,EACtB,SAA0B,EAAE,EAC5B,cAAwB,EAAE,EAC1B,SAAS,GAAG,CAAC;QAEb,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAChE,IAAI,CAAC,mBAAmB,GAAG,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