@zocomputer/system-api 0.1.0 → 0.1.1
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/generated/catalog.js +12 -0
- package/dist/generated/manifest.json +12 -2
- package/dist/generated/operations.d.ts +43 -0
- package/dist/generated/schema.json +214 -158
- package/openapi.json +214 -158
- package/package.json +1 -1
|
@@ -124,6 +124,18 @@ export const catalog = defineCatalog({
|
|
|
124
124
|
1: { digest: "sha256:ddc319112d8b6b0540f0621e643bc7444665a490cdc564a5bd79e90bc3a8322b" },
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
|
+
"zo.connection.slack.complete_authorization": {
|
|
128
|
+
defaultVersion: 1,
|
|
129
|
+
versions: {
|
|
130
|
+
1: { digest: "sha256:91d27f8956f09feddf5a25f645435bc6f1a95656fe7fee787813450730615ce4" },
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
"zo.connection.slack.start_authorization": {
|
|
134
|
+
defaultVersion: 1,
|
|
135
|
+
versions: {
|
|
136
|
+
1: { digest: "sha256:3145d0b425cc7ebbebdd587f2df27f4915ed78f127117c16d5d48a1f023c9c52" },
|
|
137
|
+
},
|
|
138
|
+
},
|
|
127
139
|
"zo.connection.update": {
|
|
128
140
|
defaultVersion: 1,
|
|
129
141
|
versions: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generatorVersion": "0.1.0",
|
|
3
|
-
"schemaDigest": "sha256:
|
|
4
|
-
"bundleDigest": "sha256:
|
|
3
|
+
"schemaDigest": "sha256:eaaf7ee560e0c39788aab1da5335e7717fc7244b9868589282dadfb6a9ea205d",
|
|
4
|
+
"bundleDigest": "sha256:ab31398791ee4ae870c28e44cfc27e96464e9591fc63bacaeaa38c6cb6aa58aa",
|
|
5
5
|
"actions": [
|
|
6
6
|
{
|
|
7
7
|
"action": "zo.activity.list",
|
|
@@ -103,6 +103,16 @@
|
|
|
103
103
|
"version": 1,
|
|
104
104
|
"digest": "sha256:ddc319112d8b6b0540f0621e643bc7444665a490cdc564a5bd79e90bc3a8322b"
|
|
105
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"action": "zo.connection.slack.complete_authorization",
|
|
108
|
+
"version": 1,
|
|
109
|
+
"digest": "sha256:91d27f8956f09feddf5a25f645435bc6f1a95656fe7fee787813450730615ce4"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"action": "zo.connection.slack.start_authorization",
|
|
113
|
+
"version": 1,
|
|
114
|
+
"digest": "sha256:3145d0b425cc7ebbebdd587f2df27f4915ed78f127117c16d5d48a1f023c9c52"
|
|
115
|
+
},
|
|
106
116
|
{
|
|
107
117
|
"action": "zo.connection.update",
|
|
108
118
|
"version": 1,
|
|
@@ -894,6 +894,35 @@ export interface ZoConnectionRegisterResourceInputV1 {
|
|
|
894
894
|
export interface ZoConnectionRegisterResourceOutputV1 {
|
|
895
895
|
resource_id: string;
|
|
896
896
|
}
|
|
897
|
+
export interface ZoConnectionSlackCompleteAuthorizationInputV1 {
|
|
898
|
+
connection_id: string;
|
|
899
|
+
expected_revision: number;
|
|
900
|
+
attempt_id: string;
|
|
901
|
+
code: string;
|
|
902
|
+
}
|
|
903
|
+
export interface ZoConnectionSlackCompleteAuthorizationOutputV1 {
|
|
904
|
+
id: string;
|
|
905
|
+
workspace_id: string;
|
|
906
|
+
display_name: string;
|
|
907
|
+
definition_id: string;
|
|
908
|
+
definition_version: number;
|
|
909
|
+
visibility: ("workspace" | "protected");
|
|
910
|
+
owner_user_id: (string | null);
|
|
911
|
+
status: ("configuring" | "ready" | "reauthorization_required" | "disabled" | "deleted");
|
|
912
|
+
revision: number;
|
|
913
|
+
account_labels: {
|
|
914
|
+
[k: string]: string;
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
export interface ZoConnectionSlackStartAuthorizationInputV1 {
|
|
918
|
+
connection_id: string;
|
|
919
|
+
expected_revision: number;
|
|
920
|
+
}
|
|
921
|
+
export interface ZoConnectionSlackStartAuthorizationOutputV1 {
|
|
922
|
+
attempt_id: string;
|
|
923
|
+
command: string;
|
|
924
|
+
expires_at: string;
|
|
925
|
+
}
|
|
897
926
|
export interface ZoConnectionUpdateInputV1 {
|
|
898
927
|
connection_id: string;
|
|
899
928
|
expected_revision: number;
|
|
@@ -7510,6 +7539,18 @@ export type Operations = {
|
|
|
7510
7539
|
output: ZoConnectionRegisterResourceOutputV1;
|
|
7511
7540
|
};
|
|
7512
7541
|
};
|
|
7542
|
+
"zo.connection.slack.complete_authorization": {
|
|
7543
|
+
1: {
|
|
7544
|
+
input: ZoConnectionSlackCompleteAuthorizationInputV1;
|
|
7545
|
+
output: ZoConnectionSlackCompleteAuthorizationOutputV1;
|
|
7546
|
+
};
|
|
7547
|
+
};
|
|
7548
|
+
"zo.connection.slack.start_authorization": {
|
|
7549
|
+
1: {
|
|
7550
|
+
input: ZoConnectionSlackStartAuthorizationInputV1;
|
|
7551
|
+
output: ZoConnectionSlackStartAuthorizationOutputV1;
|
|
7552
|
+
};
|
|
7553
|
+
};
|
|
7513
7554
|
"zo.connection.update": {
|
|
7514
7555
|
1: {
|
|
7515
7556
|
input: ZoConnectionUpdateInputV1;
|
|
@@ -8286,6 +8327,8 @@ export type DefaultVersions = {
|
|
|
8286
8327
|
"zo.connection.get": 1;
|
|
8287
8328
|
"zo.connection.list": 1;
|
|
8288
8329
|
"zo.connection.register_resource": 1;
|
|
8330
|
+
"zo.connection.slack.complete_authorization": 1;
|
|
8331
|
+
"zo.connection.slack.start_authorization": 1;
|
|
8289
8332
|
"zo.connection.update": 1;
|
|
8290
8333
|
"zo.connection_definition.list": 1;
|
|
8291
8334
|
"zo.connection_definition.publish": 1;
|
|
@@ -3706,6 +3706,218 @@
|
|
|
3706
3706
|
],
|
|
3707
3707
|
"digest": "sha256:ddc319112d8b6b0540f0621e643bc7444665a490cdc564a5bd79e90bc3a8322b"
|
|
3708
3708
|
},
|
|
3709
|
+
{
|
|
3710
|
+
"name": "zo.connection.slack.complete_authorization",
|
|
3711
|
+
"version": 1,
|
|
3712
|
+
"publisher": "zo",
|
|
3713
|
+
"description": "Exchange a Slack challenge code and store its service token. Attempts are single-use and expire after ten minutes.",
|
|
3714
|
+
"input_schema": {
|
|
3715
|
+
"additionalProperties": false,
|
|
3716
|
+
"properties": {
|
|
3717
|
+
"connection_id": {
|
|
3718
|
+
"maxLength": 200,
|
|
3719
|
+
"minLength": 1,
|
|
3720
|
+
"title": "Connection Id",
|
|
3721
|
+
"type": "string"
|
|
3722
|
+
},
|
|
3723
|
+
"expected_revision": {
|
|
3724
|
+
"exclusiveMinimum": 0,
|
|
3725
|
+
"maximum": 9007199254740991,
|
|
3726
|
+
"title": "Expected Revision",
|
|
3727
|
+
"type": "integer"
|
|
3728
|
+
},
|
|
3729
|
+
"attempt_id": {
|
|
3730
|
+
"maxLength": 200,
|
|
3731
|
+
"minLength": 1,
|
|
3732
|
+
"title": "Attempt Id",
|
|
3733
|
+
"type": "string"
|
|
3734
|
+
},
|
|
3735
|
+
"code": {
|
|
3736
|
+
"maxLength": 256,
|
|
3737
|
+
"minLength": 1,
|
|
3738
|
+
"title": "Code",
|
|
3739
|
+
"type": "string"
|
|
3740
|
+
}
|
|
3741
|
+
},
|
|
3742
|
+
"required": [
|
|
3743
|
+
"connection_id",
|
|
3744
|
+
"expected_revision",
|
|
3745
|
+
"attempt_id",
|
|
3746
|
+
"code"
|
|
3747
|
+
],
|
|
3748
|
+
"title": "SlackAuthorizationCompleteInput",
|
|
3749
|
+
"type": "object"
|
|
3750
|
+
},
|
|
3751
|
+
"output_schema": {
|
|
3752
|
+
"additionalProperties": false,
|
|
3753
|
+
"properties": {
|
|
3754
|
+
"id": {
|
|
3755
|
+
"title": "Id",
|
|
3756
|
+
"type": "string"
|
|
3757
|
+
},
|
|
3758
|
+
"workspace_id": {
|
|
3759
|
+
"title": "Workspace Id",
|
|
3760
|
+
"type": "string"
|
|
3761
|
+
},
|
|
3762
|
+
"display_name": {
|
|
3763
|
+
"title": "Display Name",
|
|
3764
|
+
"type": "string"
|
|
3765
|
+
},
|
|
3766
|
+
"definition_id": {
|
|
3767
|
+
"title": "Definition Id",
|
|
3768
|
+
"type": "string"
|
|
3769
|
+
},
|
|
3770
|
+
"definition_version": {
|
|
3771
|
+
"exclusiveMinimum": 0,
|
|
3772
|
+
"maximum": 2147483647,
|
|
3773
|
+
"title": "Definition Version",
|
|
3774
|
+
"type": "integer"
|
|
3775
|
+
},
|
|
3776
|
+
"visibility": {
|
|
3777
|
+
"enum": [
|
|
3778
|
+
"workspace",
|
|
3779
|
+
"protected"
|
|
3780
|
+
],
|
|
3781
|
+
"title": "Visibility",
|
|
3782
|
+
"type": "string"
|
|
3783
|
+
},
|
|
3784
|
+
"owner_user_id": {
|
|
3785
|
+
"anyOf": [
|
|
3786
|
+
{
|
|
3787
|
+
"type": "string"
|
|
3788
|
+
},
|
|
3789
|
+
{
|
|
3790
|
+
"type": "null"
|
|
3791
|
+
}
|
|
3792
|
+
],
|
|
3793
|
+
"title": "Owner User Id"
|
|
3794
|
+
},
|
|
3795
|
+
"status": {
|
|
3796
|
+
"enum": [
|
|
3797
|
+
"configuring",
|
|
3798
|
+
"ready",
|
|
3799
|
+
"reauthorization_required",
|
|
3800
|
+
"disabled",
|
|
3801
|
+
"deleted"
|
|
3802
|
+
],
|
|
3803
|
+
"title": "Status",
|
|
3804
|
+
"type": "string"
|
|
3805
|
+
},
|
|
3806
|
+
"revision": {
|
|
3807
|
+
"exclusiveMinimum": 0,
|
|
3808
|
+
"maximum": 9007199254740991,
|
|
3809
|
+
"title": "Revision",
|
|
3810
|
+
"type": "integer"
|
|
3811
|
+
},
|
|
3812
|
+
"account_labels": {
|
|
3813
|
+
"additionalProperties": {
|
|
3814
|
+
"type": "string"
|
|
3815
|
+
},
|
|
3816
|
+
"title": "Account Labels",
|
|
3817
|
+
"type": "object"
|
|
3818
|
+
}
|
|
3819
|
+
},
|
|
3820
|
+
"required": [
|
|
3821
|
+
"id",
|
|
3822
|
+
"workspace_id",
|
|
3823
|
+
"display_name",
|
|
3824
|
+
"definition_id",
|
|
3825
|
+
"definition_version",
|
|
3826
|
+
"visibility",
|
|
3827
|
+
"owner_user_id",
|
|
3828
|
+
"status",
|
|
3829
|
+
"revision",
|
|
3830
|
+
"account_labels"
|
|
3831
|
+
],
|
|
3832
|
+
"title": "ConnectionWithAccountsResource",
|
|
3833
|
+
"type": "object"
|
|
3834
|
+
},
|
|
3835
|
+
"target": {
|
|
3836
|
+
"type": "connection",
|
|
3837
|
+
"input_pointer": "/connection_id"
|
|
3838
|
+
},
|
|
3839
|
+
"additional_checks": [],
|
|
3840
|
+
"effect": "manage",
|
|
3841
|
+
"result_kind": "inline",
|
|
3842
|
+
"error_codes": [
|
|
3843
|
+
"invalid_input",
|
|
3844
|
+
"conflict",
|
|
3845
|
+
"resource_not_found",
|
|
3846
|
+
"provider_failure"
|
|
3847
|
+
],
|
|
3848
|
+
"digest": "sha256:91d27f8956f09feddf5a25f645435bc6f1a95656fe7fee787813450730615ce4"
|
|
3849
|
+
},
|
|
3850
|
+
{
|
|
3851
|
+
"name": "zo.connection.slack.start_authorization",
|
|
3852
|
+
"version": 1,
|
|
3853
|
+
"publisher": "zo",
|
|
3854
|
+
"description": "Get a Slack service-token authorization command. Requires a workspace owner and a Slack service-token connection.",
|
|
3855
|
+
"input_schema": {
|
|
3856
|
+
"additionalProperties": false,
|
|
3857
|
+
"properties": {
|
|
3858
|
+
"connection_id": {
|
|
3859
|
+
"maxLength": 200,
|
|
3860
|
+
"minLength": 1,
|
|
3861
|
+
"title": "Connection Id",
|
|
3862
|
+
"type": "string"
|
|
3863
|
+
},
|
|
3864
|
+
"expected_revision": {
|
|
3865
|
+
"exclusiveMinimum": 0,
|
|
3866
|
+
"maximum": 9007199254740991,
|
|
3867
|
+
"title": "Expected Revision",
|
|
3868
|
+
"type": "integer"
|
|
3869
|
+
}
|
|
3870
|
+
},
|
|
3871
|
+
"required": [
|
|
3872
|
+
"connection_id",
|
|
3873
|
+
"expected_revision"
|
|
3874
|
+
],
|
|
3875
|
+
"title": "ConnectionTargetInput",
|
|
3876
|
+
"type": "object"
|
|
3877
|
+
},
|
|
3878
|
+
"output_schema": {
|
|
3879
|
+
"additionalProperties": false,
|
|
3880
|
+
"properties": {
|
|
3881
|
+
"attempt_id": {
|
|
3882
|
+
"maxLength": 200,
|
|
3883
|
+
"minLength": 1,
|
|
3884
|
+
"title": "Attempt Id",
|
|
3885
|
+
"type": "string"
|
|
3886
|
+
},
|
|
3887
|
+
"command": {
|
|
3888
|
+
"maxLength": 2100,
|
|
3889
|
+
"minLength": 1,
|
|
3890
|
+
"title": "Command",
|
|
3891
|
+
"type": "string"
|
|
3892
|
+
},
|
|
3893
|
+
"expires_at": {
|
|
3894
|
+
"title": "Expires At",
|
|
3895
|
+
"type": "string"
|
|
3896
|
+
}
|
|
3897
|
+
},
|
|
3898
|
+
"required": [
|
|
3899
|
+
"attempt_id",
|
|
3900
|
+
"command",
|
|
3901
|
+
"expires_at"
|
|
3902
|
+
],
|
|
3903
|
+
"title": "SlackAuthorizationStarted",
|
|
3904
|
+
"type": "object"
|
|
3905
|
+
},
|
|
3906
|
+
"target": {
|
|
3907
|
+
"type": "connection",
|
|
3908
|
+
"input_pointer": "/connection_id"
|
|
3909
|
+
},
|
|
3910
|
+
"additional_checks": [],
|
|
3911
|
+
"effect": "manage",
|
|
3912
|
+
"result_kind": "inline",
|
|
3913
|
+
"error_codes": [
|
|
3914
|
+
"invalid_input",
|
|
3915
|
+
"conflict",
|
|
3916
|
+
"resource_not_found",
|
|
3917
|
+
"provider_failure"
|
|
3918
|
+
],
|
|
3919
|
+
"digest": "sha256:3145d0b425cc7ebbebdd587f2df27f4915ed78f127117c16d5d48a1f023c9c52"
|
|
3920
|
+
},
|
|
3709
3921
|
{
|
|
3710
3922
|
"name": "zo.connection.update",
|
|
3711
3923
|
"version": 1,
|
|
@@ -37417,6 +37629,8 @@
|
|
|
37417
37629
|
"zo.connection.get": 1,
|
|
37418
37630
|
"zo.connection.list": 1,
|
|
37419
37631
|
"zo.connection.register_resource": 1,
|
|
37632
|
+
"zo.connection.slack.complete_authorization": 1,
|
|
37633
|
+
"zo.connection.slack.start_authorization": 1,
|
|
37420
37634
|
"zo.connection.update": 1,
|
|
37421
37635
|
"zo.connection_definition.list": 1,
|
|
37422
37636
|
"zo.connection_definition.publish": 1,
|
|
@@ -37715,164 +37929,6 @@
|
|
|
37715
37929
|
"digest": "sha256:5f04adfc3d4d50ca178aef661b5d539bc9f39b08c20211b4752f4bda06d82f75",
|
|
37716
37930
|
"contract_digest": "sha256:ea9f7414954428d03c6d92291608018cbdad736821b5c80455d4bcff5183a6ff"
|
|
37717
37931
|
},
|
|
37718
|
-
{
|
|
37719
|
-
"publisher": "zo",
|
|
37720
|
-
"name": "slack.message.received",
|
|
37721
|
-
"version": 1,
|
|
37722
|
-
"description": "A human posted a message in a connected Slack channel.",
|
|
37723
|
-
"payload_schema": {
|
|
37724
|
-
"type": "object",
|
|
37725
|
-
"additionalProperties": false,
|
|
37726
|
-
"required": [
|
|
37727
|
-
"channel",
|
|
37728
|
-
"user",
|
|
37729
|
-
"ts",
|
|
37730
|
-
"thread_ts",
|
|
37731
|
-
"text",
|
|
37732
|
-
"text_truncated",
|
|
37733
|
-
"mentions_app"
|
|
37734
|
-
],
|
|
37735
|
-
"properties": {
|
|
37736
|
-
"channel": {
|
|
37737
|
-
"type": "string",
|
|
37738
|
-
"minLength": 1,
|
|
37739
|
-
"maxLength": 128
|
|
37740
|
-
},
|
|
37741
|
-
"user": {
|
|
37742
|
-
"type": "string",
|
|
37743
|
-
"minLength": 1,
|
|
37744
|
-
"maxLength": 128
|
|
37745
|
-
},
|
|
37746
|
-
"ts": {
|
|
37747
|
-
"type": "string",
|
|
37748
|
-
"minLength": 1,
|
|
37749
|
-
"maxLength": 64
|
|
37750
|
-
},
|
|
37751
|
-
"thread_ts": {
|
|
37752
|
-
"anyOf": [
|
|
37753
|
-
{
|
|
37754
|
-
"type": "string",
|
|
37755
|
-
"maxLength": 64
|
|
37756
|
-
},
|
|
37757
|
-
{
|
|
37758
|
-
"type": "null"
|
|
37759
|
-
}
|
|
37760
|
-
]
|
|
37761
|
-
},
|
|
37762
|
-
"text": {
|
|
37763
|
-
"type": "string",
|
|
37764
|
-
"maxLength": 32768
|
|
37765
|
-
},
|
|
37766
|
-
"text_truncated": {
|
|
37767
|
-
"type": "boolean"
|
|
37768
|
-
},
|
|
37769
|
-
"mentions_app": {
|
|
37770
|
-
"type": "boolean"
|
|
37771
|
-
}
|
|
37772
|
-
}
|
|
37773
|
-
},
|
|
37774
|
-
"filter_paths": [
|
|
37775
|
-
"/channel",
|
|
37776
|
-
"/user",
|
|
37777
|
-
"/mentions_app"
|
|
37778
|
-
],
|
|
37779
|
-
"disclosure": {
|
|
37780
|
-
"kind": "custom",
|
|
37781
|
-
"subject": {
|
|
37782
|
-
"resource_type": "connection"
|
|
37783
|
-
}
|
|
37784
|
-
},
|
|
37785
|
-
"source_connection": "scd_zo_slack",
|
|
37786
|
-
"type": "zo.events.slack.message.received@v1",
|
|
37787
|
-
"digest": "sha256:299f5fa0b1a2c6cd8f4f6e1ee71ac43f0ff0a8548d74b291473cff4027f34e87",
|
|
37788
|
-
"contract_digest": "sha256:7c7dea2a9e9493bb0de59aa551e7c1ace3ddeda3dc5097cdd9c919b2b606566e"
|
|
37789
|
-
},
|
|
37790
|
-
{
|
|
37791
|
-
"publisher": "zo",
|
|
37792
|
-
"name": "slack.message.received",
|
|
37793
|
-
"version": 2,
|
|
37794
|
-
"description": "A human posted a message in a connected Slack channel. `thread_root` is the `ts` of the thread's first message, the message's own `ts` when it starts no thread; `conversation` is the channel and thread root, joined by `/`.",
|
|
37795
|
-
"payload_schema": {
|
|
37796
|
-
"type": "object",
|
|
37797
|
-
"additionalProperties": false,
|
|
37798
|
-
"required": [
|
|
37799
|
-
"channel",
|
|
37800
|
-
"user",
|
|
37801
|
-
"ts",
|
|
37802
|
-
"thread_ts",
|
|
37803
|
-
"thread_root",
|
|
37804
|
-
"conversation",
|
|
37805
|
-
"text",
|
|
37806
|
-
"text_truncated",
|
|
37807
|
-
"mentions_app"
|
|
37808
|
-
],
|
|
37809
|
-
"properties": {
|
|
37810
|
-
"channel": {
|
|
37811
|
-
"type": "string",
|
|
37812
|
-
"minLength": 1,
|
|
37813
|
-
"maxLength": 128
|
|
37814
|
-
},
|
|
37815
|
-
"user": {
|
|
37816
|
-
"type": "string",
|
|
37817
|
-
"minLength": 1,
|
|
37818
|
-
"maxLength": 128
|
|
37819
|
-
},
|
|
37820
|
-
"ts": {
|
|
37821
|
-
"type": "string",
|
|
37822
|
-
"minLength": 1,
|
|
37823
|
-
"maxLength": 64
|
|
37824
|
-
},
|
|
37825
|
-
"thread_ts": {
|
|
37826
|
-
"anyOf": [
|
|
37827
|
-
{
|
|
37828
|
-
"type": "string",
|
|
37829
|
-
"maxLength": 64
|
|
37830
|
-
},
|
|
37831
|
-
{
|
|
37832
|
-
"type": "null"
|
|
37833
|
-
}
|
|
37834
|
-
]
|
|
37835
|
-
},
|
|
37836
|
-
"thread_root": {
|
|
37837
|
-
"type": "string",
|
|
37838
|
-
"minLength": 1,
|
|
37839
|
-
"maxLength": 64
|
|
37840
|
-
},
|
|
37841
|
-
"conversation": {
|
|
37842
|
-
"type": "string",
|
|
37843
|
-
"minLength": 3,
|
|
37844
|
-
"maxLength": 193
|
|
37845
|
-
},
|
|
37846
|
-
"text": {
|
|
37847
|
-
"type": "string",
|
|
37848
|
-
"maxLength": 32768
|
|
37849
|
-
},
|
|
37850
|
-
"text_truncated": {
|
|
37851
|
-
"type": "boolean"
|
|
37852
|
-
},
|
|
37853
|
-
"mentions_app": {
|
|
37854
|
-
"type": "boolean"
|
|
37855
|
-
}
|
|
37856
|
-
}
|
|
37857
|
-
},
|
|
37858
|
-
"filter_paths": [
|
|
37859
|
-
"/channel",
|
|
37860
|
-
"/user",
|
|
37861
|
-
"/mentions_app",
|
|
37862
|
-
"/thread_root"
|
|
37863
|
-
],
|
|
37864
|
-
"disclosure": {
|
|
37865
|
-
"kind": "custom",
|
|
37866
|
-
"subject": {
|
|
37867
|
-
"resource_type": "connection"
|
|
37868
|
-
}
|
|
37869
|
-
},
|
|
37870
|
-
"source_connection": "scd_zo_slack",
|
|
37871
|
-
"conversation_path": "/conversation",
|
|
37872
|
-
"type": "zo.events.slack.message.received@v2",
|
|
37873
|
-
"digest": "sha256:e98ae6f6d2b8b6c1e63046d038dd1656ab8d4fa93706eaf7924413770cf49478",
|
|
37874
|
-
"contract_digest": "sha256:5cb7bff60aa7cf724fb8565bff202ab94b57ad18b02c38deda5984a9d6212c47"
|
|
37875
|
-
},
|
|
37876
37932
|
{
|
|
37877
37933
|
"publisher": "zo",
|
|
37878
37934
|
"name": "task.assigned",
|
package/openapi.json
CHANGED
|
@@ -5009,6 +5009,218 @@
|
|
|
5009
5009
|
],
|
|
5010
5010
|
"digest": "sha256:ddc319112d8b6b0540f0621e643bc7444665a490cdc564a5bd79e90bc3a8322b"
|
|
5011
5011
|
},
|
|
5012
|
+
{
|
|
5013
|
+
"name": "zo.connection.slack.complete_authorization",
|
|
5014
|
+
"version": 1,
|
|
5015
|
+
"publisher": "zo",
|
|
5016
|
+
"description": "Exchange a Slack challenge code and store its service token. Attempts are single-use and expire after ten minutes.",
|
|
5017
|
+
"input_schema": {
|
|
5018
|
+
"additionalProperties": false,
|
|
5019
|
+
"properties": {
|
|
5020
|
+
"connection_id": {
|
|
5021
|
+
"maxLength": 200,
|
|
5022
|
+
"minLength": 1,
|
|
5023
|
+
"title": "Connection Id",
|
|
5024
|
+
"type": "string"
|
|
5025
|
+
},
|
|
5026
|
+
"expected_revision": {
|
|
5027
|
+
"exclusiveMinimum": 0,
|
|
5028
|
+
"maximum": 9007199254740991,
|
|
5029
|
+
"title": "Expected Revision",
|
|
5030
|
+
"type": "integer"
|
|
5031
|
+
},
|
|
5032
|
+
"attempt_id": {
|
|
5033
|
+
"maxLength": 200,
|
|
5034
|
+
"minLength": 1,
|
|
5035
|
+
"title": "Attempt Id",
|
|
5036
|
+
"type": "string"
|
|
5037
|
+
},
|
|
5038
|
+
"code": {
|
|
5039
|
+
"maxLength": 256,
|
|
5040
|
+
"minLength": 1,
|
|
5041
|
+
"title": "Code",
|
|
5042
|
+
"type": "string"
|
|
5043
|
+
}
|
|
5044
|
+
},
|
|
5045
|
+
"required": [
|
|
5046
|
+
"connection_id",
|
|
5047
|
+
"expected_revision",
|
|
5048
|
+
"attempt_id",
|
|
5049
|
+
"code"
|
|
5050
|
+
],
|
|
5051
|
+
"title": "SlackAuthorizationCompleteInput",
|
|
5052
|
+
"type": "object"
|
|
5053
|
+
},
|
|
5054
|
+
"output_schema": {
|
|
5055
|
+
"additionalProperties": false,
|
|
5056
|
+
"properties": {
|
|
5057
|
+
"id": {
|
|
5058
|
+
"title": "Id",
|
|
5059
|
+
"type": "string"
|
|
5060
|
+
},
|
|
5061
|
+
"workspace_id": {
|
|
5062
|
+
"title": "Workspace Id",
|
|
5063
|
+
"type": "string"
|
|
5064
|
+
},
|
|
5065
|
+
"display_name": {
|
|
5066
|
+
"title": "Display Name",
|
|
5067
|
+
"type": "string"
|
|
5068
|
+
},
|
|
5069
|
+
"definition_id": {
|
|
5070
|
+
"title": "Definition Id",
|
|
5071
|
+
"type": "string"
|
|
5072
|
+
},
|
|
5073
|
+
"definition_version": {
|
|
5074
|
+
"exclusiveMinimum": 0,
|
|
5075
|
+
"maximum": 2147483647,
|
|
5076
|
+
"title": "Definition Version",
|
|
5077
|
+
"type": "integer"
|
|
5078
|
+
},
|
|
5079
|
+
"visibility": {
|
|
5080
|
+
"enum": [
|
|
5081
|
+
"workspace",
|
|
5082
|
+
"protected"
|
|
5083
|
+
],
|
|
5084
|
+
"title": "Visibility",
|
|
5085
|
+
"type": "string"
|
|
5086
|
+
},
|
|
5087
|
+
"owner_user_id": {
|
|
5088
|
+
"anyOf": [
|
|
5089
|
+
{
|
|
5090
|
+
"type": "string"
|
|
5091
|
+
},
|
|
5092
|
+
{
|
|
5093
|
+
"type": "null"
|
|
5094
|
+
}
|
|
5095
|
+
],
|
|
5096
|
+
"title": "Owner User Id"
|
|
5097
|
+
},
|
|
5098
|
+
"status": {
|
|
5099
|
+
"enum": [
|
|
5100
|
+
"configuring",
|
|
5101
|
+
"ready",
|
|
5102
|
+
"reauthorization_required",
|
|
5103
|
+
"disabled",
|
|
5104
|
+
"deleted"
|
|
5105
|
+
],
|
|
5106
|
+
"title": "Status",
|
|
5107
|
+
"type": "string"
|
|
5108
|
+
},
|
|
5109
|
+
"revision": {
|
|
5110
|
+
"exclusiveMinimum": 0,
|
|
5111
|
+
"maximum": 9007199254740991,
|
|
5112
|
+
"title": "Revision",
|
|
5113
|
+
"type": "integer"
|
|
5114
|
+
},
|
|
5115
|
+
"account_labels": {
|
|
5116
|
+
"additionalProperties": {
|
|
5117
|
+
"type": "string"
|
|
5118
|
+
},
|
|
5119
|
+
"title": "Account Labels",
|
|
5120
|
+
"type": "object"
|
|
5121
|
+
}
|
|
5122
|
+
},
|
|
5123
|
+
"required": [
|
|
5124
|
+
"id",
|
|
5125
|
+
"workspace_id",
|
|
5126
|
+
"display_name",
|
|
5127
|
+
"definition_id",
|
|
5128
|
+
"definition_version",
|
|
5129
|
+
"visibility",
|
|
5130
|
+
"owner_user_id",
|
|
5131
|
+
"status",
|
|
5132
|
+
"revision",
|
|
5133
|
+
"account_labels"
|
|
5134
|
+
],
|
|
5135
|
+
"title": "ConnectionWithAccountsResource",
|
|
5136
|
+
"type": "object"
|
|
5137
|
+
},
|
|
5138
|
+
"target": {
|
|
5139
|
+
"type": "connection",
|
|
5140
|
+
"input_pointer": "/connection_id"
|
|
5141
|
+
},
|
|
5142
|
+
"additional_checks": [],
|
|
5143
|
+
"effect": "manage",
|
|
5144
|
+
"result_kind": "inline",
|
|
5145
|
+
"error_codes": [
|
|
5146
|
+
"invalid_input",
|
|
5147
|
+
"conflict",
|
|
5148
|
+
"resource_not_found",
|
|
5149
|
+
"provider_failure"
|
|
5150
|
+
],
|
|
5151
|
+
"digest": "sha256:91d27f8956f09feddf5a25f645435bc6f1a95656fe7fee787813450730615ce4"
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
"name": "zo.connection.slack.start_authorization",
|
|
5155
|
+
"version": 1,
|
|
5156
|
+
"publisher": "zo",
|
|
5157
|
+
"description": "Get a Slack service-token authorization command. Requires a workspace owner and a Slack service-token connection.",
|
|
5158
|
+
"input_schema": {
|
|
5159
|
+
"additionalProperties": false,
|
|
5160
|
+
"properties": {
|
|
5161
|
+
"connection_id": {
|
|
5162
|
+
"maxLength": 200,
|
|
5163
|
+
"minLength": 1,
|
|
5164
|
+
"title": "Connection Id",
|
|
5165
|
+
"type": "string"
|
|
5166
|
+
},
|
|
5167
|
+
"expected_revision": {
|
|
5168
|
+
"exclusiveMinimum": 0,
|
|
5169
|
+
"maximum": 9007199254740991,
|
|
5170
|
+
"title": "Expected Revision",
|
|
5171
|
+
"type": "integer"
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
5174
|
+
"required": [
|
|
5175
|
+
"connection_id",
|
|
5176
|
+
"expected_revision"
|
|
5177
|
+
],
|
|
5178
|
+
"title": "ConnectionTargetInput",
|
|
5179
|
+
"type": "object"
|
|
5180
|
+
},
|
|
5181
|
+
"output_schema": {
|
|
5182
|
+
"additionalProperties": false,
|
|
5183
|
+
"properties": {
|
|
5184
|
+
"attempt_id": {
|
|
5185
|
+
"maxLength": 200,
|
|
5186
|
+
"minLength": 1,
|
|
5187
|
+
"title": "Attempt Id",
|
|
5188
|
+
"type": "string"
|
|
5189
|
+
},
|
|
5190
|
+
"command": {
|
|
5191
|
+
"maxLength": 2100,
|
|
5192
|
+
"minLength": 1,
|
|
5193
|
+
"title": "Command",
|
|
5194
|
+
"type": "string"
|
|
5195
|
+
},
|
|
5196
|
+
"expires_at": {
|
|
5197
|
+
"title": "Expires At",
|
|
5198
|
+
"type": "string"
|
|
5199
|
+
}
|
|
5200
|
+
},
|
|
5201
|
+
"required": [
|
|
5202
|
+
"attempt_id",
|
|
5203
|
+
"command",
|
|
5204
|
+
"expires_at"
|
|
5205
|
+
],
|
|
5206
|
+
"title": "SlackAuthorizationStarted",
|
|
5207
|
+
"type": "object"
|
|
5208
|
+
},
|
|
5209
|
+
"target": {
|
|
5210
|
+
"type": "connection",
|
|
5211
|
+
"input_pointer": "/connection_id"
|
|
5212
|
+
},
|
|
5213
|
+
"additional_checks": [],
|
|
5214
|
+
"effect": "manage",
|
|
5215
|
+
"result_kind": "inline",
|
|
5216
|
+
"error_codes": [
|
|
5217
|
+
"invalid_input",
|
|
5218
|
+
"conflict",
|
|
5219
|
+
"resource_not_found",
|
|
5220
|
+
"provider_failure"
|
|
5221
|
+
],
|
|
5222
|
+
"digest": "sha256:3145d0b425cc7ebbebdd587f2df27f4915ed78f127117c16d5d48a1f023c9c52"
|
|
5223
|
+
},
|
|
5012
5224
|
{
|
|
5013
5225
|
"name": "zo.connection.update",
|
|
5014
5226
|
"version": 1,
|
|
@@ -38720,6 +38932,8 @@
|
|
|
38720
38932
|
"zo.connection.get": 1,
|
|
38721
38933
|
"zo.connection.list": 1,
|
|
38722
38934
|
"zo.connection.register_resource": 1,
|
|
38935
|
+
"zo.connection.slack.complete_authorization": 1,
|
|
38936
|
+
"zo.connection.slack.start_authorization": 1,
|
|
38723
38937
|
"zo.connection.update": 1,
|
|
38724
38938
|
"zo.connection_definition.list": 1,
|
|
38725
38939
|
"zo.connection_definition.publish": 1,
|
|
@@ -39018,164 +39232,6 @@
|
|
|
39018
39232
|
"digest": "sha256:5f04adfc3d4d50ca178aef661b5d539bc9f39b08c20211b4752f4bda06d82f75",
|
|
39019
39233
|
"contract_digest": "sha256:ea9f7414954428d03c6d92291608018cbdad736821b5c80455d4bcff5183a6ff"
|
|
39020
39234
|
},
|
|
39021
|
-
{
|
|
39022
|
-
"publisher": "zo",
|
|
39023
|
-
"name": "slack.message.received",
|
|
39024
|
-
"version": 1,
|
|
39025
|
-
"description": "A human posted a message in a connected Slack channel.",
|
|
39026
|
-
"payload_schema": {
|
|
39027
|
-
"type": "object",
|
|
39028
|
-
"additionalProperties": false,
|
|
39029
|
-
"required": [
|
|
39030
|
-
"channel",
|
|
39031
|
-
"user",
|
|
39032
|
-
"ts",
|
|
39033
|
-
"thread_ts",
|
|
39034
|
-
"text",
|
|
39035
|
-
"text_truncated",
|
|
39036
|
-
"mentions_app"
|
|
39037
|
-
],
|
|
39038
|
-
"properties": {
|
|
39039
|
-
"channel": {
|
|
39040
|
-
"type": "string",
|
|
39041
|
-
"minLength": 1,
|
|
39042
|
-
"maxLength": 128
|
|
39043
|
-
},
|
|
39044
|
-
"user": {
|
|
39045
|
-
"type": "string",
|
|
39046
|
-
"minLength": 1,
|
|
39047
|
-
"maxLength": 128
|
|
39048
|
-
},
|
|
39049
|
-
"ts": {
|
|
39050
|
-
"type": "string",
|
|
39051
|
-
"minLength": 1,
|
|
39052
|
-
"maxLength": 64
|
|
39053
|
-
},
|
|
39054
|
-
"thread_ts": {
|
|
39055
|
-
"anyOf": [
|
|
39056
|
-
{
|
|
39057
|
-
"type": "string",
|
|
39058
|
-
"maxLength": 64
|
|
39059
|
-
},
|
|
39060
|
-
{
|
|
39061
|
-
"type": "null"
|
|
39062
|
-
}
|
|
39063
|
-
]
|
|
39064
|
-
},
|
|
39065
|
-
"text": {
|
|
39066
|
-
"type": "string",
|
|
39067
|
-
"maxLength": 32768
|
|
39068
|
-
},
|
|
39069
|
-
"text_truncated": {
|
|
39070
|
-
"type": "boolean"
|
|
39071
|
-
},
|
|
39072
|
-
"mentions_app": {
|
|
39073
|
-
"type": "boolean"
|
|
39074
|
-
}
|
|
39075
|
-
}
|
|
39076
|
-
},
|
|
39077
|
-
"filter_paths": [
|
|
39078
|
-
"/channel",
|
|
39079
|
-
"/user",
|
|
39080
|
-
"/mentions_app"
|
|
39081
|
-
],
|
|
39082
|
-
"disclosure": {
|
|
39083
|
-
"kind": "custom",
|
|
39084
|
-
"subject": {
|
|
39085
|
-
"resource_type": "connection"
|
|
39086
|
-
}
|
|
39087
|
-
},
|
|
39088
|
-
"source_connection": "scd_zo_slack",
|
|
39089
|
-
"type": "zo.events.slack.message.received@v1",
|
|
39090
|
-
"digest": "sha256:299f5fa0b1a2c6cd8f4f6e1ee71ac43f0ff0a8548d74b291473cff4027f34e87",
|
|
39091
|
-
"contract_digest": "sha256:7c7dea2a9e9493bb0de59aa551e7c1ace3ddeda3dc5097cdd9c919b2b606566e"
|
|
39092
|
-
},
|
|
39093
|
-
{
|
|
39094
|
-
"publisher": "zo",
|
|
39095
|
-
"name": "slack.message.received",
|
|
39096
|
-
"version": 2,
|
|
39097
|
-
"description": "A human posted a message in a connected Slack channel. `thread_root` is the `ts` of the thread's first message, the message's own `ts` when it starts no thread; `conversation` is the channel and thread root, joined by `/`.",
|
|
39098
|
-
"payload_schema": {
|
|
39099
|
-
"type": "object",
|
|
39100
|
-
"additionalProperties": false,
|
|
39101
|
-
"required": [
|
|
39102
|
-
"channel",
|
|
39103
|
-
"user",
|
|
39104
|
-
"ts",
|
|
39105
|
-
"thread_ts",
|
|
39106
|
-
"thread_root",
|
|
39107
|
-
"conversation",
|
|
39108
|
-
"text",
|
|
39109
|
-
"text_truncated",
|
|
39110
|
-
"mentions_app"
|
|
39111
|
-
],
|
|
39112
|
-
"properties": {
|
|
39113
|
-
"channel": {
|
|
39114
|
-
"type": "string",
|
|
39115
|
-
"minLength": 1,
|
|
39116
|
-
"maxLength": 128
|
|
39117
|
-
},
|
|
39118
|
-
"user": {
|
|
39119
|
-
"type": "string",
|
|
39120
|
-
"minLength": 1,
|
|
39121
|
-
"maxLength": 128
|
|
39122
|
-
},
|
|
39123
|
-
"ts": {
|
|
39124
|
-
"type": "string",
|
|
39125
|
-
"minLength": 1,
|
|
39126
|
-
"maxLength": 64
|
|
39127
|
-
},
|
|
39128
|
-
"thread_ts": {
|
|
39129
|
-
"anyOf": [
|
|
39130
|
-
{
|
|
39131
|
-
"type": "string",
|
|
39132
|
-
"maxLength": 64
|
|
39133
|
-
},
|
|
39134
|
-
{
|
|
39135
|
-
"type": "null"
|
|
39136
|
-
}
|
|
39137
|
-
]
|
|
39138
|
-
},
|
|
39139
|
-
"thread_root": {
|
|
39140
|
-
"type": "string",
|
|
39141
|
-
"minLength": 1,
|
|
39142
|
-
"maxLength": 64
|
|
39143
|
-
},
|
|
39144
|
-
"conversation": {
|
|
39145
|
-
"type": "string",
|
|
39146
|
-
"minLength": 3,
|
|
39147
|
-
"maxLength": 193
|
|
39148
|
-
},
|
|
39149
|
-
"text": {
|
|
39150
|
-
"type": "string",
|
|
39151
|
-
"maxLength": 32768
|
|
39152
|
-
},
|
|
39153
|
-
"text_truncated": {
|
|
39154
|
-
"type": "boolean"
|
|
39155
|
-
},
|
|
39156
|
-
"mentions_app": {
|
|
39157
|
-
"type": "boolean"
|
|
39158
|
-
}
|
|
39159
|
-
}
|
|
39160
|
-
},
|
|
39161
|
-
"filter_paths": [
|
|
39162
|
-
"/channel",
|
|
39163
|
-
"/user",
|
|
39164
|
-
"/mentions_app",
|
|
39165
|
-
"/thread_root"
|
|
39166
|
-
],
|
|
39167
|
-
"disclosure": {
|
|
39168
|
-
"kind": "custom",
|
|
39169
|
-
"subject": {
|
|
39170
|
-
"resource_type": "connection"
|
|
39171
|
-
}
|
|
39172
|
-
},
|
|
39173
|
-
"source_connection": "scd_zo_slack",
|
|
39174
|
-
"conversation_path": "/conversation",
|
|
39175
|
-
"type": "zo.events.slack.message.received@v2",
|
|
39176
|
-
"digest": "sha256:e98ae6f6d2b8b6c1e63046d038dd1656ab8d4fa93706eaf7924413770cf49478",
|
|
39177
|
-
"contract_digest": "sha256:5cb7bff60aa7cf724fb8565bff202ab94b57ad18b02c38deda5984a9d6212c47"
|
|
39178
|
-
},
|
|
39179
39235
|
{
|
|
39180
39236
|
"publisher": "zo",
|
|
39181
39237
|
"name": "task.assigned",
|