@bubblelab/shared-schemas 0.1.15 → 0.1.17
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/credential-schema.d.ts.map +1 -1
- package/dist/index.js +143 -3
- package/dist/index.js.map +1 -1
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-schema.d.ts","sourceRoot":"","sources":["../src/credential-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAGtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAqOb,CAAC;AAEhE;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAQnD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CA4B7D,CAAC;AAEF,+BAA+B;AAC/B,eAAO,MAAM,kBAAkB,qBAa7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,qBAE/B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;G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CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -380,6 +380,7 @@ var OAUTH_PROVIDERS = {
|
|
|
380
380
|
displayName: "Google Drive",
|
|
381
381
|
defaultScopes: [
|
|
382
382
|
"https://www.googleapis.com/auth/drive.file",
|
|
383
|
+
"https://www.googleapis.com/auth/drive.readonly",
|
|
383
384
|
"https://www.googleapis.com/auth/documents",
|
|
384
385
|
"https://www.googleapis.com/auth/spreadsheets",
|
|
385
386
|
"https://www.googleapis.com/auth/drive"
|
|
@@ -391,6 +392,11 @@ var OAUTH_PROVIDERS = {
|
|
|
391
392
|
description: "View and manage Google Drive files and folders that you have created with Bubble Lab",
|
|
392
393
|
defaultEnabled: true
|
|
393
394
|
},
|
|
395
|
+
{
|
|
396
|
+
scope: "https://www.googleapis.com/auth/drive.readonly",
|
|
397
|
+
description: "View all Google Drive files and folders (including files shared with you). Required to access shared documents.",
|
|
398
|
+
defaultEnabled: true
|
|
399
|
+
},
|
|
394
400
|
{
|
|
395
401
|
scope: "https://www.googleapis.com/auth/documents",
|
|
396
402
|
description: "View and manage your Google Docs documents",
|
|
@@ -403,7 +409,7 @@ var OAUTH_PROVIDERS = {
|
|
|
403
409
|
},
|
|
404
410
|
{
|
|
405
411
|
scope: "https://www.googleapis.com/auth/drive",
|
|
406
|
-
description: 'View and manage all
|
|
412
|
+
description: 'View and manage all of your Google Drive files and folders (will see a warning about an "untrusted app" during authentication. Choose only if you need write access to shared files)',
|
|
407
413
|
defaultEnabled: false
|
|
408
414
|
}
|
|
409
415
|
]
|
|
@@ -3086,7 +3092,79 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
3086
3092
|
},
|
|
3087
3093
|
slack_event: {
|
|
3088
3094
|
type: "object",
|
|
3089
|
-
description: "Full Slack event wrapper"
|
|
3095
|
+
description: "Full Slack event wrapper",
|
|
3096
|
+
properties: {
|
|
3097
|
+
token: { type: "string", description: "Verification token" },
|
|
3098
|
+
team_id: { type: "string", description: "Workspace ID" },
|
|
3099
|
+
api_app_id: { type: "string", description: "Slack App ID" },
|
|
3100
|
+
type: {
|
|
3101
|
+
type: "string",
|
|
3102
|
+
enum: ["event_callback"],
|
|
3103
|
+
description: "Event type"
|
|
3104
|
+
},
|
|
3105
|
+
event_id: { type: "string", description: "Unique event ID" },
|
|
3106
|
+
event_time: { type: "number", description: "Event timestamp" },
|
|
3107
|
+
event_context: { type: "string", description: "Event context" },
|
|
3108
|
+
authorizations: {
|
|
3109
|
+
type: "array",
|
|
3110
|
+
description: "Bot authorizations",
|
|
3111
|
+
items: {
|
|
3112
|
+
type: "object",
|
|
3113
|
+
properties: {
|
|
3114
|
+
enterprise_id: { type: "string" },
|
|
3115
|
+
team_id: { type: "string" },
|
|
3116
|
+
user_id: { type: "string" },
|
|
3117
|
+
is_bot: { type: "boolean" }
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
},
|
|
3121
|
+
event: {
|
|
3122
|
+
type: "object",
|
|
3123
|
+
description: "Inner message event data",
|
|
3124
|
+
properties: {
|
|
3125
|
+
type: {
|
|
3126
|
+
type: "string",
|
|
3127
|
+
enum: ["message"],
|
|
3128
|
+
description: "Event type"
|
|
3129
|
+
},
|
|
3130
|
+
user: {
|
|
3131
|
+
type: "string",
|
|
3132
|
+
description: "User ID who sent the message"
|
|
3133
|
+
},
|
|
3134
|
+
text: { type: "string", description: "Message text content" },
|
|
3135
|
+
ts: { type: "string", description: "Message timestamp" },
|
|
3136
|
+
channel: { type: "string", description: "Channel ID" },
|
|
3137
|
+
event_ts: { type: "string", description: "Event timestamp" },
|
|
3138
|
+
channel_type: {
|
|
3139
|
+
type: "string",
|
|
3140
|
+
enum: ["channel", "group", "im", "mpim"],
|
|
3141
|
+
description: "Type of channel"
|
|
3142
|
+
},
|
|
3143
|
+
subtype: {
|
|
3144
|
+
type: "string",
|
|
3145
|
+
description: "Message subtype (if any)"
|
|
3146
|
+
}
|
|
3147
|
+
},
|
|
3148
|
+
required: [
|
|
3149
|
+
"type",
|
|
3150
|
+
"user",
|
|
3151
|
+
"text",
|
|
3152
|
+
"ts",
|
|
3153
|
+
"channel",
|
|
3154
|
+
"event_ts",
|
|
3155
|
+
"channel_type"
|
|
3156
|
+
]
|
|
3157
|
+
}
|
|
3158
|
+
},
|
|
3159
|
+
required: [
|
|
3160
|
+
"token",
|
|
3161
|
+
"team_id",
|
|
3162
|
+
"api_app_id",
|
|
3163
|
+
"type",
|
|
3164
|
+
"event_id",
|
|
3165
|
+
"event_time",
|
|
3166
|
+
"event"
|
|
3167
|
+
]
|
|
3090
3168
|
}
|
|
3091
3169
|
},
|
|
3092
3170
|
required: ["text", "channel", "user", "slack_event"]
|
|
@@ -3141,7 +3219,69 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
3141
3219
|
},
|
|
3142
3220
|
slack_event: {
|
|
3143
3221
|
type: "object",
|
|
3144
|
-
description: "Full Slack event wrapper"
|
|
3222
|
+
description: "Full Slack event wrapper",
|
|
3223
|
+
properties: {
|
|
3224
|
+
token: { type: "string", description: "Verification token" },
|
|
3225
|
+
team_id: { type: "string", description: "Workspace ID" },
|
|
3226
|
+
api_app_id: { type: "string", description: "Slack App ID" },
|
|
3227
|
+
type: {
|
|
3228
|
+
type: "string",
|
|
3229
|
+
enum: ["event_callback"],
|
|
3230
|
+
description: "Event type"
|
|
3231
|
+
},
|
|
3232
|
+
event_id: { type: "string", description: "Unique event ID" },
|
|
3233
|
+
event_time: { type: "number", description: "Event timestamp" },
|
|
3234
|
+
event_context: { type: "string", description: "Event context" },
|
|
3235
|
+
authorizations: {
|
|
3236
|
+
type: "array",
|
|
3237
|
+
description: "Bot authorizations",
|
|
3238
|
+
items: {
|
|
3239
|
+
type: "object",
|
|
3240
|
+
properties: {
|
|
3241
|
+
enterprise_id: { type: "string" },
|
|
3242
|
+
team_id: { type: "string" },
|
|
3243
|
+
user_id: { type: "string" },
|
|
3244
|
+
is_bot: { type: "boolean" }
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
},
|
|
3248
|
+
event: {
|
|
3249
|
+
type: "object",
|
|
3250
|
+
description: "Inner app_mention event data",
|
|
3251
|
+
properties: {
|
|
3252
|
+
type: {
|
|
3253
|
+
type: "string",
|
|
3254
|
+
enum: ["app_mention"],
|
|
3255
|
+
description: "Event type"
|
|
3256
|
+
},
|
|
3257
|
+
user: {
|
|
3258
|
+
type: "string",
|
|
3259
|
+
description: "User ID who mentioned the bot"
|
|
3260
|
+
},
|
|
3261
|
+
text: {
|
|
3262
|
+
type: "string",
|
|
3263
|
+
description: "Message text containing the mention"
|
|
3264
|
+
},
|
|
3265
|
+
ts: { type: "string", description: "Message timestamp" },
|
|
3266
|
+
channel: { type: "string", description: "Channel ID" },
|
|
3267
|
+
event_ts: { type: "string", description: "Event timestamp" },
|
|
3268
|
+
thread_ts: {
|
|
3269
|
+
type: "string",
|
|
3270
|
+
description: "Thread timestamp (if in a thread)"
|
|
3271
|
+
}
|
|
3272
|
+
},
|
|
3273
|
+
required: ["type", "user", "text", "ts", "channel", "event_ts"]
|
|
3274
|
+
}
|
|
3275
|
+
},
|
|
3276
|
+
required: [
|
|
3277
|
+
"token",
|
|
3278
|
+
"team_id",
|
|
3279
|
+
"api_app_id",
|
|
3280
|
+
"type",
|
|
3281
|
+
"event_id",
|
|
3282
|
+
"event_time",
|
|
3283
|
+
"event"
|
|
3284
|
+
]
|
|
3145
3285
|
}
|
|
3146
3286
|
},
|
|
3147
3287
|
required: ["text", "channel", "user", "slack_event"]
|